Communications.makeJsonRequest API on vivoactive device not working

Former Member
Former Member
Hi,

I am trying to use Communications.makeJsonRequest to make a HTTP GET request on a vivoactive device. the Device is connected via BLE to a iPhone running the Garmin Mobile Connect app. The request works on Simulator, but didn't work on vivoactive device. Does anyone know how to get this to work ? thanks
  • Former Member
    Former Member over 10 years ago
    I only ran it through the proxy a couple times to test. It still doesn't work without the proxy so I'm just going to create my own more compact api and call that instead. That seems to work just fine.
  • 104

    I only ran it through the proxy a couple times to test. It still doesn't work without the proxy so I'm just going to create my own more compact api and call that instead. That seems to work just fine.


    So the proxy was the problem? That seems to what you are saying..
  • it seems to me he's saying there were problems before he started using the proxy. The proxy was added so he could get a look at the network traffic. With that he was able to confirm that the response was making its way to the phone, but was not getting to the Garmin device.
  • Do you have one of the responses saved off in the proxy that timed out on the watch?

    One thing I'd do a quick check on is to make sure that things like quote marks, braces and brackets line up properly. I forget what error is returned if they don't line up, but maybe there is a glitch on the server where there is an occasional error in the data or format itself.

    if there is a missing closing brace or bracket for example, I could see a timeout along the line if something is waiting on it.