04-07-2016 12:35 PM - edited 02-04-2024 2:00 AM
Dear Community,
when using the MMS to push data via http to a device, everything works as expected.
Trying the same using Postman fails with a 403 error.
Can you please assist?
This is the url:
The device id is the id of my receiving device
Header is set with OAUTH-token:
Body:
{"method":"http", "sender":"My IoT application", "messageType":"9eeeb7d990e1dc2XXXXX","messages":[{"sensor":"My Sensor 1","value":"m,y Value 3", "timestamp":1413191658}]}
The url looks exactly the same compared to the one MMS is generating.
Thanks in advance,
Patrick
Hi Patrick,
did I get it right that you are on productive landscape and not on HCP Trial?
Regards,
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I see. To me the URL and payload look fine. Seems like Postman reuses the existing session from your browser (where you have been authenticated with SAML when you accessed MMS Cockpit, for example or HCP Cockpit). So, close all browser windows (to have clean session), launch Postman again and make a HTTP request towards Push API.
Let me know if that helped. If not, w'd need to have a closer look.
Regards,
Anton
same result..
Receiving pushed data is working fine via Postman with this URL and Header correctly set:
Strange..
Are you using the token which you got for your device? If yes, this is wrong.
Push API is protected with Basic and OAuth but for OAuth you have to generate a token yourself (with push scope). See SAP HANA Cloud Platform Internet of Things (IoT) Services
Regards,
Anton
One more thing:
just tested the same in a JAVA-program, same result.
So does not seem to be related to Postman..
Best regards
Patrick
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 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.