-
Notifications
You must be signed in to change notification settings - Fork 38
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
UpdateMsg Format #107
Comments
Hello @TheCrazyKing, The problem of this example is not the quote, and the Thank you. |
Ok! I saw your PR and it indeed corrects a bug. Now, I had just this question regarding the quotes if I may: {
"status":"IN_PROGRESS",
"statusDetails": "{"progress":"testerQuotes"}"
} but the following message format is working: {
"status":"IN_PROGRESS",
"statusDetails": {"progress":"testerQuotes"}
} Is it still compliant with the expected result PS: the message format
gives this error |
This is not a valid JSON. You can check that using any JSON validator - https://jsonformatter.org/json-pretty-print. |
Hi @TheCrazyKing, Thank you. |
Closing because it's resolved. |
@ActoryOu
I would apply a patch like this one:
If you append If you do not agree, I'll use the patch only locally. All the best |
Jobs_UpdateMsg was putting double quotes around the `statusDetails` value resulting in the following invalid JSON: ``` { "status": "QUEUED", "statusDetails": "{ "key": "value" }" } ``` This change removes the unnecessary double quotes to generate a valid JSON: ``` { "status": "QUEUED", "statusDetails": { "key": "value" } } ``` This was reported here - aws#107 Signed-off-by: Gaurav Aggarwal <[email protected]>
You are exactly right. This PR addresses the issue - #109. Thank you for reporting it. |
Jobs_UpdateMsg was putting double quotes around the `statusDetails` value resulting in the following invalid JSON: ``` { "status": "QUEUED", "statusDetails": "{ "key": "value" }" } ``` This change removes the unnecessary double quotes to generate a valid JSON: ``` { "status": "QUEUED", "statusDetails": { "key": "value" } } ``` This was reported here - #107 Signed-off-by: Gaurav Aggarwal <[email protected]>
Hi,
It seems that when following the example to create a update msg yields something like
"{"status":"SUCCEEDED","statusDetails":"{"key":"value"}"}}
Now, I don't know how you expect the MQTT API to be like, but in my case having a JSON content enclosed in quotes ("{"key":"val"}") is not working. I think it is safe to assume that job details will always be formatted as JSON and hence these quotes should be omitted.
If you don't agree I'll just use a local patch, so let me know :)
All the best
Ref:
The text was updated successfully, but these errors were encountered: