Login
Forums >> General Discussion >> General Discussion >> API Request only working on initial page load
API Request only working on initial page load
Author Topic
pgaciaHeroic


Newbie

Join Date: 2021-04-23
Posts: 2
Posted: 2021-04-29 09:20:09 AM

I''m having an issue with pulling in the JSON data for a specific device. Using .ajax() I am able to successfully get and parse the data on initial page load but when I refresh the page it seems like I get some sort of parse error. I thought it was just me but I found another post where this url was provided to show a working example of getting the JSON data: http://www.followmee.com/api/testapi.html

It looks like the same thing happens there if you click the Get JSON button more than once.

Console throws an error that says "Uncaught ReferenceError: jsonp1619708185960 is not defined"

Looking at the network tab it looks like the request has has a 200 status...

What''s going on here?

Thanks!
pgaciaHeroic


Newbie

Join Date: 2021-04-23
Posts: 2
Posted: 2021-04-29 09:54:05 AM

Upon further testing it seems to just be having an issue when I use the url to get all devices...
Administrator


Best of the Best

Join Date: 2010-01-27
Posts: 1429
Posted: 2021-04-29 11:44:12 AM

We just tested the testapi page and it works perfectly. There is no error at all, even when we press the "get json" button multiple times. If you want to send us more information, you can email us.


FollowMee.com