I’m trying to write a library in C# to communicate with the Spark Cloud. So far so good with everything except for deleting old access tokens. I can list token fine, but when I use the DELETE method with the same ID/password combo my request times out.
This is happening to me as of tonights testing. I'm getting this back.
<html>
<head>
<title>502 Bad Gateway</title>
</head>
<body bgcolor="white">
<center>
<h1>502 Bad Gateway</h1>
</center>
<hr>
<center>nginx/1.6.0</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
Postman is also returning a few of these inbetween as well.
@andreburto Sorry for the confusion. This would be for the official spark folks, because I am still unable to delete keys and getting server timeouts as in my original reply to this thread. So I guess the right person would be someone like @Dave ?
OK, so our normal production api diverged because of the IFTTT integration we built over the last few months. We’ve fixed this bug, but it’s not in the normal stable production api yet. Now that we’ve released IFTTT (last week), I can begin merging these branches back together, and should have that rolled out early next week.
tl;dr; it’s fixed but not pushed, will push next week.
Hi @Dave
I went today to test again, and was able to delete 1 access token. When trying to delete the 2nd most recent (or any other) access token, it times out again
Could not get any response
This seems to be like an error connecting to https://api.spark.io/v1/access_tokens. The response status was 0.
Check out the W3C XMLHttpRequest Level 2 spec for more details about when this happens.