-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
BUG: [SwitchBot] Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500 #959
Comments
Just adding a +1 to this - seeing the same thing in my instance. Let me know if there are any helpful details I can provide. |
Sorry nothing I can do about this. This is all the SwitchBot API. SwitchBot will have to resolve this. And no I don't work for switchBot, I just manage this plugin. |
I just updated to 3.4.0 from 2.12.1 and had this error. I rolled back to 2.12.1 and things are fine again. |
I see a ton of these and my blinds do not operate reliably anymore: Maybe a backoff/retry loop in there? [4/30/2024, 6:19:34 AM] [SwitchBot] Blind Tilt: Blind 1 Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500 |
I am thinking about rolling back as well. Maybe older version of this plugin is using an older version of Switchbot API? |
The alternate option I suppose is to look at the new Switchbot Hub that supports Matter |
I bought the new Hub when it was released specifically for this purpose, but it's unfortunately useless for me because the Switchbot Bots / Button Pushers will only show up in HomeKit (through Matter) as a Light Switch. So it defeats the whole purpose of the Bot and the different types of Press States etc. Switchbot says it's a Matter limitation right now. |
I just rolled back from 3.4.0 to 2.12.1 and I now have access to my tilt blinds again. |
I tried 2.12.1 and see the same lack of errors and better reliability.... of what its worth |
Thank you very much y'all, 2.12.1 also saved my bacon. |
Reverting to v3.1.3 also worked for me. After reverting the errors disappeared and IR worked again. |
For what it's worth, I reverted to
Edit: Also reset my developer token from the app and no dice. |
I also reverted to 2.12.1 and I'm still seeing the 500 error with my Smart Lock Series 1. |
Nice @sametguzeldev, would you be willing to submit a PR? |
I am not a typescript expert at all 😄
|
Thanks, I will see what I can do |
@donavanbecker
then I made all devices to call this method.
to
I'll be running it like this on my environment for now. Maybe this could give you some kind of idea to how to implement it better. |
…tus refreshes Add Support for `maxRetries` and `delayBetweenRetries` on OpenAPI status refreshes based on [#959](#959 (comment)), Thanks [@sametguzeldev](https://github.com/sametguzeldev)
Thanks @sametguzeldev, I have added this to the latest beta. maxRetries and delayBetweenRetries are both customizable in the config. |
I've been getting these unknown statuscode errors constantly across all my devices (meters, curtains, etc.) on v3.4.0. (had opened a separate issue a while ago). The latest beta V3.5.0-beta22 seems to have fixed it. Thanks! |
Been following this for a while. Thanks for the input and progress so far! The 500 errors are now gone. However, after updating to the newest beta’s .22 and .23 my curtains are unresponsive. Fresh install from 3.4.0 will detect the hub mini and curtains after inputting token with intermittent issues and 500 errors Updating from 3.4.0 to the beta’s results in the curtains being unresponsive. Fresh beta install .22 and .23 will not detect the hub mini and curtains |
Same for me with the Smart Lock. The 500 errors are solved, but newest betas .22 and .23 cause the Lock to become entirely unresponsive. Similar troubleshooting re: version installations yields the same result. Fresh install from 3.4.0 will detect the hub mini and curtains after inputting token with intermittent issues and 500 errorsUpdating from 3.4.0 to the beta’s results in the curtains being unresponsive.Fresh beta install .22 and .23 will not detect the hub mini and curtainsOn May 7, 2024, at 3:27 AM, Ave87 ***@***.***> wrote:
Been following this for a while. Thanks for the input and progress so far! The 500 errors are now gone. However, after updating to the newest beta’s .22 and .23 my curtains are unresponsive.
Fresh install from 3.4.0 will detect the hub mini and curtains after inputting token with intermittent issues and 500 errors
Updating from 3.4.0 to the beta’s results in the curtains being unresponsive.
Fresh beta install .22 and .23 will not detect the hub mini and curtains
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I am not using the latest beta. I am still using my own solution and I can confirm my Smart Lock and my Curtain 3 are still working. If you want @donavanbecker I can install the beta version and see how it interacts with my devices? I can enable debug and check it out. |
500 errors gone, but curtains unresponsive on the latest betas as ave87 posted. |
Yes please |
Do you have logs? |
Yes. Logs attached. I've enabled debug logging. Logs don't seem to show much. Not only are my curtains unresponsive, but even my meters don't seem to be updating. |
I think you need to run it for a while for it to trigger openAPIRefreshStatus and also try execute some stuff on the curtain. |
@donavanbecker I can confirm nothing is responding. I don't see any request log to anything in debug mode when using the latest beta. |
maxRetries are configurable per device, so you can set a different max on each one. |
I don't even see the discovery running at all.
|
Looks like nothing is getting through at all. No matter how many times I try to manipulate the curtains |
So I just increased "Max Retries for OpenAPI" in advanced settings from 5 to 15, restarted the bridge and I'm back in action! log excerpt: |
Setting the retries to 15 resulted in my curtains being discovered again. They are now responsive and mostly functional again. This morning the curtains remained closed when they should be open. In the log there was another 500 error again. So previously mentioned fixes did not completely solve the issues |
Confirmed from my side too, the beta is not working at all. I'm now using native SwitchBot automations and app until this gets solved. |
I had the same issue, using an Smart Lock and Hub 2: Node.js Version: v20.12.1 BUT it got fixed yesterday night after an update of the Smart Lock firmware to version V6.8. |
## [3.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.5.0) (2024-05-26) ### What's Changed - Add Support for `Water Detector` - Add Support for `Battery Circulator Fan` - Add BLE support for `Smart Lock` - Add `K10+` deviceType Support - Add Support for `maxRetries` and `delayBetweenRetries` on OpenAPI status refreshes based on [#959](#959 (comment)), Thanks [@sametguzeldev](https://github.com/sametguzeldev) - Major Refactoring of `device` and `irdevice` files. - Housekeeping and updated dependencies. **Full Changelog**: v3.4.0...v3.5.0
## [3.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.5.0) (2024-05-26) ### What's Changed - Add Support for `Water Detector` - Add Support for `Battery Circulator Fan` - Add BLE support for `Smart Lock` - Add `K10+` deviceType Support - Add Support for `maxRetries` and `delayBetweenRetries` on OpenAPI status refreshes based on [#959](#959 (comment)), Thanks [@sametguzeldev](https://github.com/sametguzeldev) - Major Refactoring of `device` and `irdevice` files. - Housekeeping and updated dependencies. **Full Changelog**: v3.4.0...v3.5.0
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. |
This issue has been closed as no further activity has occurred. |
Describe the Bug
When attempting to interact with WoIOSensor (Kitchen Sensor) and Smart Lock (LightBolt) devices using the homebridge-switchbot plugin, I receive an "Internal Server Error" with a status code of 500. Additionally, an "Unknown statusCode: undefined" error is logged. This suggests an unexpected error on the SmartThings servers.
To Reproduce
Expected Behavior
The plugin should successfully interact with the WoIOSensor and Smart Lock devices without encountering server errors.
Relevant Log Output
Config for homebridge-switchbot
Screenshots
No response
Device and Model
Outdoor Thermohygrometer, SmartLock
Node.js Version
v20.12.1
NPM Version
v10.5.0
Homebridge Version
v1.7.0
Homebridge Switchbot Plugin Version
v3.4.0
Homebridge Config UI X Plugin Version
v4.56.1
Operating System
macOS
The text was updated successfully, but these errors were encountered: