Skip to content

UnityWebRequest.isHttpError is obsolete #55

@x06designs

Description

@x06designs

Description

I'm using the latest version of the AppCenter SDK (4.3.0 and Editor Extension 3.0.0). Newer versions of Unity are showing the errors:
Assets\AppCenterEditorExtensions\Editor\Scripts\AppCenterEditorSDK\AppCenterEditorHttp.cs(78,22): warning CS0618: 'UnityWebRequest.isHttpError' is obsolete: 'UnityWebRequest.isHttpError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.'

Assets\AppCenterEditorExtensions\Editor\Scripts\AppCenterEditorSDK\AppCenterEditorHttp.cs(78,58): warning CS0618: 'UnityWebRequest.isNetworkError' is obsolete: 'UnityWebRequest.isNetworkError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.'

Marked line:
if (!downloadRequest.WWW.isHttpError && !downloadRequest.WWW.isNetworkError)

Repro Steps

Please list the steps used to reproduce your issue.

  1. Install AppCenter SDK
  2. Wait until warnings show up in the console

Details

  1. Which SDK version are you using?
    4.3.0
  2. Which platform did you experience the issue on?
    Android >= 9, Windows >= 10, iOS >= 11, MacOS >= 10.13
  3. What device version did you see this error on? Were you using an emulator or a physical device?
    Desktop computer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions