Post by iconPost by banfry | 2020-11-02 | 17:34:42

hi,
since this morning the POST to get the boat info at
https://vro-api-client.prod.virtualregatta.com/getboatinfos
with postdata :
"{\"user_id\":\"xxxxxxxxxxxxxxxxx\",\"race_id\":\"440\",\"leg_num\":\"1\",\"infos\":\"engine,track,bs,ba,leg\"}"
returns 403 forbidden ...
any clue ?

commenticon 6 Comments
Post by iconPost by Hardtack | 2020-11-02 | 19:05:08
Interesting. How have you been able to send it in the first place? It seems to use bearer authentication - did you decode the token?
Post by iconPost by banfry | 2020-11-02 | 20:49:50
I was able to send it in c# with a simple WebRequest POST. I was not providing "x-api-key" and it worked since Friday and stopped Sunday PM.
I am back to square 1 !
I would like to feed my own app with the boat position and time stamp.
Looking in VR Dashboard ...
Post by iconPost by Hardtack | 2020-11-02 | 21:13:26
But VR Dashboard does not send any requests, it merely listens what the browser client sends.
Maybe you could feed the NMEA messages to your app?

Post by iconPost by banfry | 2020-11-03 | 07:52:28
Yes will try NMEA msg from the Chrome extension.
I need to open a receiving tcp socket on port 8081 ?
The Chrome extension acts as server ?

Post by iconPost by Hardtack | 2020-11-03 | 09:05:35
Yes, but what you'll see is HTTP POST requests with the NMEA message in the body.


function sendSentence (raceId, sentence) {
var request = new XMLHttpRequest();
request.open("POST", "http://localhost:" + '8081' + "/nmea/" + raceId, true);
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
request.onerror = function (data) {
console.log(data);
};
request.send(sentence);
}


Alternatively you could run the NMEA proxy and have your app connect to localhost:10xxx where xxx is the race id.
Post by iconPost by banfry | 2020-11-03 | 22:00:28
works fine with NMEA proxy. Tks


border
Topics list
Posts
border
5
border
border
Copyright 2009 by ZEZO.ORG. All Rights Reserved.