You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logs from Developer Tools Console or Command line, if any:
Invalid string length
RangeError: Invalid string length
at JSON.stringify (<anonymous>)
at us.serialize (http://localhost:5555/assets/index.js:1:68556)
at us.update (http://localhost:5555/assets/index.js:1:14113)
at yc (http://localhost:5555/assets/vendor.js:41:6994)
at us.n (http://localhost:5555/assets/vendor.js:41:6688)
at us.update (http://localhost:5555/assets/index.js:1:68413)
at yc (http://localhost:5555/assets/vendor.js:41:6994)
at us.n (http://localhost:5555/assets/vendor.js:41:6688)
at http://localhost:5555/assets/index.js:1:83629
at Array.forEach (<anonymous>)
Does the issue persist even after updating to the latest prisma CLI dev version? (npm i -D prisma@dev)
Yes
Prisma schema (if relevant):
The Issue occurred when I tried adding @Map("Assignments") to the type enum. I have since removed it but even adding it back doesn't fix the issue.
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
enum Role {
USER
TUTOR
ADMIN
BOT
}
enum Subjects {
maths
compSci
english
chem
physics
bio
other
}
enum Type {
homework
exam
assignment
hw
other
}
enum Education {
uni
college
other
}
model User {
id String @id
username String
discriminator String
avatar String? @default("")
accessToken String
refreshToken String
tokenVersion Int @default(0)
role Role? @default(USER)
nodes RedditConfig[]
verifiedSubjects Subjects[]
studentTickets Ticket[] @relation("student")
tutorTickets Ticket[] @relation("tutor")
}
model RedditConfig {
id Int @id @default(autoincrement())
clientId String
clientSecret String
username String
password String
userAgent String
title String
pmBody String
subreddits String[]
forbiddenWords String[]
blockedUsers String[]
userId String
nodeEditors String[]
delay Int @default(60)
creator User @relation(fields: [userId], references: [id])
logs Log[]
}
//Commented Out Relations as Payment Configs can be used across Multiple
//Discord Configs
model DiscordConfig {
id String @id
name String?
icon String?
prefix String @default("?")
embedImageUrl String @default("https://i.imgur.com/rDzblHE.gif")
autoSwicher Boolean @default(false)
autoTicket Boolean @default(false)
autoReact Boolean @default(false)
// payment Payment[]
paymentConfigId String
// Ticket Ticket[]
Ticket Ticket[]
}
model Payment {
id Int @id @default(autoincrement())
name String
value String
type String // Type 'Unlisted' will exclude it from being displayed. Used for paypal option.
// discordConfig DiscordConfig @relation(fields: [serverId], references: [id])
serverId String
}
enum OrderStatus {
// INITIALIZED // Order has been created in table to link tutor to it
CREATED // Actual invoice has been created (ie paypal order created)
PAID // Invoice has been paid
}
model Order {
id Int @id @default(autoincrement())
status OrderStatus
tutorId String
transactionId String @unique
ticket Ticket? @relation(fields: [ticketId], references: [id])
ticketId Int? // Ticket id NOT `ticketid` in ticket
}
//Update Client side to not Post ticket until
//It is Finished.
model Ticket {
id Int @id @default(autoincrement())
serverId String
channelId String @default("xxx")
type Type?
subject Subjects?
education Education?
budget Int
additionalInfo String @default("")
creatorId String
tutorId String?
due DateTime
completed Boolean @default(false)
paid Boolean @default(false)
student User @relation("student", fields: [creatorId], references: [id])
tutor User? @relation("tutor", fields: [tutorId], references: [id])
discordConfig DiscordConfig @relation(fields: [serverId], references: [id])
transactions Order[]
}
model Log {
id Int @id @default(autoincrement())
nodeId Int
message String
subId String
username String
subreddit String
pm Boolean
createdAt DateTime @default(now())
redditConfig RedditConfig @relation(fields: [nodeId], references: [id])
}
The text was updated successfully, but these errors were encountered:
Had to clear cookies to fix the issue not sure if this falls under a bug then but you could clear cookies whenever the user clicks the Restart Prisma button.
prisma -v
ornpx prisma -v
):Does the issue persist even after updating to the latest
prisma
CLI dev version? (npm i -D prisma@dev
)Yes
Prisma schema (if relevant):
The Issue occurred when I tried adding @Map("Assignments") to the type enum. I have since removed it but even adding it back doesn't fix the issue.
The text was updated successfully, but these errors were encountered: