Qluxzz / avanza

A Python library for the unofficial Avanza API
https://qluxzz.github.io/avanza/
MIT License
85 stars 40 forks source link

Websocket returning '402::Unknown client' #57

Open nikobenho opened 2 years ago

nikobenho commented 2 years ago

Hi,

After seemingly random time intervals (varying between 10 - 120 minutes) of listening to websocket channels, I start receiving 402::Unknown client messages, causing data processing to stop.

I've looked through earlier issues and have ensured I set the Autmatic logoff timer to 24 hours, but the issue still persist. I've also tried a suggestion in Closed issue #15 without success.

My preferred solution would be to implement a solution that prevent this from happening, although I suspect a solution that simply reconnects to the websocket channels are more simple to implement. Unfortunately, my programming skills are rather limited and I'm not sure how to begin troubleshooting this issue.

Has anyone else encountered this issue and or solved it already? Could someone point me in the right direction?

Cheers