vivet / GoogleApi

C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
MIT License
551 stars 154 forks source link

Exception on Newtonsoft. #296

Closed yaggii closed 2 years ago

yaggii commented 2 years ago

Hi!

While using the Nuget Package (4.2.2) for the following origin - Destination: -13.68744,34.91742 | -16.06818,34.86724

I get in the API the following error: Exception thrown: 'System.ArgumentException' in Newtonsoft.Json.dll Exception thrown: 'Newtonsoft.Json.JsonSerializationException' in Newtonsoft.Json.dll

The return is valid and all though.

vivet commented 2 years ago

Hi

Which api are using?

vivet commented 2 years ago

Hi

I tried reproducing the issue, both with Directions and DistanceMatrix api. The serialization worked for me. Could you provide the entire request?

yaggii commented 2 years ago

Hi,

I'll post the details still today. Calling the API works but is giving this internal exception that I wanted to make visible for you!

Thanks, Sérgio

vivet commented 2 years ago

Hi

As I haven't heard from you, I will close the issue. I can't reproduce the issue either.

I am in the works of switching newtonsoft with System.Text.Json. Let's see if that will solve it for you.