GroveStreams

Internal Server Error 500443

ctmorrison private msg quote post Address this user
At 7AM today, I stopped getting info from a device. I made no changes at that time and have no idea if Particle made any changes. However, many other Particle devices are running fine.

Here's the output from a trace as well as the info from Particle's webhook monitor. I've obfuscated my API key and the Particle device ID.


Call Details:
URL:
http://grovestreams.com/api/feed?th=74.2&h=50.9&t=73.6&api_key=999999999999999999999999999999&compid=sl2004
Method:
PUT
Process Time:
.136 seconds
Client Address:
54.89.199.194
Client Attributes:
{org.restlet.http.version=1.1, org.restlet.http.headers=[[X-Forwarded-For: 999999999999999], [host: grovestreams.com], [user-agent: ParticleBot/1.1 (https://docs.particle.io/webhooks)], [content-type: application/x-www-form-urlencoded], [content-length: 0], [connection: keep-alive]], org.restlet.startTime=1487170302042}

Request Body:

Response Body:
{
    "errCode": "UNKNOWN_EXCEPTION",
    "success": false
}


From Particle's webhook monitor
=================
Error Message
A detailed message about what went wrong
error status 500 from grovestreams.com

Event
The source event that triggered the webhook
{
"event": "gsthc",
"data": "{"k":"99999999999999","c":"sl2004","t":"73.2","h":"48.2","th":"74.0"}",
"published_at": "2017-02-15T14:58:09.977Z",
"coreid": "99999999999999999"
}

Request
The HTTP request sent to the webhook url
PUT /api/feed?th=74.0&h=48.2&t=73.2&api_key=99999999999999&compid=sl2004 HTTP/1.1
X-Forwarded-For: 9999999999999999
Host: grovestreams.com
User-Agent: ParticleBot/1.1 (https://docs.particle.io/webhooks)
content-type: application/x-www-form-urlencoded
content-length: 0
Connection: keep-alive

Response
The HTTP response received from the webhook url
HTTP/1.1 500 Internal Server Error
Date: Wed, 15 Feb 2017 14:58:40 GMT
Server: Apache
Accept-Ranges: bytes
Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS
Access-Control-Allow-Headers: accept, origin, x-requested-with, content-type
Access-Control-Max-Age: 86400
Content-Length: 47
Connection: close
Content-Type: application/json;charset=UTF-8

{"errCode":"UNKNOWN_EXCEPTION","success":false}
Post 1 • IP   flag post
ctmorrison private msg quote post Address this user
I just received this error:

API Exception Details:
Resource Path:
/api/feed
Resource Method: PUT
Client Address:
54.221.137.72
Client Attributes:
{org.restlet.http.version=1.1, org.restlet.http.headers=[[X-Forwarded-For: 999999999], [host: grovestreams.com], [user-agent: ParticleBot/1.1 (https://docs.particle.io/webhooks)], [content-type: application/x-www-form-urlencoded], [content-length: 0], [connection: keep-alive]], org.restlet.startTime=1487171531207}

Exception:

null

Call Stack:
com.-gs-.-lab-.utility.BlockHelper.unFlatten(BlockHelper.java:301)
com.-gs-.-lab-.storage.ustream.UBlocks.buildFrom(UBlocks.java:126)
com.-gs-.-lab-.storage.ustream.RdmInsert.generatePutForInsert(RdmInsert.java:335)
com.-gs-.-lab-.storage.ustream.RdmInsert.generatePutsForInserts(RdmInsert.java:195)
com.-gs-.-lab-.storage.ustream.UDataStore.insert(UDataStore.java:243)
com.-gs-.-lab-client.client.FeedResource.doPutJson(FeedResource.java:366)
sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


You are allowed one API exception notification per hour per authenticated session. This was the latest exception for this hour.
Post 2 • IP   flag post
ctmorrison private msg quote post Address this user
Actually, it appears I started getting these null exceptions yesterday for some reason.
Post 3 • IP   flag post
ctmorrison private msg quote post Address this user
For whatever reason, it appears the components were somehow corrupted. I deleted the components and re-created them (actually, copied one that appeared to be fine) and the new components are receiving data. Strange....
Post 4 • IP   flag post
MikeMills private msg quote post Address this user
It does look like the underlying data structure in the store was corrupted. We've never seen that before. If you see it again, try and remember what you steps you did.
Post 5 • IP   flag post
2543 5 5
Log in or sign up to compose a reply.
destitute