Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400. That’s an error. Error: invalid_request #79

Open
pawel-gorski-droptica opened this issue Jul 6, 2019 · 5 comments
Open

400. That’s an error. Error: invalid_request #79

pawel-gorski-droptica opened this issue Jul 6, 2019 · 5 comments
Assignees

Comments

@pawel-gorski-droptica
Copy link

pawel-gorski-droptica commented Jul 6, 2019

Expected Behavior

after run
node . links genere but not working
Authorize this app by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly&response_type=code&client_id=xxxxxxxxxxxxxxxxxxxxx6.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
Enter the code from that page here:

Actual Behavior

  1. That’s an error.

Error: invalid_request

Missing required parameter: redirect_uri

Learn more

Request Details
That’s all we know.

Steps to Reproduce the Problem

  1. put code in index.js
  2. node .

Specifications

  • v8.10.0
  • OS (/Linux/ ubunut)
@sqrrrl sqrrrl self-assigned this Jul 8, 2019
@sqrrrl
Copy link
Member

sqrrrl commented Jul 8, 2019

I'm not able to reproduce this without intentionally omitting the redirect_uri in the URL when copy/pasting. Are you sure you copied the URL into the browser correctly?

@zababurinsv
Copy link

zababurinsv commented Jul 17, 2019

Hi I have the same problem.

  1. That’s an error.

Error: invalid_request

Required parameter is missing: response_type

Learn more

Request Details
access_type=offline
scope=https://www.googleapis.com/auth/drive

That’s all we know.

Maybe it is true because i am connect at localhost ?

@sqrrrl
Copy link
Member

sqrrrl commented Aug 15, 2019

Please post the actual URLs. Note that there's no secret information in the URLs -- the client IDs are considered public info as they're visible to end users in the redirect URL.

For the original issue, tried using same URL with my client ID and it worked fine. Perhaps it's something more with how you're opening the URL? Bad copy/paste into the browser?

@alechash
Copy link

you have to add a redirect_uri to your google project on google cloud. the tutorial does not do this or mention it

@tanjunior
Copy link

seems like OAuth key have the redirecturi included. service account does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants