I am interested in the best practice for handling errors in the Google Action SYNC
handler.
I see in the docs that I can return an errorCode
in the SYNC
response, however, none of the documented error codes seem to be compatible with the SYNC
handler, only QUERY
, EXECUTE
, etc.
I see that the SYNC response must contain a userAgentId
or the Action service deems it an invalid response, however, what happens when I am unable to authenticate the user and I am unable to determine and ID for them?
In that case, should I simply provide an empty string for that property?
Should I just response with an empty object {}
in the response when I encounter an error?
Any info is helpful, thanks.