Unexpected Response 403 today with no changes to my app.

0

Today out of the blue my app stopped working and I receive 403 Unexpected Response when trying to connect to my AWS IoT custom endpoint (wss://staging.stream.mysite.com/mqtt).

When I check the logs for both my IoT custom authorizer function and my IoT lamba topicrule handler, both are empty.

I have made no changes to my app before this happened and am unsure of the cause so far.

I connect to the websocket endpoint using async-mqtt js library with a custom iot authorizer that parses the username and clientId fields to determine authorization.
https://github.com/mqttjs/async-mqtt

effectively like this:

const connection = yield mqtt.connectAsync('staging.stream.mysite.com/mqtt', {
  username: '?SDK=BrowserJSv2&Version=1.1.3&token=<auth_token>',
  clientId: 'ANONYMOUS::uuid',
})

Any ideas what could be wrong or why the sudden failure or how to debug?

Edit: Resolved on it's own after hours of breakage.

Edited by: phasetwo on May 11, 2020 1:19 PM

Edited by: phasetwo on May 11, 2020 3:56 PM

borg
gefragt vor 4 Jahren255 Aufrufe
1 Antwort
0

Suddenly resolved without any indication as to what the problem was.

borg
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen