google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

Unable to stop channel

Open notsql opened this issue 3 years ago • 0 comments

Currently attempting to stop a channel that is already created. However, unable to do so.

This is the following code:

oauth.setCredentials({ refresh_token });
const drive = google.drive({ version: "v3", auth: oauth });
                
const requestBody = {
	id: `${watchId}`,
	resourceId: `${gdriveFolderId}`
}

drive.channels.stop({ requestBody })

However, whenever I attempt to stop the channel, it keeps returning me an error stating that channel does not exist. I have also tried it using the REST API but got the same error. Thanks for stopping by to ask us a question! Am I missing anything? Like for example, does my request body need to be exactly the same as the request body used to create the watcher?

Hope someone can help. Thank you!

notsql avatar Jul 15 '22 07:07 notsql