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.

SYNC: Request ID 7814133750281608407 returned with empty JSON

See original GitHub issue

I am getting this error when i send JSON to SYNC Request via app.onSync((body, headers) => {}); This is the JSON Response which i am sending:

{
   "requestId":"7814133750281608407",
   "payload":{
      "agentUserId":"5b9c1a1b72d65025a8ca3f33",
      "devices":[
         {
            "id":"5b9c1a1b72d65025a8ca3f22",
            "type":"action.devices.types.OUTLET",
            "traits":[
               "action.devices.traits.OnOff"
            ],
            "name":{
               "defaultNames":[
                  "IR Switch"
               ],
               "name":"TV",
               "nicknames":[
                  "ir switch"
               ]
            },
            "attributes":{

            },
            "roomHint":"kitchen",
            "deviceInfo":{
               "manufacturer":"iRHub",
               "hwVersion":"1.0",
               "swVersion":"1.0",
               "model":"IR Device"
            },
            "willReportState":false
         },
         {
            "id":"5b9c1a1b72d65025a8ca3f88",
            "type":"action.devices.types.OUTLET",
            "traits":[
               "action.devices.traits.OnOff"
            ],
            "name":{
               "defaultNames":[
                  "IR Switch"
               ],
               "name":"AC Remote",
               "nicknames":[
                  "ir switch"
               ]
            },
            "deviceInfo":{
               "manufacturer":"iRHub",
               "hwVersion":"1.0",
               "swVersion":"1.0",
               "model":"IR Device"
            },
            "willReportState":false
         }
      ]
   }
}

The Error SYNC: Request ID 7814133750281608407 returned with empty JSON is coming on Google Cloud Logs Viewer. Just after Account Linking completes, google assistant sends RequestSync to Cloud API, This ‘empty json error’ is encountered and then account linking fails.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Flekercommented, Sep 19, 2018

Yeah I’d look at what that is doing to transform the objects, as that could change what is happening to the response that you return.

0reactions
ayushsharma82commented, Sep 19, 2018

Then i think problem is with Oauth2 Middleware. It coverts the express req and response objects to it’s own. that might be causing the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

request with JSON returns empty body Nodejs - Stack Overflow
You are adding the query string containing movie_id to the request URL over and over again. So only the first request will work...
Read more >
Request Sync | Cloud-to-cloud - Google Home Developers
This allows you to update users' devices without unlinking and relinking their account. All users linked to this identifier will receive a SYNC...
Read more >
Call for the templates of API response. Empty json arrays
Empty json arrays. Hello,. We faced with the issue. Responses to the API calls "SEQ-screen-sync-individual: Perform Synchronous Screening: ...
Read more >
[MS-ASCMD]: Empty Sync Request and Response
The scenario begins when a Sync request is issued by the client and indicates that there are no pending changes to report to...
Read more >
Synchronous Requests | Search Ads 360 API
In response to the request, the Search Ads 360 API will return the entire report in a JSON object. Synchronous requests:.
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