GoogleApi icon indicating copy to clipboard operation
GoogleApi copied to clipboard

Exception on Newtonsoft.

Open yaggii opened this issue 3 years ago • 0 comments

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.

yaggii avatar Aug 09 '22 09:08 yaggii

Hi

Which api are using?

vivet avatar Aug 10 '22 14:08 vivet

Hi

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

vivet avatar Aug 12 '22 04:08 vivet

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

yaggii avatar Aug 12 '22 07:08 yaggii

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.

vivet avatar Aug 20 '22 09:08 vivet