Problem with SmartThings API

I am facing a persistent issue with SmartThings integration. Reinstalled the conmtainer, deleted the App with the hass_smartthings_remove, disabled, Nabu Casa, deleted the SmartThings Personal Token, restarted the SmartThings hub and still get the following error as soon as I set-up the configuration with SmartThings again. pysmartthings.errors.APIResponseError: Internal Server Error

(500): {"requestId": "78AACC7A-2BB0-4B31-A83F-2FACFBAA0135", "error": {"code": "UnexpectedError", "message": "unsuccessful-http-call status=401", "details": []}}

Devices are found and switch service works fine. But lights service gives the same error
Can’t figure out how to resolve this. The strange thing is that switch service works but not lights.

Solved. For some strange reason SmartThings lost connection to Hue