Boxer
Boxer
Explore posts from servers
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
Which one?
25 replies
DTDrizzle Team
Created by Bryan3 on 9/29/2023 in #help
Delete operation in transaction sometimes not deleting row in database
did you ever fix this issue? I get this from time to time w/ supabase
6 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
Yeah weird, found some explanation https://pganalyze.com/docs/log-insights/connections/C31. Could be my host as well
25 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
Hey @Andrew Sherman sorry to bother you once again. So it looks like it could be a client issue, I was able to gather some logs:
[ {
"error_severity": "FATAL",
"event_message": "unsupported frontend protocol 0.0: server supports 3.0 to 3.0",
"timestamp": "2023-12-04T16:55:31.290000"
},
{
"error_severity": "FATAL",
"event_message": "unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0",
"timestamp": "2023-12-04T15:32:21.287000"
},
{
"error_severity": "FATAL",
"event_message": "password authentication failed for user \"postgres\"",
"timestamp": "2023-12-04T14:18:14.544000"
}]
[ {
"error_severity": "FATAL",
"event_message": "unsupported frontend protocol 0.0: server supports 3.0 to 3.0",
"timestamp": "2023-12-04T16:55:31.290000"
},
{
"error_severity": "FATAL",
"event_message": "unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0",
"timestamp": "2023-12-04T15:32:21.287000"
},
{
"error_severity": "FATAL",
"event_message": "password authentication failed for user \"postgres\"",
"timestamp": "2023-12-04T14:18:14.544000"
}]
Have y'all ever seen this unsupported frontend protocol 0.0: server supports 3.0 to 3.0 issue with postgres? I also changed my database's password since it looks like auth fails sometimes
25 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
Yup, thank you for taking a look!! I'll report back once i find a fix
25 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
@Andrew Sherman it's very hard to debug because it does not happen in dev. I do have a supabase dev environment on my local at this time and it works fine. In production, the queries work but after some time it just stops working, so it might be a supabase issue!
25 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
No description
25 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
I added redis because i was making lots of calls to the DB to offload, but it still gets stuck
25 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
After a while it still stays trying to query 😔
25 replies
DTDrizzle Team
Created by Boxer on 11/29/2023 in #help
Supabase/postgres get query is stuck on prod app
looks like it could have been that I have the postgres property max set to 1 😬
25 replies
DTDrizzle Team
Created by Boxer on 7/11/2023 in #help
mysql-core fails on TS build on 0.27.1
i fixed this by ignoring lib files in my build
3 replies
DTDrizzle Team
Created by Boxer on 7/16/2023 in #help
Module '"drizzle-orm/mysql-core"' has no exported member 'unique'.ts(2305)
it's showing up now, but it doesn't seem to be enforced:
export const channelSchema = mysqlTable(
'channels',
{
id: serial('id').primaryKey(),
channel_id: int('channel_id').notNull().unique(),
// etc
export const channelSchema = mysqlTable(
'channels',
{
id: serial('id').primaryKey(),
channel_id: int('channel_id').notNull().unique(),
// etc
I am able to still insert records into the db with the same number in the channel_id column
13 replies
DTDrizzle Team
Created by Boxer on 7/16/2023 in #help
Module '"drizzle-orm/mysql-core"' has no exported member 'unique'.ts(2305)
13 replies