chadly / Geocoding.net

C# GeoCoding / Address Validation API
MIT License
444 stars 157 forks source link

Here Geocoding xml parsing exception on response when account inactive or invalid #123

Open DR9885 opened 5 years ago

DR9885 commented 5 years ago

Here Geocoding xml parsing exception on response when account inactive or invalid

pranav700 commented 5 years ago

When you say account is invalid, did you mean you put incorrect credentials/keys ?

DR9885 commented 5 years ago

The key is correct, but my subscription hit its monthly limit for Here Geocoding. So every geocode response had a different formed response. but the client doesn't handle it well...

The Error Displays as following: "Unexpected character encountered while parsing value: <. Path '', line 0, position 0."

RodneyRichardson commented 3 years ago

I've submitted a pull request to update to the latest HERE API (#142). This returns errors as JSON, which should be parsed successfully (I've tested with a bad apiKey, as well as bad query parameters).

DR9885 commented 3 years ago

@RodneyRichardson It only happened when I used a Free license, and hit limit of "Transactions per month 250K"...

Steps to Recreate: