Giter Site home page Giter Site logo

User create error about docker HOT 9 CLOSED

calcom avatar calcom commented on August 25, 2024
User create error

from docker.

Comments (9)

MR-Os1 avatar MR-Os1 commented on August 25, 2024

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.

krumware avatar krumware commented on August 25, 2024

Hi folks, I'm hoping to clarify this issue.
Do you know which field caused the issue for you?
image

from docker.

SuperDarius-git avatar SuperDarius-git commented on August 25, 2024

@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):

image

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.

MR-Os1 avatar MR-Os1 commented on August 25, 2024

Hi folks, I'm hoping to clarify this issue. Do you know which field caused the issue for you? image

image

the last field

from docker.

MR-Os1 avatar MR-Os1 commented on August 25, 2024

@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):

image

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.

SuperDarius-git avatar SuperDarius-git commented on August 25, 2024

Thank you to all! That worked!!!!

from docker.

SuperDarius-git avatar SuperDarius-git commented on August 25, 2024

I do have 2 more questions for you. And please forgive me if it is stupid questions.

  1. 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.
  2. Secondly, where do I change the URL from localhost:3000 to my public URL?

Thank you in advance!
Darius

from docker.

MR-Os1 avatar MR-Os1 commented on August 25, 2024

I do have 2 more questions for you. And please forgive me if it is stupid questions.

  1. 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.
  2. 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.

SuperDarius-git avatar SuperDarius-git commented on August 25, 2024

Thanks Everyone!

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.