I’ve had a web app coded for weeks that connects to a spark core and retrieves data using a POST request.
Suddenly tonight I’m getting an error. I can’t understand what could have changed. I’ve tried reflashing the device and it reprograms and connects to wifi fine.
post code:
var dumpIn = “grabit”; //this is the name of the spark core function that initiates data transfer
var dumpInn = “grabData”; //this is the parameter of the spark core function that initiates data transfer
var deviceID = selectedCore;
var accessToken = securityKey;
var requestURL = “https://api.spark.io/v1/devices/” + deviceID + “/” + dumpIn + “/”;
$.post( requestURL, { params: dumpInn,access_token: accessToken }); // this is the post method that formats the url correctly to trip the spark core function
console.log(requestURL);
I get the following error:
I can’t imagine what the issue is. Any help appreciated.