Google Smart Home SYNC throws error : Couldnt update the setting. Please check you connection












0















I've hit a brick wall with my Google Smart Home integration due to an error after my Smart Home SYNC process which only says "Couldn't update the setting. Please check you connection" as follows:



Screen Shot



I've done the Alexa Smart Home integration successfully and have been trying to setup Google Home the same way, using a similar endpoint setup.
I'm receiving the request body as follows:



"body": "{"inputs":[{"intent":"action.devices.SYNC"}],"requestId":"4411034480302599483"}"


And here is my response:



{  
"requestId":"4411034480302599483",
"payload":{
"agentUserId":"xxxx",
"devices":[
{
"id":"1234",
"type":"action.devices.types.SWITCH",
"traits":[
"action.devices.traits.OnOff"
],
"name":{
"defaultNames":[
"Projector Light"
],
"name":"ProjectorLight",
"nicknames":[
"Projector Light"
]
},
"willReportState":false,
"deviceInfo":{
"manufacturer":"TalentPace",
"model":"442",
"hwVersion":"3.2",
"swVersion":"11.4"
},
"customData":{
"fooValue":0,
"barValue":false,
"bazValue":"DV19000275"
}
}
]
}
}


I've run my response through the JSON validator and it shows the "no errors found" message.



The StackDriver logs show a BACKEND_FAILURE error:



Screen Shot



I've looked around on the web and this issue seems common. People have been suggesting trying this on new devices. I've tried that as well with no luck.



My endpoint is running on dot net core 2.0 and I'm returning the above JSON by converting a model binded object using NewtonJSON as follows:



return JsonConvert.SerializeObject(body);


The same setup worked fine for Alexa. At this point I'm not even sure if the issue is with my code or on Google's end. Any help would be much appreciated.










share|improve this question

























  • Can you see if the error happens during the sync, or at oauth?

    – Nick Felker
    Nov 26 '18 at 16:20













  • Thanks for your reply. Based on the StackDriver logs, the OAuth is cleared successfully. I'm getting the error on the SMART_HOME_SYNC action, which is triggered automatically right after OAuth.

    – Adithya Sivanandan
    Nov 26 '18 at 18:28











  • How does that Json convert method work? Are you sending the right headers back like the content type?

    – Nick Felker
    Nov 26 '18 at 19:20











  • @NickFelker The Json convert method converts the whole response body into a plain string. That's what I was returning. Is that not the correct return format? I've also tried the following with no luck, it returns a normal httpresponse message. Should this have any extra header specification? HttpResponseMessage httpResponseMessage = new HttpResponseMessage(); httpResponseMessage.StatusCode = System.Net.HttpStatusCode.OK; httpResponseMessage.Content = new StringContent(JsonConvert.SerializeObject(body), Encoding.UTF8, "application/json");

    – Adithya Sivanandan
    Nov 27 '18 at 3:01













  • Can you send it back as normal JSON, not as a string?

    – Nick Felker
    Nov 27 '18 at 4:30
















0















I've hit a brick wall with my Google Smart Home integration due to an error after my Smart Home SYNC process which only says "Couldn't update the setting. Please check you connection" as follows:



Screen Shot



I've done the Alexa Smart Home integration successfully and have been trying to setup Google Home the same way, using a similar endpoint setup.
I'm receiving the request body as follows:



"body": "{"inputs":[{"intent":"action.devices.SYNC"}],"requestId":"4411034480302599483"}"


And here is my response:



{  
"requestId":"4411034480302599483",
"payload":{
"agentUserId":"xxxx",
"devices":[
{
"id":"1234",
"type":"action.devices.types.SWITCH",
"traits":[
"action.devices.traits.OnOff"
],
"name":{
"defaultNames":[
"Projector Light"
],
"name":"ProjectorLight",
"nicknames":[
"Projector Light"
]
},
"willReportState":false,
"deviceInfo":{
"manufacturer":"TalentPace",
"model":"442",
"hwVersion":"3.2",
"swVersion":"11.4"
},
"customData":{
"fooValue":0,
"barValue":false,
"bazValue":"DV19000275"
}
}
]
}
}


I've run my response through the JSON validator and it shows the "no errors found" message.



The StackDriver logs show a BACKEND_FAILURE error:



Screen Shot



I've looked around on the web and this issue seems common. People have been suggesting trying this on new devices. I've tried that as well with no luck.



My endpoint is running on dot net core 2.0 and I'm returning the above JSON by converting a model binded object using NewtonJSON as follows:



return JsonConvert.SerializeObject(body);


The same setup worked fine for Alexa. At this point I'm not even sure if the issue is with my code or on Google's end. Any help would be much appreciated.










share|improve this question

























  • Can you see if the error happens during the sync, or at oauth?

    – Nick Felker
    Nov 26 '18 at 16:20













  • Thanks for your reply. Based on the StackDriver logs, the OAuth is cleared successfully. I'm getting the error on the SMART_HOME_SYNC action, which is triggered automatically right after OAuth.

    – Adithya Sivanandan
    Nov 26 '18 at 18:28











  • How does that Json convert method work? Are you sending the right headers back like the content type?

    – Nick Felker
    Nov 26 '18 at 19:20











  • @NickFelker The Json convert method converts the whole response body into a plain string. That's what I was returning. Is that not the correct return format? I've also tried the following with no luck, it returns a normal httpresponse message. Should this have any extra header specification? HttpResponseMessage httpResponseMessage = new HttpResponseMessage(); httpResponseMessage.StatusCode = System.Net.HttpStatusCode.OK; httpResponseMessage.Content = new StringContent(JsonConvert.SerializeObject(body), Encoding.UTF8, "application/json");

    – Adithya Sivanandan
    Nov 27 '18 at 3:01













  • Can you send it back as normal JSON, not as a string?

    – Nick Felker
    Nov 27 '18 at 4:30














0












0








0








I've hit a brick wall with my Google Smart Home integration due to an error after my Smart Home SYNC process which only says "Couldn't update the setting. Please check you connection" as follows:



Screen Shot



I've done the Alexa Smart Home integration successfully and have been trying to setup Google Home the same way, using a similar endpoint setup.
I'm receiving the request body as follows:



"body": "{"inputs":[{"intent":"action.devices.SYNC"}],"requestId":"4411034480302599483"}"


And here is my response:



{  
"requestId":"4411034480302599483",
"payload":{
"agentUserId":"xxxx",
"devices":[
{
"id":"1234",
"type":"action.devices.types.SWITCH",
"traits":[
"action.devices.traits.OnOff"
],
"name":{
"defaultNames":[
"Projector Light"
],
"name":"ProjectorLight",
"nicknames":[
"Projector Light"
]
},
"willReportState":false,
"deviceInfo":{
"manufacturer":"TalentPace",
"model":"442",
"hwVersion":"3.2",
"swVersion":"11.4"
},
"customData":{
"fooValue":0,
"barValue":false,
"bazValue":"DV19000275"
}
}
]
}
}


I've run my response through the JSON validator and it shows the "no errors found" message.



The StackDriver logs show a BACKEND_FAILURE error:



Screen Shot



I've looked around on the web and this issue seems common. People have been suggesting trying this on new devices. I've tried that as well with no luck.



My endpoint is running on dot net core 2.0 and I'm returning the above JSON by converting a model binded object using NewtonJSON as follows:



return JsonConvert.SerializeObject(body);


The same setup worked fine for Alexa. At this point I'm not even sure if the issue is with my code or on Google's end. Any help would be much appreciated.










share|improve this question
















I've hit a brick wall with my Google Smart Home integration due to an error after my Smart Home SYNC process which only says "Couldn't update the setting. Please check you connection" as follows:



Screen Shot



I've done the Alexa Smart Home integration successfully and have been trying to setup Google Home the same way, using a similar endpoint setup.
I'm receiving the request body as follows:



"body": "{"inputs":[{"intent":"action.devices.SYNC"}],"requestId":"4411034480302599483"}"


And here is my response:



{  
"requestId":"4411034480302599483",
"payload":{
"agentUserId":"xxxx",
"devices":[
{
"id":"1234",
"type":"action.devices.types.SWITCH",
"traits":[
"action.devices.traits.OnOff"
],
"name":{
"defaultNames":[
"Projector Light"
],
"name":"ProjectorLight",
"nicknames":[
"Projector Light"
]
},
"willReportState":false,
"deviceInfo":{
"manufacturer":"TalentPace",
"model":"442",
"hwVersion":"3.2",
"swVersion":"11.4"
},
"customData":{
"fooValue":0,
"barValue":false,
"bazValue":"DV19000275"
}
}
]
}
}


I've run my response through the JSON validator and it shows the "no errors found" message.



The StackDriver logs show a BACKEND_FAILURE error:



Screen Shot



I've looked around on the web and this issue seems common. People have been suggesting trying this on new devices. I've tried that as well with no luck.



My endpoint is running on dot net core 2.0 and I'm returning the above JSON by converting a model binded object using NewtonJSON as follows:



return JsonConvert.SerializeObject(body);


The same setup worked fine for Alexa. At this point I'm not even sure if the issue is with my code or on Google's end. Any help would be much appreciated.







actions-on-google






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 11:55







user10249172

















asked Nov 26 '18 at 9:55









Adithya SivanandanAdithya Sivanandan

11




11













  • Can you see if the error happens during the sync, or at oauth?

    – Nick Felker
    Nov 26 '18 at 16:20













  • Thanks for your reply. Based on the StackDriver logs, the OAuth is cleared successfully. I'm getting the error on the SMART_HOME_SYNC action, which is triggered automatically right after OAuth.

    – Adithya Sivanandan
    Nov 26 '18 at 18:28











  • How does that Json convert method work? Are you sending the right headers back like the content type?

    – Nick Felker
    Nov 26 '18 at 19:20











  • @NickFelker The Json convert method converts the whole response body into a plain string. That's what I was returning. Is that not the correct return format? I've also tried the following with no luck, it returns a normal httpresponse message. Should this have any extra header specification? HttpResponseMessage httpResponseMessage = new HttpResponseMessage(); httpResponseMessage.StatusCode = System.Net.HttpStatusCode.OK; httpResponseMessage.Content = new StringContent(JsonConvert.SerializeObject(body), Encoding.UTF8, "application/json");

    – Adithya Sivanandan
    Nov 27 '18 at 3:01













  • Can you send it back as normal JSON, not as a string?

    – Nick Felker
    Nov 27 '18 at 4:30



















  • Can you see if the error happens during the sync, or at oauth?

    – Nick Felker
    Nov 26 '18 at 16:20













  • Thanks for your reply. Based on the StackDriver logs, the OAuth is cleared successfully. I'm getting the error on the SMART_HOME_SYNC action, which is triggered automatically right after OAuth.

    – Adithya Sivanandan
    Nov 26 '18 at 18:28











  • How does that Json convert method work? Are you sending the right headers back like the content type?

    – Nick Felker
    Nov 26 '18 at 19:20











  • @NickFelker The Json convert method converts the whole response body into a plain string. That's what I was returning. Is that not the correct return format? I've also tried the following with no luck, it returns a normal httpresponse message. Should this have any extra header specification? HttpResponseMessage httpResponseMessage = new HttpResponseMessage(); httpResponseMessage.StatusCode = System.Net.HttpStatusCode.OK; httpResponseMessage.Content = new StringContent(JsonConvert.SerializeObject(body), Encoding.UTF8, "application/json");

    – Adithya Sivanandan
    Nov 27 '18 at 3:01













  • Can you send it back as normal JSON, not as a string?

    – Nick Felker
    Nov 27 '18 at 4:30

















Can you see if the error happens during the sync, or at oauth?

– Nick Felker
Nov 26 '18 at 16:20







Can you see if the error happens during the sync, or at oauth?

– Nick Felker
Nov 26 '18 at 16:20















Thanks for your reply. Based on the StackDriver logs, the OAuth is cleared successfully. I'm getting the error on the SMART_HOME_SYNC action, which is triggered automatically right after OAuth.

– Adithya Sivanandan
Nov 26 '18 at 18:28





Thanks for your reply. Based on the StackDriver logs, the OAuth is cleared successfully. I'm getting the error on the SMART_HOME_SYNC action, which is triggered automatically right after OAuth.

– Adithya Sivanandan
Nov 26 '18 at 18:28













How does that Json convert method work? Are you sending the right headers back like the content type?

– Nick Felker
Nov 26 '18 at 19:20





How does that Json convert method work? Are you sending the right headers back like the content type?

– Nick Felker
Nov 26 '18 at 19:20













@NickFelker The Json convert method converts the whole response body into a plain string. That's what I was returning. Is that not the correct return format? I've also tried the following with no luck, it returns a normal httpresponse message. Should this have any extra header specification? HttpResponseMessage httpResponseMessage = new HttpResponseMessage(); httpResponseMessage.StatusCode = System.Net.HttpStatusCode.OK; httpResponseMessage.Content = new StringContent(JsonConvert.SerializeObject(body), Encoding.UTF8, "application/json");

– Adithya Sivanandan
Nov 27 '18 at 3:01







@NickFelker The Json convert method converts the whole response body into a plain string. That's what I was returning. Is that not the correct return format? I've also tried the following with no luck, it returns a normal httpresponse message. Should this have any extra header specification? HttpResponseMessage httpResponseMessage = new HttpResponseMessage(); httpResponseMessage.StatusCode = System.Net.HttpStatusCode.OK; httpResponseMessage.Content = new StringContent(JsonConvert.SerializeObject(body), Encoding.UTF8, "application/json");

– Adithya Sivanandan
Nov 27 '18 at 3:01















Can you send it back as normal JSON, not as a string?

– Nick Felker
Nov 27 '18 at 4:30





Can you send it back as normal JSON, not as a string?

– Nick Felker
Nov 27 '18 at 4:30












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53478564%2fgoogle-smart-home-sync-throws-error-couldnt-update-the-setting-please-check-y%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53478564%2fgoogle-smart-home-sync-throws-error-couldnt-update-the-setting-please-check-y%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks