ayungavis
10/18/2020, 4:13 PMKarthik Hebbar
10/18/2020, 7:11 PMnode --trace-warnings ...
to show where the warning was created)
(node:21992) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
(node:21992) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
(node:21992) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
(node:21992) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
? Set up a new Prisma server or deploy to an existing server? Demo server + MySQL database
? Choose the region of your demo server 96karthikhebbar/demo-eu1
? Choose a name for your service hackernews
? Choose a name for your stage demo-server
Written endpoint <https://eu1.prisma.sh/96karthikhebbar/hackernews/demo-server>
to prisma.yml
Creating stage demo-server for service hackernews !
ERROR: 96karthikhebbar~hackernews is not a valid name for a service name. It must start with a letter and may contain up to 30
letters, numbers, underscores and hyphens.
{
Ā Ā "data": {
Ā Ā Ā Ā "addProject": null
Ā Ā },
Ā Ā "errors": [
Ā Ā Ā Ā {
Ā Ā Ā Ā Ā Ā "locations": [
Ā Ā Ā Ā Ā Ā Ā Ā {
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā "line": 2,
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā "column": 9
Ā Ā Ā Ā Ā Ā Ā Ā }
Ā Ā Ā Ā Ā Ā ],
Ā Ā Ā Ā Ā Ā "path": [
Ā Ā Ā Ā Ā Ā Ā Ā "addProject"
Ā Ā Ā Ā Ā Ā ],
Ā Ā Ā Ā Ā Ā "code": 4001,
Ā Ā Ā Ā Ā Ā "message": "96karthikhebbar~hackernews is not a valid name for a service name. It must start with a letter and may contain up to 30 letters, numbers, underscores and hyphens.",
Ā Ā Ā Ā Ā Ā "requestId": "eu1:ckgfgum2e4k4x095075w21xga"
Ā Ā Ā Ā }
Ā Ā ],
Ā Ā "status": 200
}pzaenger
10/19/2020, 12:52 AMNatalia
Marvin
10/19/2020, 3:09 PMtype Models = 'User' | 'Post' | 'Comment'
apoeco
10/19/2020, 7:38 PMAndrew Gold
10/20/2020, 8:30 AMWhoops. Looks like an internal server error. Search your server logs for request ID: local:ckggp3hu1707s0799v326pd31
When we check the log, we see the following:
{
"key": "error/unhandled",
"requestId": "local:ckggzgqyi71x90799fj7rnx4x",
"clientId": "default$default",
"payload": {
"exception": "java.sql.SQLTransientConnectionException: database - Connection is not available, request timed out after 5005ms.",
"query": "query ($where: TransactionWhereUniqueInput!) {\n transaction(where: $where) {\n sender {\n id\n isDeactivated\n }\n }\n}\n",
"variables": "{\"where\":{\"id\":\"ckfmulguy26xr0799cqliqrwl\"}}",
"code": "0",
"stack_trace": "com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:676)\\n com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:190)\\n com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:155)\\n com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:100)\\n slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:14)\\n slick.jdbc.JdbcBackend$BaseSession.<init>(JdbcBackend.scala:494)\\n slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:46)\\n slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:37)\\n slick.basic.BasicBackend$DatabaseDef.acquireSession(BasicBackend.scala:250)\\n slick.basic.BasicBackend$DatabaseDef.acquireSession$(BasicBackend.scala:249)\\n slick.jdbc.JdbcBackend$DatabaseDef.acquireSession(JdbcBackend.scala:37)\\n slick.basic.BasicBackend$DatabaseDef$$anon$3.run(BasicBackend.scala:275)\\n java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\\n java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\\n java.lang.Thread.run(Thread.java:748)",
"message": "database - Connection is not available, request timed out after 5005ms."
}
}
Our connection limit is already at 200. Any idea what we can do to fix this? Thanks!Shaded Pixel
10/20/2020, 6:00 PMNatalia
Kenneth Tan
10/22/2020, 8:44 AMwkinglr
10/22/2020, 10:50 AM#version: '3'
services:
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: mysql
host: mysql
user: root
password: prisma
rawAccess: true
port: 3306
migrations: true
mysql:
image: mysql:5.7
restart: always
# Uncomment the next two lines to connect to your your database from outside the Docker environment, e.g. using a database GUI like Workbench
# ports:
# - "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: prisma
volumes:
- mysql:/var/lib/mysql
volumes:
mysql:
hello everyoneļ¼I tried to execute commands on the terminal but it didn't work . Who can help me to solve this problem?Corjen
10/22/2020, 1:25 PMNatalia
Justin Ellingwood
10/22/2020, 4:55 PMCam
10/22/2020, 11:31 PMSangjin Han
10/23/2020, 3:50 AMconst dt = DateTime.local().toISO(); //2020-10-23T12:24:49.802+09:00
Error parsing value: Invalid DateTime: trailing input DateTime must adhere to format: %Y-%m-%dT%H:%M:%S%.3f.
Ken
10/23/2020, 5:25 PMZane Helton
10/25/2020, 4:11 AMyarn generate
I'm stumped on this oneEhsan Sarshar
10/25/2020, 6:35 AMEhsan Sarshar
10/25/2020, 6:36 AMEhsan Sarshar
10/25/2020, 6:36 AMEhsan Sarshar
10/25/2020, 6:36 AMEhsan Sarshar
10/25/2020, 6:37 AMEhsan Sarshar
10/25/2020, 7:40 AMRyan Geddes
10/25/2020, 10:00 PMSangjin Han
10/26/2020, 3:50 AMNatalia
Gabriel Oliveira
10/26/2020, 11:04 PMDave S
10/26/2020, 11:05 PMGabriel Colson
10/27/2020, 1:17 PMmodel User {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
relationships1 Relationship[] @relation("UserRelationship1")
relationships2 Relationship[] @relation("UserRelationship2")
}
model Relationship {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user1 User @relation("UserRelationship1", fields: [user1Id], references: [id])
user1Id String
user2 User @relation("UserRelationship2", fields: [user2Id], references: [id])
user2Id String
}