sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
227 stars 121 forks source link

Connection rest by peer #381

Closed abdoshamma closed 1 month ago

abdoshamma commented 1 month ago

IMG-20240522-WA0004.jpg

Could you please help me how to solve this and why it appears

kakopappa commented 1 month ago

Try switching to another WiFi/ mobile data

On Wed, 22 May 2024 at 5:56 PM abdoshamma @.***> wrote:

IMG-20240522-WA0004.jpg (view on web) https://github.com/sinricpro/esp8266-esp32-sdk/assets/20017323/cf9afb66-4e0e-476b-b952-997610ef3957

Could you please help me how to solve this and why it appears

— Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/381, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZUKSOCXQ2VOWBBU75DZDR2V5AVCNFSM6AAAAABIDMI4KOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYTAMRSGA3DOMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

abdoshamma commented 1 month ago

I tried still can't sign in

abdoshamma commented 1 month ago

I tried still can't sign in Also I checked with some of my friends here they are facing the same issue since today morning

kakopappa commented 1 month ago

I have tried on Android/iOS both on WiFi/Mobile, but I don't see this issue.

recording:

https://github.com/sinricpro/esp8266-esp32-sdk/assets/7474406/a6ba4bf4-7384-41e4-9531-446be48a48d0

Do you still face this issue ?

According to the error message, the connection gets reset. This could be your router, intermediate, or server.

abdoshamma commented 1 month ago

IMG-20240523-WA0007.jpg

IMG-20240522-WA0004.jpg

IMG-20240522-WA0009.jpg

IMG-20240522-WA0012.jpg

Still facing the same issue not only me but all of my friends as well ios users Can control through the website no issues Location, Qatar Maybe the issue with the server? Hopefully we can find out why this happened

abdoshamma commented 1 month ago

Upon further investigation, I discovered that the issue seems to be related to the WebSocket connection. Specifically, the error message “SinricPro:Websocket: disconnected” is appearing. Screenshot 2024-0F5-23 232542.png

kakopappa commented 1 month ago

Hi

  1. Can you please add #define SINRICPRO_NOSSL before #include SinricPro.h. Not sure whether you have a proxy in the middle that does SSL decryption blocking the connection.

  2. Please enable ESP SDK logs;

To enable ESP8266 logs, in Arduinio IDE: Tools -> Debug Serial Port -> Serial Tools -> Debug Level -> SSL + HTTP_CLIENT

To enable ESP32 logs, in Arduinio IDE: Tools -> Core Debug Level -> Verbose

And share the complete log here. We are also in Discord https://discord.gg/E6GhJHDsvJ

abdoshamma commented 1 month ago

Thanks for the support Already problem fixed.

sivar2311 commented 1 month ago

Already problem fixed.

It would be very nice if you could share the cause and its solution with all of us.

kakopappa commented 1 month ago

Glad to hear it’s fixed however not really sure what was wrong to begin with.

  1. We did not find anything wrong with the firewall configuration (for Qatar or any where else) during the investigation

  2. Some others in Qatar could connect.

Do you have any idea what was the problem/ how it got solved? It’s important for us to know this information if it happens again somewhere else again

On Sun, 26 May 2024 at 3:04 AM sivar2311 @.***> wrote:

Already problem fixed.

It would be very nice if you could share the cause and its solution with all of us.

— Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/381#issuecomment-2131419336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZWQBFR4FRPY72KXSA3ZEDVFHAVCNFSM6AAAAABIDMI4KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZRGQYTSMZTGY . You are receiving this because you commented.Message ID: @.***>

abdoshamma commented 1 month ago

Actually I'm not really sure what happened but my prediction is there's two Internet providers in Qatar and the issue happens with the devices connected to one of them only, so i think the problem was from the Internet provider itself

sivar2311 commented 1 month ago

Thanks for the reply :)