google-home / smarthome-local

https://codelabs.developers.google.com/codelabs/smarthome-local
Apache License 2.0
28 stars 17 forks source link

On step 4, click 'Refresh' on web app does not working #17

Closed king-ielec closed 1 year ago

king-ielec commented 2 years ago

After I clicked the Refresh button on the web app, the console shows the log: "Request SYNC status:200", but I can not see the 'Request SYNC for user 123' message on the firebase log.

My enviroment is: Node.js version 14.18 Firebase-tools version 11.8.0

king-ielec commented 2 years ago

After I modified the code in public > main.js from fetch('/requestsync') to fetch('https://us-central1-my-project-id.cloudfunctions.net/requestsync') then it work as expected, Is it a bug in coldelab example?

raymondchlin commented 1 year ago

This issue had been fixed.