-
Notifications
You must be signed in to change notification settings - Fork 23
API returns 400 Bad Request for certain /api/status calls #312
Copy link
Copy link
Open
Description
I develop the app for Athom Homey homeautomation and while developing I found an issue with API calls:
- A query to get everything
/api/statusreturns the full JSON, but with HTTP 400 Bad Request - A filtered query for
/api/status?filter=sse,fna,car,alw,acs,frc,trx,cards,err,wh,pha,nrg,eto,tma,amp,ama,cbl,fspreturns the filtered JSON, but with HTTP 400 Bad Request - A filtered query for
/api/status?filter=sse,fna,car,alw,acs,frc,trx,cards,err,wh,pha,nrg,eto,tma,amp,ama,fspreturns the filtered JSON, with HTTP 200 OK
So full status query and queries that have filtered API keys not supported by the device such as CORE and PRO not having the cbl available results in HTTP 400 Bad Request. This in turn results the http client to fail and fails the process in the application as HTTP errors are traped and through an error.
Tested on go-eCharger PRO with 60.3 firmware.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels