OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://www.switch-bot.com/
ISC License
229 stars 47 forks source link

Bug: Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500 #947

Closed frankdestclaude closed 3 weeks ago

frankdestclaude commented 4 months ago

Describe the Bug

Sur raspberry PI4b, homebridge, error message : Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500

To Reproduce

Sur raspberry PI4b, homebridge, error message : Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500

Expected Behavior

qu'iln y ait plus de message d'erreur

Relevant Log Output

[29/02/2024 13:18:15] [SwitchBot] Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[29/02/2024 13:18:15] [SwitchBot] Meter: Chambre Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[29/02/2024 13:48:16] [SwitchBot] Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[29/02/2024 13:48:16] [SwitchBot] Meter: Chambre Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[29/02/2024 13:54:16] [SwitchBot] Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[29/02/2024 13:54:16] [SwitchBot] Meter: Chambre Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[29/02/2024 14:26:16] [SwitchBot] Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[29/02/2024 14:26:16] [SwitchBot] Meter: Chambre Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[29/02/2024 15:32:16] [SwitchBot] Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[29/02/2024 15:32:16] [SwitchBot] Meter: Chambre Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[29/02/2024 15:38:16] [SwitchBot] Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[29/02/2024 15:38:16] [SwitchBot] Meter: Chambre Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug

Config for homebridge-switchbot

{
    "name": "SwitchBot",
    "credentials": {
        "token": "401b11fdbe36201ea778768176b8a533061ad660e1e6c68947b344c1870ce08bb4dd233f9bcc914b7f3a7cc135e197b7",
        "secret": "2d0baa589a7aa80dd1c57eee360ba625",
        "notice": "Keep your Token & Secret a secret!"
    },
    "platform": "SwitchBot",
    "_bridge": {
        "username": "0E:75:7E:AC:71:C3",
        "port": 48999
    }
}

Screenshots

No response

Device and Model

Raspberry PI4b

Node.js Version

v20.11.1

NPM Version

v10.2.4

Homebridge Version

v1.7.0

Homebridge Switchbot Plugin Version

v3.4.0

Homebridge Config UI X Plugin Version

v1.7.0

Operating System

raspbian

sametguzeldev commented 3 months ago

I am having the same issue myself.

[3/12/2024, 5:40:52 AM] [SwitchBot] Bot: Upper Air conditioner Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[3/12/2024, 5:40:52 AM] [SwitchBot] Meter: Bedroom Meter Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[3/12/2024, 5:40:52 AM] [SwitchBot] Meter: Bedroom Meter Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[3/12/2024, 5:40:52 AM] [SwitchBot] Contact Sensor: Garden Door Sensor Internal Server Error,   An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[3/12/2024, 5:40:52 AM] [SwitchBot] Contact Sensor: Garden Door Sensor Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[3/12/2024, 5:42:52 AM] [SwitchBot] Smart Lock: Main Door Internal Server Error,        An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[3/12/2024, 5:42:52 AM] [SwitchBot] Smart Lock: Main Door Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[3/12/2024, 5:42:52 AM] [SwitchBot] Meter: Gaming meter Internal Server Error,  An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[3/12/2024, 5:42:52 AM] [SwitchBot] Meter: Gaming meter Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[3/12/2024, 5:44:52 AM] [SwitchBot] Meter: Gaming meter Internal Server Error,  An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[3/12/2024, 5:44:52 AM] [SwitchBot] Meter: Gaming meter Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[3/12/2024, 5:44:52 AM] [SwitchBot] Bot: Computer Internal Server Error,        An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
[3/12/2024, 5:44:52 AM] [SwitchBot] Bot: Computer Unknown statusCode: undefined, Submit Bugs Here: ' + 'https://tinyurl.com/SwitchBotBug
[3/12/2024, 5:44:52 AM] [SwitchBot] Contact Sensor: Main Door Contact Sensor Internal Server Error,     An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500
epheterson commented 3 months ago

Same

https://github.com/OpenWonderLabs/homebridge-switchbot/issues/953

niqbert commented 3 months ago

Same

Gus-smarthome commented 3 months ago

same

zx81uk commented 3 months ago

Same

mrlightison commented 3 months ago

Same, for the Smart Lock.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Aeon-Auriga commented 2 months ago

Same.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

swshong commented 2 months ago

Same

Sabulski commented 2 months ago

Same here.

nnhoang commented 2 months ago

Same issue as #959 . Reverting to v3.1.3 worked for me.

sametguzeldev commented 2 months ago

This is an issue directly with Switchbot API v1.1. I've tested it myself on Postman and I saw the same 500 status code. image

I did the same test on Switchbot API v1.0 and that seemed to be working. Haven't received any 500 status code but I did not test it that much. What I saw was if you try to do the request again after a while it succeeds. So I implemented a retry mechanism myself and it worked. Received status code 100 after several tries.

image

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Gus-smarthome commented 1 month ago

Mine now changed to statusCode: 190

github-actions[bot] commented 4 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 weeks ago

This issue has been closed as no further activity has occurred.