Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to server lost #44

Open
rbaltasar opened this issue Oct 3, 2022 · 2 comments
Open

Connection to server lost #44

rbaltasar opened this issue Oct 3, 2022 · 2 comments

Comments

@rbaltasar
Copy link

rbaltasar commented Oct 3, 2022

Hi!
I am using Sinric Pro to stimulate a python script that simulates a simple lamp, so I can control it with Alexa.
My code is pretty much one of your code examples in https://github.com/sinricpro/python-sdk.
It works fine for several hours, but after less than 24h the script shows an error message that says connection with the server has been lost.
I have restarted the process many times with the same outcome: in less than 24h the connection with the server is lost (no re-connection attempts but the python process does not terminate).
Is this a known issue?
Thanks!

@kakopappa kakopappa transferred this issue from sinricpro/feature-requests Oct 4, 2022
@kakopappa
Copy link
Contributor

Hi @rbaltasar

I have released a new version of the SDK 2.6.3 which does a clean exit if the connection has been lost. You can use supervisord or something similar to reconnect I will look into adding an internal retry in the next release.

https://pypi.org/project/sinricpro/2.6.3/

@rbaltasar
Copy link
Author

@kakopappa thanks! Now connection issues persist, but the script ends, so I think I can handle it by re-starting upon termination.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants