Yah I'm seeing this issue in the response: `{"cod...
# help
n
Yah I'm seeing this issue in the response:
{"code":500,"msg":"Database error finding user","error_id":"945062e2-66c1-4e1b-8dfb-fe06e26efb19"}
s
Yah I'm seeing this issue in the response:
{"code":500,"msg":"Database error finding user","error_id":"945062e2-66c1-4e1b-8dfb-fe06e26efb19"}
b
Looking at the posted issue now...
s
@User I was getting this same error earlier, now I'm getting the following
Copy code
{
  "message": "An invalid response was received from the upstream server"
}
with a 502 status code
b
What is the environment here?
n
I'm not sure if it's helpful, but this is an older project I'm working on (I started in Dec.) and it was also paused (I had to restore it which took some time)
b
Javascript client, but is it React.js, or Angular, or what?
n
React
s
Svelte for me
b
I'm guessing it has to do with older projects
s
My project is more recent btw
n
yah, I'm guessing it is an older project thing too
s
As in my project was created around 4 months ago
n
mine was Dec. 2020 I believe
b
I just create a new project and I'm having no problems with auth, I just tested email login, magic link, and 9 OAuth providers 🙂
s
I can test in a bit on a project I just created today
hmm
b
yeah if you could do a single test on a newer project that would narrow it down
s
Mine is still a demo project, so I can delete it and create it again
n
I'm waiting for another project I had to delete it, build a new one, and then try it out
(it's still limited to 2 projects / person even if paying right?)
b
yes, I think it's 2 projects per account on the free tier
n
ah the UI was confusing to me, I see what's going on now
b
wait no, it's 3 or 4.
n
trying a new project, will report back
(I was trying to make a new org, not a project)
b
I just created a 3rd project no problem
s
Yeah I think the limit has upped
It used to be just 2 projects
b
So, anyway... I created a new project and moved my auth over to the new project (so I can get all that groovy PostgreSQL 13.3 goodness...)
And it was fine, but kind of a pain because I had to manually copy over all my OAuth keys and secrets. Then I thought "hey I'm done!" but realized....
n
one nice feature would be being able to say, create me a database with the same schema as the other one
b
now I have to go into each Auth Provider's web site and change my callback URL.
s
I think @User will get around to testing a new project before me, I need to go to the barber shortly
b
Took another hour or so, but all is good!
Copying schemas to a new project is pretty easy
n
new project is provisioning
b
But at the moment, there are permissions issues with the database user, so
pg_dump
errors out
s
@User use a migration tool or a tool like https://www.npmjs.com/package/@sdelements/flan
s
For older projects, the postgres user is a super-admin, which makes it easy to export. For newer projects, that user isn't super-admin, so you might have some migration issues if you're doing direct export--> import
b
But very soon that'll be fixed and you just use pg_dump then psql and you're done, real easy
s
I keep all my schemas in migration files
b
@User exactly. The short-term workaround was just to make the postgres user a super-admin, do the dump and restore, then turn off super-admin
Once permissions are ironed out for new projects, I'll document this and create a super simple utility for migrating schemas and/or data.
s
I wonder if a toggle for setting postgres as superadmin in the dashboard would be a good idea - perhaps enable it for a time period, and then automatically disable super-admin on the postgres user when that time expires
b
It's on my back burner list of things to do
I don't think they want you using super-admin for the postgres user for security reasons
s
I think for now, documenting it as a workaround is probably easier until the fix happens
b
hoping the fix happens in a couple days
n
@User @User auth worked on the new project
b
Ok, so is auth broken on older projects? Is there already a bug report for this?
@User is the guy who needs to know about it, once you have a report for him.
I have a project from late May I think, and it's authenticating just fine
n
I don't know that there's a bug report, but I'm happy to help file one
b
If you can narrow it down, that'd be very helpful. Thanks, @User .