maximn/google-maps

A query on Directions hangs

peterdew opened this issue · 9 comments

My code just hangs on this line. Never getting a response back.
image

The request is arriving at google maps, I can see the request and the responsecode (http 200 ok))
What can be the reason here?

Are you using the latest version? Is it a web/desktop?

See if this helps - #105

Still happening for me on 0.72 using .Net 4.5.2.

My code isn't Async but I tried using QueryAsync and then .Result but it never return a result.

Reverting to version 0.66 fixed the problem.

Did you use .ConfigureAwait(false) ?
#111

Hey maximn, I can confirm what John also said. For my project, the latest version just HUNG when doing geocodes. Oddly, it worked fine from within a CONSOLE application, but hung when I was using the web api controllers. This behavior occurred regardless of whether I used async or not. When I rolled back to an earlier version (0.66) it worked fine. I should mention I also tried it with 0.68 and 0.70. No success there, either.

Can you please try with v 0.75.0? Can you try both blocking and async methods?

I both tested Query() and QueryAsync() in a web application and both are working fine without blocking (deadlock). v0.75.0 seems to be fine.