Error: Request failed with status code 500

Hi, I’m new to smartthings and want to setup my zigbee device with a smartthings hub. Therefore I’m following some tutorials, like this one to setup a smartthings edge driver.

When I come to point 6, smartthings edge:channels:enroll -C I get the following message/error code:
smartthings edge:channels:enroll -C XXXXXXXXX-3ce1-4b22-897a-a37d6339e39d XXXXXXXXF00001
Error: Request failed with status code 500:
{“requestId”:“XXXXXXXXXXX-AD3A-4537-AAB9-A3ABE97B6674”,“error”:{“code”:“UnexpectedError”,“message”:“A non-recoverable
error condition occurred.”,“details”:}}

What is causing this error and what can I do to fix it?

Tagging @nayelyz

1 Like

Welcome to the SmartThings Community, @guestonh!

For the second parameter, HubID, did you use the ID shown in the IDE?
Try executing the command until the channelID and the CLI will prompt you to select the Hub that you want to enroll.

Thanks, @jkp!

Hi @nayelyz, thanks for your quick reply.
I indeed used the ID shown in the IDE, there it’s called the hub ID.

I did what you said and then selected the prompted Hub, there it has a device ID. Now it works.
It was not so clear from the tutorial to do it like this. Thanks!

Thank you for the feedback, I’ll report that to the corresponding team :smiley: