question

Shelby Tolliver avatar image
Shelby Tolliver asked ·

"CMN-102" "message" : "Resource for parameter [deviceId] is not found"

Have been successfully issuing CallOut's from C# SDK using deviceId. Now, all of a sudden I'm getting this "resource for parameter is not found". I'm using the same deviceId as I have been. I then went out and checked for all my device id's using

rc.Restapi().Account().Extension().Device().Get();

and it's returning the same deviceId. What's wrong now?

Thanks

deviceid
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

Are you sure the device is "online"? Check the device status. What type of phone is associated with that device id?

2 comments
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Thanks Phong. The phone was "offline". The phone app was "logged out". I've since logged in and all is well once again.

1 Like 1 ·

I recommend you always checking device status then place a call out call accordingly.

var resp = await rc.Restapi().Account().Extension().Device().Get();
foreach (var record in resp.records)
{
    if (record.id == "expected device" && record.status == "online")
    {
        // call call-out API
    }
}
   
1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.