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
228 stars 121 forks source link

Problem regarding sending commands #316

Closed dev-ahmed-ibrahim closed 1 year ago

dev-ahmed-ibrahim commented 1 year ago

I worked fine with Sinric Pro until suddenly it showed a weird error message each time I tried to turn on or off a device. Error Message: error

The device executes the command but there is no response from the WebSockets part.

I appreciate your help.

sivar2311 commented 1 year ago

Hi @dev-ahmed-ibrahim!

Please restart the device once (press the reset button) Does the error still occur afterwards?

dev-ahmed-ibrahim commented 1 year ago

I have two different ISPs in my home. When I connected the device to a different ISP it works fine. But if I connect the device to the first ISP router it shows this error. Also, If I turned on a mobile hotspot, it works fine.

sivar2311 commented 1 year ago

By "different ISP's" do you mean different providers or different WLAN networks?

dev-ahmed-ibrahim commented 1 year ago

Yes, different providers.

sivar2311 commented 1 year ago

This is very strange.

The device gets the current time from the SinricPro server (both at the first connection, and at each message received from the server). Based on this, a new timestamp is calculated for each message.

Please enable the debug output and post the log for analysis.

sivar2311 commented 1 year ago

I have removed deviceID for security :)

:+1:

The time stamps look good to me. The thing with the different ISP's makes me wonder - Why does it work with one and not the other? What different ISP's are being used?

@kakopappa : Can you check the server side please?

sivar2311 commented 1 year ago

What was the cause?

dev-ahmed-ibrahim commented 1 year ago

I have just tried another router, but the problem persists. I tried everything but had no luck. Our ISP in Egypt is a famous one which is called (WE). The problem also persists with my friends using this provider (WE Internet) :(

dev-ahmed-ibrahim commented 1 year ago

I use Vodafone and it works. Also another provider named; Etisalat; it also works except WE Internet in Egypt. :(

chetan1836 commented 1 year ago

I have the same issue, any fixes?

sivar2311 commented 1 year ago

Hello @chetan1836

Everything is fine on the SDK side, there is no error there. The logs from @dev-ahmed-ibrahim have confirmed that.

We need to see if @kakopappa can detect something in the logs on the server side.

Are you using the same ISP (WE Internet in Egypt) ?

kakopappa commented 1 year ago

Sorry about the late response. I was traveling abroad yesterday.

The issue seems to be related to a WebSocket server change made in the last release and it has been resolved. Please re-test. If the issue persists please contact us via email with the device id.

dev-ahmed-ibrahim commented 1 year ago

I have just tried and it is working perfectly :)

Thank you much :)

chetan1836 commented 1 year ago

Its working fine now. Thanks for the quick fix.

stale[bot] commented 1 year ago

This issue has gone quiet. Spooky quiet. We currently close issues after 14 days of inactivity. It’s been at least 7 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks for being a part of the SinricPro community!

stale[bot] commented 1 year ago

This issue has gone quiet. Spooky quiet. We currently close issues after 14 days of inactivity. It’s been at least 7 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks for being a part of the SinricPro community!

stale[bot] commented 1 year ago

Hey again! It’s been 14 days since anything happened on this issue, so our friendly robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks again for being a part of the SinricPro community!