Skip to Content

HCP IoT Push service via Postman not working

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:

https://iotmms<XX_MY_ACCOUNT_XX>.hana.ondemand.com/com.sap.iotservices.mms/v1/api/http/push/430d338f-964e-4c2b-920e-XXXXXXXX

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

token.png (6.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 07, 2016 at 11:44 AM

    Hi Patrick,

    did I get it right that you are on productive landscape and not on HCP Trial?

    Regards,

    Anton

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 07, 2016 at 01:26 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Patrick,

      Try to test by push the messages within the IoT in the push messages tab. we can confirm wether data is updating in the database tables or not.

      please check the connectivity/authorizations to receive the messages from external tools or the systems.

      Regards,

      Teja.