Skip to content

CMT Frequenzänderung über web api mit http-post funktioniert nicht #2467

Answered by tbnobody
khschmidt asked this question in Q&A
Discussion options

You must be logged in to vote

The error message Failed to parse data!', indicates that your json is invalid.

See

OpenDTU/src/WebApi.cpp

Lines 108 to 115 in 3dc70ab

const String json = request->getParam("data", true)->value();
const DeserializationError error = deserializeJson(json_document, json);
if (error) {
retMsg["message"] = "Failed to parse data!";
retMsg["code"] = WebApiError::GenericParseError;
WebApi.sendJsonResponse(request, response, __FUNCTION__, __LINE__);
return false;
}

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by khschmidt
Comment options

You must be logged in to vote
1 reply
@stefan123t
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #2466 on December 19, 2024 13:40.