cancel
Showing results for 
Search instead for 
Did you mean: 

retryAfterHeaderValue error after configuring an IOT solution

former_member356284
Participant
0 Kudos

Hello Experts,

I m trying to save the cloud data to our onPremise database.

I configured the mms cockpit by clicking on the Configure Processing service tile.

1. Added the Registered Processing Service Mappings

2. Added the Processing Service.

Added the details of my onPremise system, but I am getting 202 response for async as well as sync mode of communication.issue-2.png

This is the Data Endpoint:

https://iotmmss0016630553trial.hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/data/cbbe2...

this is the test payload mesage:

{"mode":"async","messageType":"7796a62d0fff8688410f","messages":[{"Capacity":"25","timestamp":1413191650}]}

Please help me understand the issue.

anton_levin
Advisor
Advisor
0 Kudos

Send once again please, MMS synchronises with RDMS when you send it for the first time.

anton_levin
Advisor
Advisor

And one more thing, you are using the wrong device id in the endpoint. It looks liek you are using device type id instead.

Accepted Solutions (1)

Accepted Solutions (1)

anton_levin
Advisor
Advisor
0 Kudos

Summarising the main thread: when sending messages on behalf of the device, the device ID has to be used (at the end of URL) and not device type ID.

Answers (1)

Answers (1)

anton_levin
Advisor
Advisor
0 Kudos

Hello Aakanksha,

as for sending data to OnPremise system, you have already contacted https://blogs.sap.com/2017/02/28/use-iot-mms-through-sap-scc/comment-page-1/#comment-397258

But I see another issue with your "iotmms" instance from the remote logs. It cannot synchronise with RDMS to get the latest model (device, message types, device types).

Could you please check and share the value of "RDMS Sync Base URL": MMS Cockpit > Configure Message Management Service > RDMS > mms.rdms.base_url ?

Regards,

Anton

former_member356284
Participant
0 Kudos

Hi Anton,

This is the value of "RDMS Sync Base URL" : https://iotrdmsiotservices-s0016630553trial.hanatrial.ondemand.com/com.sap.iotservices.dms

Thanks,

Aakanksha

anton_levin
Advisor
Advisor
0 Kudos

I would also need to see some more log infos. Could you please increase a log level? SCP Cockpit > Java Applications > iotmms > Monitoring > Logging > press Configure Loggers > filter for "com.sap.iotservices" > set "DEBUG" level for "com.sap.iotservices" (it will be automatically applied for sub-packages) > close dialog and then re-start iotmms from the Overview > Stop/Start

former_member356284
Participant
0 Kudos

Hi,

I followed all the above steps mentioned. Can you please tell me where I can see the log infos.

Thanks,

Aakanksha

anton_levin
Advisor
Advisor
0 Kudos

No worries, I see the logs remotely.

So, from there I see that MMS is able to sync with RDMS now. Could you please verify if you can send messages to IoT MMS? I would suggest to skip OnPremise part for now and just check the default path -> SQL persistance.

former_member356284
Participant
0 Kudos

Hi,

Before configuring the Configure Processing Service Mappings tile, I was able to send the messages to IoT MMS. But now I am unable to do that.

I even deleted the entire configuration, but was still unable to do that.

I didnt understand the defaulth path thing. but the destinations for iotmms is as below:

iot-mms-destinations.png

Thanks,

Aakanksha

anton_levin
Advisor
Advisor
0 Kudos

By default path I meant to check iotmms without any custom "processing mappings" configurations (just to verify that incoming messages land in the DB).

former_member356284
Participant
0 Kudos

Hi Anton,

No, now I am not able to fetch correct response from the cloud as well.

I even deleted the entire configurations, still the results are the same.

Thanks,

Aakanksha

anton_levin
Advisor
Advisor
0 Kudos

From the logs i see that you try to send invalid JSON to MMS

former_member356284
Participant
0 Kudos

Hi Anton,

JSON used is:

{"mode":"sync","messageType":"****message_ty_id****","messages":[{"Capacity":"25","timestamp":2017-11-08T06:55:11}]}

Also please see the fields in my message type.test1.png

Please Help me understand the issue.

Thanks,

Aakanksha

anton_levin
Advisor
Advisor
0 Kudos

Which is invalid JSON. Put timestamp value into quotes.

former_member356284
Participant
0 Kudos

Yeah, resolved the issue, I was using the device id type instead device id has to be used.

Thanks, for the help:)

Regards,

Aakanksha