Skip to content

Handle error in async void DispatchRequest #62

Open

Description

@RemiDrouot

Hi,

I found some issues when request.downloadHandler.text retrieve an error message.

Because the lines retrieved are like that
ErrorMessageHandle

and after you try to convert them with: var data = JsonConvert.DeserializeObject(value, jsonSerializerSettings);
But this give a error exception because the json format is not correct.

I have done some changes to fix this
https://codefile.io/f/HWLrBZPdhh

Tell me if it's look good for you my fixes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions