question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing payload in QUERY response

See original GitHub issue

Hello, tell me guys, what is wrong with my QUERY response. Because I looked at it and found nothing but Google Console tells that I am missing payload field. Error message from Google Cloud: { "insertId": "166g06lg15lgekt", "jsonPayload": { "executionLog": { "executionResults": [ { "actionResults": [ { "action": { "actionType": "STATE_QUERY" }, "device": { "deviceType": "OUTLET" }, "status": { "externalDebugString": "JSON payload not an object.", "isSuccess": false, "statusType": "PARTNER_RESPONSE_INVALID_PAYLOAD" } } ], "executionType": "PARTNER_CLOUD", "latencyMsec": "191", "requestId": "4734217757620110233" } ] }, "locale": "en-US" }, "logName": "projects/smartlightproject-f47f4/logs/assistant_smarthome%2Fassistant_smarthome_logs", "receiveTimestamp": "2022-07-13T13:23:04.088211105Z", "resource": { "labels": { "project_id": "smartlightproject-f47f4" }, "type": "assistant_action_project" }, "severity": "ERROR", "timestamp": "2022-07-13T13:23:04.088211105Z" }

And my QUERY response: { "requestId": "4734217757620110233", "payload": { "devices": { "123": { "on": "true", "online": "true" } } } }

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
predondcommented, Jul 14, 2022

@slaesh, my friend, you are a genious! I managed to try your solution anyway and it worked! I totally don’t know why this happened but when I passed string JSON to Ok method I got intended action and no error. I really really appreciate your suggestion, it saved me life 😃. Now with a cool heart I can close issue. Know that I am really really thankful to you.

0reactions
predondcommented, Jul 14, 2022

The Ok function is an ASP.NET base element that returns the data passed to it as argument as JSON. So that object passed to Ok function is converted to application/JSON content type of response and parsed into JSON. I done SYNC request in the same way and Actions on Google accepted it, so I wouldn’t suspect it as the cause of issue. But I don’t see any other causes that may evoke that problem. That’s the reason why I started that issue 😃. I don’t see any ways to solve it at all. Maybe you can write some example with QUERY handling and send it to me? It doesn’t have to be in C#, because I can read other languages as well (from languages known for more than a little people of course 😃).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fetch error - Missing \"data\" payload in the request body
Try to change your fetch call to this, pay attention to the body field: fetch('http://localhost:1337/api/reviews/', { method: 'POST', ...
Read more >
Request Payload parameters are gone in request. · Issue #43
A workaround is to check the box for "Raw Payload" and leave it empty, and add the query parameters in the key:value pair...
Read more >
some Accounts are missing in response payload - Help - Intuit
Greetings,. We have an issue with one of the QBO endpoints in production. The request we make is: https://quickbooks.api.intuit.com/v3 ...
Read more >
Response payload missing in SXMB_MONI
I have a query related to Response payload in SXMB_MONI. I am using IDOC-XI-FILE & FILE-XI-IDOC asynchronous scenario . Output xml files and...
Read more >
Snowflake SQL API Reference
401. Unauthorized. The request is not authorized. This happens if the attached access token is invalid or missing. The response body may include...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found