You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I'm trying to connect to some IoT topics by using MQTT+websocket connection.
The code that follows is for creating a v4 signed url to be able to connect to the service by using temporary credentials that come from a Cognito Identity. I set the temporary credentials as environment variables (access key, secret key, session token).
I took the idea from this sample project: https://github.com/aws-samples/aws-iot-wss-ts-client which works correctly on my machine, so the credentials are good.
What I receive as an answer is this, when trying to connect:
which is a 403 - Forbidden error. My suspect is that the signed url is wrong but I checked all the parameters many times and can't understand which might be the problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm trying to connect to some IoT topics by using MQTT+websocket connection.
The code that follows is for creating a v4 signed url to be able to connect to the service by using temporary credentials that come from a Cognito Identity. I set the temporary credentials as environment variables (access key, secret key, session token).
I took the idea from this sample project: https://github.com/aws-samples/aws-iot-wss-ts-client which works correctly on my machine, so the credentials are good.
What I receive as an answer is this, when trying to connect:
which is a 403 - Forbidden error. My suspect is that the signed url is wrong but I checked all the parameters many times and can't understand which might be the problem.
Here's my sample code:
Thanks,
Frank
Beta Was this translation helpful? Give feedback.
All reactions