Comments (9)
Hello
I resolved this issue by adding the {} of json instead of null field in metadata column.
the pull request is also in progress.
Thank you for noticing the issue.
from docker.
Hi folks, I'm hoping to clarify this issue.
Do you know which field caused the issue for you?
from docker.
@krumware I'm not sure where the error comes from. I think it is from the "metadata" field, but when I added {} as @MR-Os1 suggested, I get another error as below (slightly different than the previous error):
and the following details:
Type: PrismaClientValidationError
Message:
Invalid `prisma.user.create()` invocation:
{
data: {
id: 1,
~~
username: 'superdarius',
name: 'Darius Oosthuizen',
email: '[email protected]',
emailVerified: null,
password: 'dummy',
bio: null,
avatar: null,
timeZone: 'Africa/Johannesburg',
weekStart: 'Sunday',
startTime: 0,
endTime: 1440,
bufferTime: 0,
hideBranding: false,
theme: null,
createdDate: '2021-12-31T22:00:00.000Z',
eventTypes: {},
credentials: {},
teams: {},
bookings: {},
availability: {},
selectedCalendars: {},
completedOnboarding: false,
locale: null,
twoFactorSecret: null,
twoFactorEnabled: false,
plan: 'PRO',
Schedule: {},
webhooks: {},
brandColor: '#292929',
metadata: {}
},
select: {
id: true,
username: true,
name: true,
email: true,
emailVerified: true,
password: true,
bio: true,
avatar: true,
timeZone: true,
weekStart: true,
startTime: true,
endTime: true,
bufferTime: true,
hideBranding: true,
theme: true,
createdDate: true,
eventTypes: true,
credentials: true,
teams: true,
bookings: true,
availability: true,
selectedCalendars: true,
completedOnboarding: true,
locale: true,
twoFactorSecret: true,
twoFactorEnabled: true,
plan: true,
Schedule: true,
webhooks: true,
brandColor: true,
destinationCalendar: true,
metadata: true
}
}
Unknown arg `id` in data.id for type UserCreateInput. Did you mean `bio`? Available args:
type UserCreateInput {
username?: String | Null
name?: String | Null
email: String
emailVerified?: DateTime | Null
password?: String | Null
bio?: String | Null
avatar?: String | Null
timeZone?: String
weekStart?: String
startTime?: Int
endTime?: Int
bufferTime?: Int
hideBranding?: Boolean
theme?: String | Null
createdDate?: DateTime
completedOnboarding?: Boolean
locale?: String | Null
twoFactorSecret?: String | Null
twoFactorEnabled?: Boolean
plan?: UserPlan
brandColor?: String
metadata?: NullableJsonNullValueInput | Json
eventTypes?: EventTypeCreateNestedManyWithoutUsersInput
credentials?: CredentialCreateNestedManyWithoutUserInput
teams?: MembershipCreateNestedManyWithoutUserInput
bookings?: BookingCreateNestedManyWithoutUserInput
availability?: AvailabilityCreateNestedManyWithoutUserInput
selectedCalendars?: SelectedCalendarCreateNestedManyWithoutUserInput
Schedule?: ScheduleCreateNestedManyWithoutUserInput
webhooks?: WebhookCreateNestedManyWithoutUserInput
destinationCalendar?: DestinationCalendarCreateNestedOneWithoutUserInput
}
Code: undefined
Query:
prisma.user.create(
{
data: {
id: 1,
username: "superdarius",
name: "Darius Oosthuizen",
email: "[email protected]",
emailVerified: null,
password: "dummy",
bio: null,
avatar: null,
timeZone: "Africa/Johannesburg",
weekStart: "Sunday",
startTime: 0,
endTime: 1440,
bufferTime: 0,
hideBranding: false,
theme: null,
createdDate: "2021-12-31T22:00:00.000Z",
eventTypes: {
},
credentials: {
},
teams: {
},
bookings: {
},
availability: {
},
selectedCalendars: {
},
completedOnboarding: false,
locale: null,
twoFactorSecret: null,
twoFactorEnabled: false,
plan: "PRO",
Schedule: {
},
webhooks: {
},
brandColor: "#292929",
metadata: {
},
},
select: {
id: true,
username: true,
name: true,
email: true,
emailVerified: true,
password: true,
bio: true,
avatar: true,
timeZone: true,
weekStart: true,
startTime: true,
endTime: true,
bufferTime: true,
hideBranding: true,
theme: true,
createdDate: true,
eventTypes: true,
credentials: true,
teams: true,
bookings: true,
availability: true,
selectedCalendars: true,
completedOnboarding: true,
locale: true,
twoFactorSecret: true,
twoFactorEnabled: true,
plan: true,
Schedule: true,
webhooks: true,
brandColor: true,
destinationCalendar: true,
metadata: true,
},
}
)`
```
from docker.
Hi folks, I'm hoping to clarify this issue. Do you know which field caused the issue for you?
the last field
from docker.
@krumware I'm not sure where the error comes from. I think it is from the "metadata" field, but when I added {} as @MR-Os1 suggested, I get another error as below (slightly different than the previous error):
and the following details:
Type: PrismaClientValidationError Message: Invalid `prisma.user.create()` invocation: { data: { id: 1, ~~ username: 'superdarius', name: 'Darius Oosthuizen', email: '[email protected]', emailVerified: null, password: 'dummy', bio: null, avatar: null, timeZone: 'Africa/Johannesburg', weekStart: 'Sunday', startTime: 0, endTime: 1440, bufferTime: 0, hideBranding: false, theme: null, createdDate: '2021-12-31T22:00:00.000Z', eventTypes: {}, credentials: {}, teams: {}, bookings: {}, availability: {}, selectedCalendars: {}, completedOnboarding: false, locale: null, twoFactorSecret: null, twoFactorEnabled: false, plan: 'PRO', Schedule: {}, webhooks: {}, brandColor: '#292929', metadata: {} }, select: { id: true, username: true, name: true, email: true, emailVerified: true, password: true, bio: true, avatar: true, timeZone: true, weekStart: true, startTime: true, endTime: true, bufferTime: true, hideBranding: true, theme: true, createdDate: true, eventTypes: true, credentials: true, teams: true, bookings: true, availability: true, selectedCalendars: true, completedOnboarding: true, locale: true, twoFactorSecret: true, twoFactorEnabled: true, plan: true, Schedule: true, webhooks: true, brandColor: true, destinationCalendar: true, metadata: true } } Unknown arg `id` in data.id for type UserCreateInput. Did you mean `bio`? Available args: type UserCreateInput { username?: String | Null name?: String | Null email: String emailVerified?: DateTime | Null password?: String | Null bio?: String | Null avatar?: String | Null timeZone?: String weekStart?: String startTime?: Int endTime?: Int bufferTime?: Int hideBranding?: Boolean theme?: String | Null createdDate?: DateTime completedOnboarding?: Boolean locale?: String | Null twoFactorSecret?: String | Null twoFactorEnabled?: Boolean plan?: UserPlan brandColor?: String metadata?: NullableJsonNullValueInput | Json eventTypes?: EventTypeCreateNestedManyWithoutUsersInput credentials?: CredentialCreateNestedManyWithoutUserInput teams?: MembershipCreateNestedManyWithoutUserInput bookings?: BookingCreateNestedManyWithoutUserInput availability?: AvailabilityCreateNestedManyWithoutUserInput selectedCalendars?: SelectedCalendarCreateNestedManyWithoutUserInput Schedule?: ScheduleCreateNestedManyWithoutUserInput webhooks?: WebhookCreateNestedManyWithoutUserInput destinationCalendar?: DestinationCalendarCreateNestedOneWithoutUserInput } Code: undefined Query: prisma.user.create( { data: { id: 1, username: "superdarius", name: "Darius Oosthuizen", email: "[email protected]", emailVerified: null, password: "dummy", bio: null, avatar: null, timeZone: "Africa/Johannesburg", weekStart: "Sunday", startTime: 0, endTime: 1440, bufferTime: 0, hideBranding: false, theme: null, createdDate: "2021-12-31T22:00:00.000Z", eventTypes: { }, credentials: { }, teams: { }, bookings: { }, availability: { }, selectedCalendars: { }, completedOnboarding: false, locale: null, twoFactorSecret: null, twoFactorEnabled: false, plan: "PRO", Schedule: { }, webhooks: { }, brandColor: "#292929", metadata: { }, }, select: { id: true, username: true, name: true, email: true, emailVerified: true, password: true, bio: true, avatar: true, timeZone: true, weekStart: true, startTime: true, endTime: true, bufferTime: true, hideBranding: true, theme: true, createdDate: true, eventTypes: true, credentials: true, teams: true, bookings: true, availability: true, selectedCalendars: true, completedOnboarding: true, locale: true, twoFactorSecret: true, twoFactorEnabled: true, plan: true, Schedule: true, webhooks: true, brandColor: true, destinationCalendar: true, metadata: true, }, } )`
I think you have tried to fill the id field in table which is a auto increment field in the table.
if you left it with default content it will work.
from docker.
Thank you to all! That worked!!!!
from docker.
I do have 2 more questions for you. And please forgive me if it is stupid questions.
- I am trying to accept the license, but I'm not sure how to do it. What I did is in Portainer I duplicated/edited the container and changed the .env variables to 'agree', but it does not seem to have worked.
- Secondly, where do I change the URL from localhost:3000 to my public URL?
Thank you in advance!
Darius
from docker.
I do have 2 more questions for you. And please forgive me if it is stupid questions.
- I am trying to accept the license, but I'm not sure how to do it. What I did is in Portainer I duplicated/edited the container and changed the .env variables to 'agree', but it does not seem to have worked.
- Secondly, where do I change the URL from localhost:3000 to my public URL?
Thank you in advance! Darius
For your first question I think you should get a license for that box to go away and for the second one you have to change BASE_URL and NEXT_PUBLIC_APP_URL in .env to change the public URL.
from docker.
Thanks Everyone!
from docker.
Related Issues (20)
- Issue with docker hub images HOT 18
- Error on `DOCKER_BUILDKIT=0 docker compose build calcom`: Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) HOT 2
- i run into this error when i try logging into calcom" https://api/auth/error"
- Invalid key length on CALENDSO_ENCRYPTION KEY HOT 1
- docker compose up -d calcom is misleading, it still runs database HOT 3
- localhost:3000 is misleading HOT 2
- Issue with google integration
- Not able to login after upgrade HOT 2
- Versions 3.8.4+ are not published HOT 1
- Context deadline exceeded during build process
- SMTP server configuration only working/used when running on Laptop, but not virtual host HOT 1
- docker compose build failed with errors HOT 15
- google calendar connection doesn't work
- can we remove sign up for calcom HOT 1
- invalid prisma user? HOT 2
- Update hub.docker HOT 5
- 要是支持Luna日历就好了
- @calcom/web:build: ERROR: command finished with error: command (/calcom/apps/web) yarn run build exited (129) HOT 5
- App switch on on restart HOT 1
- Upgrade to v3.9.1 from v3.2.x ALLOWED_HOSTNAMES & Duplicate value not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.