Alexcitten
Explore posts from serversPPrisma
•Created by Alexcitten on 7/7/2024 in #help-and-questions
Can't reach database server at localhost:5432
PostgreSQL 16, I'm implementing OpenAPI on Cloudfare Workers using TypeScript, I did an endpoint and it shows an error
PrismaClientKnownRequestError: Invalid
prisma.clientProfile.create()
invocation: This request could not be understood by the server:
{"type":"UnknownJsonError","body":{"code":"P6008","message":"Accelerate was not able to connect to
your database. The underlying error is: Can't reach database server at localhost:5432
\n\nPlease
make sure your database server is running at localhost:5432
."}}
I don't understand what the error is because my seeding is working correctly, the whole database setup seems to be correct, next I will give more input from my app
Endpoint:
schema:
../../prisma/prisma:
.env:
DIRECT_DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=public"
DATABASE_URL="prisma://accelerate.prisma-data.net/?api_key=apikey"
When using endpoint, in my pgAdmin 4 database I see activity from connections, the correct link is connected to my database in Accelerate, but I get this error.
my seed.ts, which works just fine:
Open to any discussion, I really want to get this fixed. Thank you!4 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 11/26/2023 in #djs-questions
File Attachment
How do I attach my
attachment
in the embed after rank.build()
, given that this embed is needed for my my-karma.js
command? I mean when my command is called, it calls an embed from another file where everything is very connected.
my-karma.js:
src/modules/member/controller.js:
3 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 1/16/2023 in #djs-questions
Checking bot permissions in a channel
Do it with permissions.has()?
6 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 1/14/2023 in #djs-questions
The button collector is not working, I'm doing something wrong
Code:
I do it in command file, not in interactionCreate
4 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 1/9/2023 in #djs-questions
Get all messages in channel
6 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 12/17/2022 in #djs-questions
Many slash commands with the same beginning
I want to make commands that start with the same name but have different sub-commands. Is this only possible via SlashCommandBuilder()? For my code structure is now
And with the same command names, obviously, it gives me Application command names must be unique, because I'm trying to specify the same name for several slash commands
3 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 12/16/2022 in #djs-questions
Types of options
Please tell me what each type is responsible for, give documentation on the types of options
3.options[0].options[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (9, 8, 7, 6, 5, 10, 3, 4, 11).
6 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 11/30/2022 in #djs-questions
when checking for the number of characters in the argument, I ran into a problem that the bot sends
when checking for the number of characters in the argument, I ran into a problem that the bot sends the error "not such a number of characters in the argument" anyway, even if everything is correct
5 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 8/4/2022 in #djs-questions
How send message to specific channel by channel id?
i will try interaction.channels.fetch("ID") but fetch is not defined
7 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 8/2/2022 in #djs-questions
Get all tags and ID's users in voice channel by channel ID
How to get list all peoples, which are connected to a specific channel? User tags and ID's
3 replies
DIAdiscord.js - Imagine an app
•Created by Alexcitten on 6/29/2022 in #djs-questions
Is it possible now to interact with the automod mode on servers
4 replies