8000 How to handle Newtonsoft.Json.JsonReaderException expecting JSON receiving HTML · Issue #966 · reactiveui/refit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content < 8000 script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}
How to handle Newtonsoft.Json.JsonReaderException expecting JSON receiving HTML #966
Closed
@jthegeman

Description

@jthegeman

I am receiving an error when calling an API and it returns HTML(error occured) instead of JSON which causes the Xamarin app to crash. I realize this is not ideal for the API to return this, but what I am working with.

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

Task<ApiResponse> GetContentModel();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0