PyViCare.PyViCareUtils.PyViCareInvalidDataError: NO TOKEN AVAILABLE
Closed this issue · 2 comments
sweh commented
Hi there,
since some time I'm no longer able to authenticate with the Viessmann API:
…
File "/home/sweh/dashboard/lib/python3.8/site-packages/PyViCare/PyViCare.py", line 26, in initWithCredentials
self.initWithExternalOAuth(ViCareOAuthManager(
File "/home/sweh/dashboard/lib/python3.8/site-packages/PyViCare/PyViCare.py", line 31, in initWithExternalOAuth
self.__loadInstallations()
File "/home/sweh/dashboard/lib/python3.8/site-packages/PyViCare/PyViCare.py", line 47, in __loadInstallations
raise PyViCareInvalidDataError(installations)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': 'req-1904c47ec16b417e8f0174a78750430b', 'statusCode': 401, 'errorType': 'UNAUTHORIZED', 'message': 'Request contain invalid token', 'error': 'NO TOKEN AVAILABLE'}
I installed the current master
as I thought that #314 would fix it but the error still persists. Any idea what's the problem on my side?
Kind regards,
Sebastian
crazyfx1 commented
Delete your local tokenfile (token.save) and try again.
sweh commented
Thanks, that worked!!!