https://cal.com logo
Join Slack
Powered by
# developers
  • m

    Matthew Larkin

    06/10/2022, 10:01 PM
    Hey folks, I'm looking for a way to automatically toggle am/pm (not 24hr) for Cal embeds and/or the public Cal site form. I've set 12hr time in my settings, but that does not affect the public Cal forms. In other words, my guests have to manually toggle the time zone, then toggle am/pm as they are booking if they want time displayed in am/pm. Any way to auto set this for them with JavaScript options in the embed code or perhaps via URL query params for the main site? Thank you! 🙏
  • t

    Talently Tech

    06/10/2022, 10:22 PM
    Hi
  • t

    Talently Tech

    06/10/2022, 10:22 PM
    How should the round robin function work?
    p
    • 2
    • 1
  • m

    Muneeb Farooqi

    06/13/2022, 1:20 PM
    Hi, I just generated an api_key from https://app.cal.dev/settings/developer and trying to access by following these docs https://developer.cal.com/api/quick-start and getting an error message that
    "error": "Your apiKey is not valid"
    any idea why I'm getting that error? and from where i can generate a valid api?
    z
    • 2
    • 1
  • p

    Patrick DePippo

    06/14/2022, 2:40 AM
    any plans to have dynamic groups handle custom or shared event types?
  • h

    Hussam Khatib

    06/14/2022, 10:44 AM
    Hi there, Would appreciate help if anyone has run into this issue. I want to how to run queries in postman. What is the process of generating a access token. Note: I want to know how it's in google Oauth. link referred , After following those steps in Postman Desktop I am getting this error "access token not found in response"
  • p

    Patrick DePippo

    06/14/2022, 11:21 AM
    Is it possible to limit the number of bookings of a certain eventType on a daily basis?
  • p

    Philipp Fruh (Virtual-Identity)

    06/14/2022, 11:34 AM
    Hey guys, I have a question. We need to somehow filter the list of available event types and consultants (and therefore slots) based on the user that is trying to book the appointment. We have the information, which users it is and which event types and consultants he should see, in our system. We need a way to tell the current "session" of calcom to only show specific event types and consultants, is there any way to do this?
  • p

    Philipp Fruh (Virtual-Identity)

    06/14/2022, 12:29 PM
    Another question, if i build the calcom docker image, is it the same deal with ports 3002 and 3004 for api and console? These dont seem to be bound in the container...
    p
    c
    • 3
    • 8
  • j

    Jimmy Chan

    06/15/2022, 10:25 AM
    Hey guys, I tried deploying @cal/web on vercel and it isn’t redirecting auth after entering email/pw information. But it works fine building locally and on a bare metal instance. How should I check what’s wrong if console shows nothing wrong? Also is there description or step by step on how to deploy API and console on vercel? Thanks
    h
    a
    z
    • 4
    • 21
  • p

    Patrick DePippo

    06/15/2022, 1:23 PM
    Hello! I have a schedule that has availability monday - friday. When looking at a team event type that leverages this schedule, saturday and sunday are still clickable but it just says "All booked". Assuming the intended behavior is to have those days not clickable correct?
    a
    • 2
    • 1
  • n

    Nahuel Bulla

    06/15/2022, 8:49 PM
    Hi, on the webhook’s payload is there any chance that the Zoom’s videocall URL was removed after last update? This is something that is used to be on that payload
    Copy code
    "videoCallData": {
          "type": "zoom_video",
          "id": 8259.....,
          "password": "",
          "url": "<https://us06web.zoom.us/j/825991>...."
        },
    a
    a
    a
    • 4
    • 9
  • j

    Jimmy Chan

    06/16/2022, 2:34 AM
    have you guys tried using https://nx.dev before? I feel like cal could reevaluate how the monorepo is setup. submodules would be ok in nx. When using the deployment step, my gut feeling is it can be cleaner.
  • j

    Jimmy Chan

    06/16/2022, 2:35 AM
    https://nx.dev/guides/deploy-nextjs-to-vercel
  • j

    Jimmy Chan

    06/16/2022, 2:37 AM
    And since cal is already built with multiple library packages, it’s a natural fit for the nx structure https://nx.dev/structure/applications-and-libraries
  • a

    Agusti

    06/16/2022, 2:12 PM
    Hey @Jimmy Chan I’d say we’re pretty happy with turborepo so far, and it being a vercel product makes sense for us. What issues are you having with our current submodules structure?
    j
    • 2
    • 2
  • p

    Prashant Kumar

    06/17/2022, 3:29 AM
    Hi everyone, I am new to Open Source, during the development on the local system I got the below errors on command
    yarn dx
    . Some of them are:
    Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    Error: ENOENT: no such file or directory, open '/mnt/c/Users/teoti/Desktop/Open source/cal.com/apps/web/.next/server/pages/api/auth/schema.prisma'
    <https://next-auth.js.org/errors#client_fetch_error> invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0
    TypeError: Cannot read properties of undefined (reading 'UNLIMITED')
    Full flow
    @calcom/web:dx: wait  - compiling...
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    @calcom/web:dx: Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    @calcom/web:dx: error - Error: ENOENT: no such file or directory, open '/mnt/c/Users/teoti/Desktop/Open source/cal.com/apps/web/.next/server/pages/api/auth/schema.prisma'
    @calcom/web:dx: error - Error: ENOENT: no such file or directory, open '/mnt/c/Users/teoti/Desktop/Open source/cal.com/apps/web/.next/server/pages/api/auth/schema.prisma'
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    @calcom/web:dx: Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    @calcom/web:dx: wait  - compiling /500 (client and server)...
    @calcom/web:dx: wait  - compiling...
    @calcom/web:dx: event - compiled client and server successfully in 2.5s (704 modules)
    @calcom/web:dx: [next-auth][error][CLIENT_FETCH_ERROR]
    @calcom/web:dx: <https://next-auth.js.org/errors#client_fetch_error> invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0 {
    @calcom/web:dx:   error: {
    @calcom/web:dx:     message: 'invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0',
    @calcom/web:dx:     stack: 'FetchError: invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0\n' +
    @calcom/web:dx:       '    at /mnt/c/Users/teoti/Desktop/Open source/cal.com/node_modules/next/dist/compiled/node-fetch/index.js:1:49606\n' +
    @calcom/web:dx:       '    at runMicrotasks (<anonymous>)\n' +
    @calcom/web:dx:       '    at processTicksAndRejections (node:internal/process/task_queues:96:5)',
    @calcom/web:dx:     name: 'FetchError'
    @calcom/web:dx:   },
    @calcom/web:dx:   path: 'session',
    @calcom/web:dx:   header: {
    @calcom/web:dx:     host: 'localhost:3000',
    @calcom/web:dx:     connection: 'keep-alive',
    @calcom/web:dx:     'cache-control': 'max-age=0',
    @calcom/web:dx:     'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="102", "Google Chrome";v="102"',
    @calcom/web:dx:     'sec-ch-ua-mobile': '?0',
    @calcom/web:dx:     'sec-ch-ua-platform': '"Windows"',
    @calcom/web:dx:     'upgrade-insecure-requests': '1',
    @calcom/web:dx:     'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    @calcom/web:dx:     accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
    @calcom/web:dx:     'sec-fetch-site': 'none',
    @calcom/web:dx:     'sec-fetch-mode': 'navigate',
    @calcom/web:dx:     'sec-fetch-user': '?1',
    @calcom/web:dx:     'sec-fetch-dest': 'document',
    @calcom/web:dx:     'accept-encoding': 'gzip, deflate, br',
    @calcom/web:dx:     'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8'
    @calcom/web:dx:   },
    @calcom/web:dx:   message: 'invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0'
    @calcom/web:dx: }
    @calcom/web:dx: [next-auth][error][CLIENT_FETCH_ERROR]
    @calcom/web:dx: <https://next-auth.js.org/errors#client_fetch_error> invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0 {
    @calcom/web:dx:   error: {
    @calcom/web:dx:     message: 'invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0',
    @calcom/web:dx:     stack: 'FetchError: invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0\n' +
    @calcom/web:dx:       '    at /mnt/c/Users/teoti/Desktop/Open source/cal.com/node_modules/next/dist/compiled/node-fetch/index.js:1:49606\n' +
    @calcom/web:dx:       '    at runMicrotasks (<anonymous>)\n' +
    @calcom/web:dx:       '    at processTicksAndRejections (node:internal/process/task_queues:96:5)',
    @calcom/web:dx:     name: 'FetchError'
    @calcom/web:dx:   },
    @calcom/web:dx:   path: 'session',
    @calcom/web:dx:   header: {
    @calcom/web:dx:     host: 'localhost:3000',
    @calcom/web:dx:     connection: 'keep-alive',
    @calcom/web:dx:     'cache-control': 'max-age=0',
    @calcom/web:dx:     'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="102", "Google Chrome";v="102"',
    @calcom/web:dx:     'sec-ch-ua-mobile': '?0',
    @calcom/web:dx:     'sec-ch-ua-platform': '"Windows"',
    @calcom/web:dx:     'upgrade-insecure-requests': '1',
    @calcom/web:dx:     'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    @calcom/web:dx:     accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
    @calcom/web:dx:     'sec-fetch-site': 'none',
    @calcom/web:dx:     'sec-fetch-mode': 'navigate',
    @calcom/web:dx:     'sec-fetch-user': '?1',
    @calcom/web:dx:     'sec-fetch-dest': 'document',
    @calcom/web:dx:     'accept-encoding': 'gzip, deflate, br',
    @calcom/web:dx:     'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8'
    @calcom/web:dx:   },
    @calcom/web:dx:   message: 'invalid json response body at <http://localhost:3000/api/auth/session> reason: Unexpected token < in JSON at position 0'
    @calcom/web:dx: }
    @calcom/web:dx: wait  - compiling /_middleware...
    @calcom/web:dx: wait  - compiling...
    @calcom/web:dx: event - compiled client and server successfully in 518 ms (766 modules)
    @calcom/web:dx: wait  - compiling /auth/login (client and server)...
    @calcom/web:dx: wait  - compiling...
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    @calcom/web:dx: Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    @calcom/web:dx: Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    @calcom/web:dx: wait  - compiling /[user]/[type] (client and server)...
    @calcom/web:dx: wait  - compiling...
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    @calcom/web:dx: Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    @calcom/web:dx: Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    @calcom/web:dx: wait  - compiling /500 (client and server)...
    @calcom/web:dx: wait  - compiling...
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    @calcom/web:dx: Module not found: Can't resolve 'encoding' in '/mnt/c/Users/teoti/Desktop/Open source/cal.com/packages/prisma/node_modules/@prisma/client/runtime'
    @calcom/web:dx: error - ../../packages/lib/defaultEvents.ts (40:14) @ eval
    @calcom/web:dx: TypeError: Cannot read properties of undefined (reading 'UNLIMITED')
    @calcom/web:dx:   38 |   beforeEventBuffer: 0,
    @calcom/web:dx:   39 |   afterEventBuffer: 0,
    @calcom/web:dx: > 40 |   periodType: PeriodType.UNLIMITED,
    @calcom/web:dx:      |              ^
    @calcom/web:dx:   41 |   periodDays: null,
    @calcom/web:dx:   42 |   slotInterval: null,
    @calcom/web:dx:   43 |   locations: [{ type: "integrations:daily" }],
    @calcom/web:dx: warn  - ../../packages/prisma/node_modules/@prisma/client/runtime/index.js
    h
    • 2
    • 1
  • p

    Philipp Fruh (Virtual-Identity)

    06/20/2022, 12:13 PM
    Hey, we are having a problem. Our SAML XML configuration isnt accepted, the backend throws this error when trying to paste it in the frontend: Has anyone encountered this before?
    2022-06-20T11:11:34.164913000Z @calcom/web:start: Error setting SAML config Error: Invalid key length
    2022-06-20T11:11:34.165449000Z @calcom/web:start: at Cipheriv.createCipherBase (internal/crypto/cipher.js:103:19)
    2022-06-20T11:11:34.165509000Z @calcom/web:start: at Cipheriv.createCipherWithIV (internal/crypto/cipher.js:121:20)
    2022-06-20T11:11:34.165550000Z @calcom/web:start: at new Cipheriv (internal/crypto/cipher.js:227:22)
    2022-06-20T11:11:34.165597000Z @calcom/web:start: at Object.createCipheriv (crypto.js:122:10)
    2022-06-20T11:11:34.165649000Z @calcom/web:start: at Object.encrypt (/calcom/node_modules/@boxyhq/saml-jackson/dist/db/encrypter.js:12:37)
    2022-06-20T11:11:34.165686000Z @calcom/web:start: at DB.<anonymous> (/calcom/node_modules/@boxyhq/saml-jackson/dist/db/db.js:76:29)
    2022-06-20T11:11:34.165729000Z @calcom/web:start: at Generator.next (<anonymous>)
    2022-06-20T11:11:34.165765000Z @calcom/web:start: at /calcom/node_modules/@boxyhq/saml-jackson/dist/db/db.js:27:71
    2022-06-20T11:11:34.165805000Z @calcom/web:start: at new Promise (<anonymous>)
    2022-06-20T11:11:34.165843000Z @calcom/web:start: at __awaiter (/calcom/node_modules/@boxyhq/saml-jackson/dist/db/db.js:23:12)
    2022-06-20T11:11:34.165875000Z @calcom/web:start: at DB.put (/calcom/node_modules/@boxyhq/saml-jackson/dist/db/db.js:71:16)
    2022-06-20T11:11:34.165914000Z @calcom/web:start: at Store.<anonymous> (/calcom/node_modules/@boxyhq/saml-jackson/dist/db/store.js:55:34)
    2022-06-20T11:11:34.165953000Z @calcom/web:start: at Generator.next (<anonymous>)
    2022-06-20T11:11:34.165991000Z @calcom/web:start: at /calcom/node_modules/@boxyhq/saml-jackson/dist/db/store.js:27:71
    2022-06-20T11:11:34.166040000Z @calcom/web:start: at new Promise (<anonymous>)
    2022-06-20T11:11:34.166080000Z @calcom/web:start: at __awaiter (/calcom/node_modules/@boxyhq/saml-jackson/dist/db/store.js:23:12)
    👀 1
    p
    d
    • 3
    • 11
  • t

    Tarek

    06/21/2022, 5:26 PM
    Hi all, Is there an API for creating users? I need to create dynamic users using Api and found only get, edit, remove APIs
    c
    • 2
    • 1
  • a

    Augusto Paredes

    06/21/2022, 9:15 PM
    I'm trying to deploy cal.com on my VPS, but I get this error 😞 (VPS 2 CPU cores, 1Gb RAM) Could you help me?
    z
    • 2
    • 3
  • j

    Juan Jimenez

    06/22/2022, 12:58 PM
    Hi folk, I have encountered a problem using the api. I am trying to edit a user with the api call /users/id. Unfortunately I get the following error as response:
    Copy code
    {
      "issues": [
        {
          "code": "invalid_type",
          "expected": "string",
          "received": "undefined",
          "path": [
            "id"
          ],
          "message": "Required"
        },
        {
          "code": "unrecognized_keys",
          "keys": [
            "userId"
          ],
          "path": [],
          "message": "Unrecognized key(s) in object: 'userId'"
        }
      ],
      "name": "ZodError"
    }
    I know that the user I tried to get is exiting and called the api with the url: .../users/{id}
    👍 1
    m
    a
    • 3
    • 4
  • s

    Samuel Reed

    06/22/2022, 4:21 PM
    Hi All, I'm running into an issue where after I login nothing happens - no redirect or anything. There are no error logs being generated and I don't see anything in my browser console. Has anyone had experience with this issue before?
    p
    z
    +3
    • 6
    • 25
  • n

    Neha Patil

    06/24/2022, 4:11 AM
    Hello, I am facing one problem after npm run dev. Login page loads but before entering credentials I get this error in console. Anyone faced this error before?
  • r

    Roberto

    06/24/2022, 6:23 AM
    Hi all, i'm trying to install Stripe but when i try to visit
    api/integrations/stripepayment/portal
    it says
    {"message":"API handler not found"}
    . I'm building on Rail, so i'm running as Self Hosted. On .env there are keys: STRIPE_CLIENT_ID STRIPE_PRIVATE_KEY NEXT_PUBLIC_STRIPE_PUBLIC_KEY What i need to check?
  • m

    Matthias

    06/24/2022, 2:05 PM
    Hi devs, I cannot create a responsible disclosure issue on github, how should I report a security problem?
    c
    z
    • 3
    • 2
  • d

    Dan Brown

    06/26/2022, 10:12 AM
    👋 Quick question regarding something in the repo readme:
    Clone the repo into a public GitHub repository (to comply with AGPLv3. To clone in a private repository, acquire a commercial license)
    I'm no legal expert, so just trying to understand this better. How does the AGPLv3 prevent me from cloning to a private repo? Does that prevent me cloning to my local machine since that would be a private repo?
    p
    • 2
    • 36
  • p

    Philipp Fruh (Virtual-Identity)

    06/27/2022, 10:55 AM
    Hello 👋 I have a question regarding the caldav integration. For our project we need availabilities changing week by week, so each member of a team needs to plan availabilities for multiple weeks in advance. For this we are trying to use the caldav integration, but here we are running into problems. Even a simple blocker appointment in the calendar for a single personal meeting, doesnt block this time in the persons availabilities, so it doesnt see to work to block slots in the caldav calendar. Further questions: Can we have a caldav calendar with multiple people entering blockers, and those blockers will only block them from a round robin selection in that timeframe? Or do we need one calendar(integration) per person to block them in a round robin routing. Here is how we thought i would work: Each team member enters blockers in the caldav calendar via a client, the intersection of a team availabiltiy schedule and non blocked times of a users in caldav will result in his availability for the round robin routing. But his doesnt seem to be the case.
    z
    • 2
    • 4
  • j

    Jimmy Chan

    06/27/2022, 11:00 AM
    Hi, I’m getting a new error message when deploying latest API code.
    Copy code
    Type error: Cannot find module './apps.browser.generated' or its corresponding type declarations.
    Does someone know what this is and how do I get this generated? Thanks
  • h

    Hariom Balhara

    06/27/2022, 11:04 AM
    @Jimmy Chan Have you taken latest pull. These files are committed in repo now.
  • j

    Jimmy Chan

    06/27/2022, 11:05 AM
    should i be deployed tagged commits or latest
1...567...22Latest