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

FetchError: request to https://drupal-site.ddev.site/oauth/token failed, reason: unable to verify the first certificate #14

Closed
itamair opened this issue Aug 13, 2021 · 2 comments

Comments

@itamair
Copy link

itamair commented Aug 13, 2021

From the Quickstart guide, as soon as I follow the 3. Run Site steps, I hit the following error on http://localhost:3000:

FetchError: request to https://drupal-site.ddev.site/oauth/token failed, reason: unable to verify the first certificate

I cannot realise what is causing this issue (from the Drupal site settings) ...

Screenshot 2021-08-13 at 21 35 54

Thanks in advance for your support!

@shadcn
Copy link
Collaborator

shadcn commented Aug 13, 2021

This has to do with the https request.

Since you’re running this on your local you can safely disable this by setting the following in your .env file.

NODE_TLS_REJECT_UNAUTHORIZED=0

You won’t have this issue when you deploy to a prod server with a valid certificate.

@itamair
Copy link
Author

itamair commented Aug 13, 2021

Thanks @arshad ... your workaround looks working.
and now leads me to this new one: #15

@itamair itamair closed this as completed Aug 13, 2021
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

2 participants