Hi y’all! I’ve got a weird bug with an app that I’m working on. I’m getting the speed limit of a road from the Azure Maps API and have all that set up, except for some reason I get an error (attached) the first time I load it, but if I switch pages to another page and then go back, I get my expected result. I’ve tried calling the GetSpeedLimit function more than once and with a delay between them to see what was going on but that still doesn’t seem to fix it. I’ve attached the problem code snippets and error/expected output. If anyone has any ideas on what is going on I could definitely use the help!
Note: I know that in the screenshots my expected output doesn’t include the speedLimit key, I’m doing the testing from a hotel and not a road (I would prefer to not be run over :))