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

Internal Server Error when using mode=1 as payload parameter for A/C devices #366

Open
KiraPC opened this issue Nov 20, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@KiraPC
Copy link

KiraPC commented Nov 20, 2024

Analysis

Call the POST /commands on A/C device with the following payload cause Internal Server Error

{ "command": "setAll", "parameter": "23,1,3,on", "commandType": "command" }

NB: Using any other value for the parameter mode the API success

Expected Behavior

Run the command with "auto" ad mode

Steps To Reproduce

curl --location 'https://api.switch-bot.com/v1.1/devices/*****/commands' \ --header 'Authorization: *****' \ --header 't: *****' \ --header 'sign: *****' \ --header 'nonce: ****' \ --header 'Content-Type: application/json' \ --data '{ "command": "setAll", "parameter": "23,1,3,on", "commandType": "command" }'

Logs

{
    "statusCode": 190,
    "body": {},
    "message": "internal server error"
}

Configuration

-

Environment

Postman

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants