google-api-nodejs-client: JWT Error
Hello,
I am currently getting the error:
{ [Error: Not Found] code: 404 errors: [ { domain: ‘global’, reason: ‘notFound’, message: ‘Not Found’ } ] }
When trying to use the calendar api using JWT. I am struggling to find this error message and how to debug this online. Please help! My code is the following:
jwtClient.authorize(function(err, tokens) {
if (err) {
console.log(err);
return;
}
// Make an authorized request to list Drive files.
calendar.events.list({
auth: jwtClient,
calendarId: calendarId,
timeMin: (new Date()).toISOString(),
maxResults: 100,
singleEvents: true,
orderBy: 'startTime'
}, function(err, resp) {
// handle err and response
console.log("===============")
console.log(err)
console.log(resp)
});
});
The call works when i authorize via auth.OAuth2…
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (1 by maintainers)
I am trying to fetch all emails under our domain. I have all admin rights anda I created service account with Domain wide delegation. This is my code:
and I still get error