Open-IoT-Service-Platform / oisp-frontend

Apache License 2.0
5 stars 8 forks source link

Device login provokes internal server error #239

Closed arkocal closed 2 years ago

arkocal commented 3 years ago

Steps to reproduce (using python sdk):

device = account.create_device("device1", "device1")
token = device.activate()
new_login_device = client.get_device("device1", token)

Expected: Successful login. Returns: HTTP Code 500, Internal Server Error.

This might also be a bug in the SDK, but if the SDK is doing something wrong, frontend should return a meaningful denial message.

arkocal commented 3 years ago

Assigned @MericFeyz to observe the workflow and possibly review changes.

MericFeyz commented 3 years ago

The server returns a HTTP code of 500 when the given token is invalid.