-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
The Zendure SolarFlow local HTTP API returns JSON data with an incorrect Content-Type header. The API endpoint /properties/report responds with valid JSON data but sets the Content-Type header to text/html instead of application/json (the response body is valid JSON, but the Content-Type header is incorrect.).
This causes issues with HTTP clients that strictly validate Content-Type headers before attempting to parse JSON responses (e.g., aiohttp, axios, fetch with strict mode).
Device Information
- Model: SolarFlow 800 Pro
- Firmware Version: V1.0.23
- API Version: 2
Steps to Reproduce
- Connect to the SolarFlow device on local network
- Send HTTP GET request to:
http://[device-ip]/properties/report - Inspect the response headers
Expected Behavior
The API should return:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: [length]
{
"timestamp": 1768894931,
"messageId": 6,
"sn": "EOAxxxxxx",
...
}Actual Behavior
The API returns:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: [length]
{
"timestamp": 1768894931,
"messageId": 6,
"sn": "EOAxxxxxx",
...
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels