jchristn / GoogleMapsClient

I needed a simple way to parse addresses and resolve coordinates to an address. Plug in a Google Maps API key and you're all set.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System.ArgumentException: 'End time must be after start time.'

jorgeaponte opened this issue · comments

Hi @jchristn,
First of all thanks for this useful library .
I had the below error with the test project.
Maybe there is a missing commit here or in the RestWrapper project because when I point to the nuget package it works fine.

System.ArgumentException: 'End time must be after start time.'

at Timestamps.Timestamp.set_End(Nullable1 value) at RestWrapper.RestRequest.<SendInternalAsync>d__83.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at GoogleMapsClient.GoogleMaps.d__22.MoveNext() in C:\code\Github\GoogleMapsClient\src\GoogleMapsClient\GoogleMaps.cs:line 246
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at GoogleMapsClient.GoogleMaps.<GetGoogleMapsResponseAsync>d__21.MoveNext() in C:\code\Github\GoogleMapsClient\src\GoogleMapsClient\GoogleMaps.cs:line 203 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at GoogleMapsClient.GoogleMaps.d__18.MoveNext() in C:\code\Github\GoogleMapsClient\src\GoogleMapsClient\GoogleMaps.cs:line 129
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Test.Program.

d__4.MoveNext() in C:\code\Github\GoogleMapsClient\src\Test\Program.cs:line 76

Hi @jorgeaponte thanks for your kind words. What version are you using? I just tested with v1.1.12 and had no issue using the Test project.

Ok, yes, it looks like I need to do a dependency update and publish a new version. Hang tight!

Can you try with v1.1.13? Just pushed to nuget.

It worked. Thank you very much!
I would like to create a PR to add the property PartialMatch to the GoogleMapsResponse class (to get the partial_match field), and to fix the GoogleMapsAddress.GoogleResponse value (currently it is null still when the response is OK).

Sounds great!