bertagnan
Posts: 9
Joined: Mon Oct 09, 2017 11:01 am

REST API

Tue Jun 19, 2018 12:23 pm

Gents, I am getting internal server error using the REST API.

Already checked and used postman to be sure no additional header was put in. The error, even from postman, pops out now and then.
Clipboard01.jpg
Clipboard01.jpg (47.82 KiB) Viewed 3254 times
Any idea?

bertagnan
Posts: 9
Joined: Mon Oct 09, 2017 11:01 am

Re: REST API

Tue Jun 19, 2018 4:56 pm

For the benefit of everybody we identified an issue with Jint interpreter which is causing some exception while the tracks are being extracted through the REST API. Surprisingly the script works like a charm on the VT interface.

If we find the root cause we will be happy to share.

bertagnan
Posts: 9
Joined: Mon Oct 09, 2017 11:01 am

Re: REST API

Tue Jun 19, 2018 6:06 pm

Careful in using script, removing this:

Code: Select all

var arr=data_in.match(/.{1,2}/g); 
fixed the issue.

Return to “GpsGate for Developers”