on 11-28-2016 6:03 PM - last edited on 02-03-2024 7:19 PM by postmig_api_4
Hi!
I am trying to post a simple message using postman but repeatedly get this error message
Access to the requested resource is not authorized (HTTP 401)
Chrome extension has been set to run incognito.
Any ideas on how to fix this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parminder,
As you say that you are trying to post a message & hence you need to pass the Bearer code in Authorization header, this is generated the time you create your device.
Use "Headers" section in Postman and under it, add "Authorization" with "Bearer <token of the device>" & it shall work, in case not, post the URL (without your SID/PID) along with parameters you are passing in the request so we can see what the problem is.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Postman will reuse your current browser session. If you are already signed into IoT Cockpit with SAML it will ignore your Bearer authorization header. Close all browser windows (maybe even clear cache) and launch Postman new. Regards, Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.