7 posts / 0 new
Last post
rranjan
Getting FORBIDDEN error in CoAP requests sent to milli. Need help !!

I have a mili5 kit development unit and when the time run with the sdkcoapclient-1.1.0.one-jar.jar to ping this milli, error occurs as below:-

2018-02-15 18:50:13,502 | SDKCoAPClient I/O Worker #6      | ClientBlock2Handler
                 | DEBUG | HANDLE INBOUND MESSAGE: [Header: (V) 1, (T) ACK (2),
(TKL) 8, (C) FORBIDDEN (131), (ID) 51951 | (Token) ############## | Options:
 | Content: <no content>]
2018-02-15 18:50:13,502 | SDKCoAPClient I/O Worker #6      | SdkCallback
                 | INFO  | Received #: CoAP: [Header: (V) 1, (T) ACK (2), (TKL)
8, (C) FORBIDDEN (131), (ID) 51951 | (Token) ################ | Options: | Con
tent: <no content>]

Type: 
Public
rvempati
Getting FORBIDDEN error in CoAP requests sent to milli.

Usually "FORBIDDEN" error is encountered when a device is not accessible through your client id + secret. Is this device registered under your user.

rranjan
Getting FORBIDDEN error in CoAP requests sent to milli.

This particualt milli  is registered with another user from my organization. However, since i recently joined his tenant group, my understanding was that I should be able to fetch data from his devices.

rvempati
Getting FORBIDDEN error in CoAP requests sent to milli.

Okay , so can you try the original owner's credentials and see if your milli is reachable.

rranjan
Getting FORBIDDEN error in CoAP requests sent to milli.

Interestingly , yes the CoAP requests work fine with his credentials. So this means it has something to do with my user credentials.

jgupta
Getting FORBIDDEN error in CoAP requests sent to milli.

I would suggest you to try obtaining fresh credentials again ( from My Account on developer portal) and then try to access this milli. Since you recently joined this tenant your originial credential may not be automatically authorized to access these devices.

rranjan
Getting FORBIDDEN error in CoAP requests sent to milli.

I tried with fresh credential and it works well. I'm able to reach the device. Thank you so much !!