magico13 / PyEmVue

Python Library for the Emporia Vue Energy Monitor
MIT License
185 stars 36 forks source link

botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter AccessToken, value: None, type: <class 'NoneType'>, valid types: <class 'str'> #79

Open chakachim opened 2 months ago

chakachim commented 2 months ago

Getting this error about 90% of the time when trying to poll using the example script.

botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter AccessToken, value: None, type: <class 'NoneType'>, valid types: <class 'str'>

magico13 commented 2 months ago

Odd, type checking is generally optional in Python. I might be able to clean up some of the types that are defined within the library, but once it gets to botocore it's out of my hands.

chakachim commented 2 months ago

If I keep spamming the login attempt process, it will eventually succeed after nine or so tries. This will work for what I'm making, but I didn't know if me constantly spamming the login process would create any issues with the provider.

DabblerIOT commented 2 months ago

provider for auth is amazon incognito in iad

i would assume if you spam it at some point it will not respond.. think tolkens are good 30 min plus

clarsen commented 1 month ago

downgrading to pyemvue == 0.16.0 appears to work