Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating ApiKey crashes server (no queries possible) #4675

Closed
brendanlaschke opened this issue Mar 26, 2024 · 0 comments · Fixed by #4694
Closed

Creating ApiKey crashes server (no queries possible) #4675

brendanlaschke opened this issue Mar 26, 2024 · 0 comments · Fixed by #4694

Comments

@brendanlaschke
Copy link
Contributor

Bug Description

On the main branch after creating an api key the server crashes (is in a state where a lot of queries just fail)

Bildschirmaufnahme.2024-03-26.um.22.41.25.mov
/app/packages/twenty-server/src/engine/workspace-datasource/workspace-datasource.service.ts:127
      throw new Error(
            ^
Error: Error executing raw query for workspace 20202020-1c25-4d02-bf25-6aeccf7ea419: column "apiKeyId" of relation "event" does not exist
    at WorkspaceDataSourceService.executeRawQuery (/app/packages/twenty-server/src/engine/workspace-datasource/workspace-datasource.service.ts:127:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at EventRepository.insert (/app/packages/twenty-server/src/modules/event/repositiories/event.repository.ts:22:5)
    at SaveEventToDbJob.handle (/app/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/jobs/save-event-to-db.job.ts:49:5)
    at SyncDriver.add (/app/packages/twenty-server/src/engine/integrations/message-queue/drivers/sync.driver.ts:29:5)

Expected behavior

No crash? :D

Technical inputs

Event related error. I think these are valuable events but we need a system to create generic events without writing an apiKeyId/... in a dedicated column...

Related a bit to #4631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant