question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logging in with Facebook gives 502 error

See original GitHub issue

Bug report

Facebook login gives 502 error when being set up according to the documentation.

Describe the bug

Following the instructions on: https://supabase.com/docs/guides/auth/auth-facebook

When running the following code:

const { user, session, error } = await supabase.auth.signIn({
  provider: 'facebook'
})

I get sent to https://[my-project].supabase.co/auth/v1/authorize?provider=facebook that gives me 502, bad gateway from Cloudflare.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a new Facebook app
  2. Enter your Facebook apps ID and Secret to Supabase.
  3. Add you supabase, url + /auth/v1/callback/ as Valid OAuth Redirect URIs in your Facebook app.
  4. Run the following code
const { user, session, error } = await supabase.auth.signIn({
  provider: 'facebook'
})

Expected behavior

I would have to accept connecting with Facebook.

Screenshots

Screenshot 2022-01-01 at 21 46 08

System information

  • OS: MacOS
  • Browser: All
  • Version of supabase-js: 1.29.1
  • Version of Node.js: 16.13.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:32 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
chipilovcommented, Feb 8, 2022

@dthyresson Maybe this issue should be re-opened - multiple people are still reporting it and the team might not have visibility that it still exists.

2reactions
bokubcommented, Jan 5, 2022

The problem seems fixed! (on my side) 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a 502 Bad Gateway and how do you fix it? - IT PRO
An Error 502 Bad Gateway means there is a problem with the website's server, rather than your computer, router, or internet connection. It's...
Read more >
How To Fix a 502 Bad Gateway Error - Kinsta
The 502 Bad Gateway error specifically means that the server received an invalid response from an inbound server.
Read more >
The “502 Bad Gateway” error... - How to Fix Browser Issues
Certain applications that block pop up ads works through reverse proxy. Bad Gateway 502 occurs when a reverse proxy server gets an invalid...
Read more >
502 Bad Gateway Error [Solved] - freeCodeCamp
In more technical terms, the “502” in the error is an HTTP status code which indicates that one server received an invalid response...
Read more >
502 bad gateway: how to solve it (2022) - SupportHost
While browsing, your browser sends requests to a server, which in turn manages incoming requests and provides the response with codes indicating the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found