Currently, I am following the instructions outlined in this guide to enable push notifications for new responses on a Google Forms form. After completing all prerequisites successfully, I managed to publish a message to my Pub/Sub Topic that then forwards it to a webhook running on NestJS with TypeScript (Node.js environment).
However, I'm facing an issue while attempting to create a watch to connect my form to the corresponding topic. The guide suggests granting necessary permissions to the system service account ([email protected]) to publish to the topic and creating the watch using the googleapis
SDK.
When implementing the code example provided, I encounter the following error message:
{
"code": 400,
"message": "Project does not have necessary OAuth permissions from authorizing user.",
"errors": [{
"message": "Project does not have necessary OAuth permissions from authorizing user.",
"domain": "global",
"reason": "failedPrecondition"
}],
"status": "FAILED_PRECONDITION"
}
I've experimented with various scopes and roles, but none seem to resolve the issue. Any suggestions or advice would be greatly appreciated as I'm unsure of what else to try...