Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Invalid Callback #41

@CemreSuler

Description

@CemreSuler

Hello,

I am trying to setup the magister calendar, but I can't get it to work, here is my terminal log:

$ node firstrun.js
Authorize this app by visiting this url: https://accounts.google.com/o/oauth2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar&response_type=code&client_id=267517455031-t0k1j4afk0horg2fnf86sl0sns42ij5o.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%2Fcallback
Enter the code from that page here: MY CODE!
fs.js:127
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:127:9)
at Object.writeFile (fs.js:1123:14)
at storeToken (/Users/Koray/Desktop/magister-calendar-master/firstrun.js:136:6)
at /Users/Koray/Desktop/magister-calendar-master/firstrun.js:116:7
at /Users/Koray/Desktop/magister-calendar-master/node_modules/google-auth-library/lib/auth/oauth2client.js:154:5
at Request._callback (/Users/Koray/Desktop/magister-calendar-master/node_modules/google-auth-library/lib/transporters.js:106:7)
at Request.self.callback (/Users/Koray/Desktop/magister-calendar-master/node_modules/google-auth-library/node_modules/request/request.js:187:22)
at Request.emit (events.js:182:13)
at Request. (/Users/Koray/Desktop/magister-calendar-master/node_modules/google-auth-library/node_modules/request/request.js:1044:10)
at Request.emit (events.js:182:13)

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed-in-prThis issue is fixed in a pull-request and will be merged soon.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions