[GH-ISSUE #5707] [BUG]: Anytime I try to generate developer api key, it reported an error #5245

Closed
opened 2026-06-05 14:52:53 -04:00 by yindo · 1 comment
Owner

Originally created by @BBBINGW on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5707

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

When I pressed the button "Create API Key", it returned with the error below:

Error: Invalid prisma.api_keys.create() invocation: { data: { name: "1", ~~~~ secret: "MD4GG7D-5TPMBGX-NR03W4E-D34D1Q0", createdBy: null, ? createdAt?: DateTime, ? lastUpdatedAt?: DateTime } } Unknown argument name. Available options are listed in green.

  • Device: iMac (Retina 5K, 27-inch, 2017)
  • OS: macOS Ventura 13.7.8 (Build 22H730)
  • Processor: 4.2 GHz Quad-Core Intel Core i7
  • Memory: 32 GB 2400 MHz DDR4
  • Graphics: Radeon Pro 580 8 GB

Are there known steps to reproduce?

Setting -> Tool -> Developer API -> Create New API Key

LLM Provider & Model (if applicable)

Anthropic

Embedder Provider & Model (if applicable)

No response

Originally created by @BBBINGW on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5707 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? When I pressed the button "Create API Key", it returned with the error below: Error: Invalid `prisma.api_keys.create()` invocation: { data: { name: "1", ~~~~ secret: "MD4GG7D-5TPMBGX-NR03W4E-D34D1Q0", createdBy: null, ? createdAt?: DateTime, ? lastUpdatedAt?: DateTime } } Unknown argument `name`. Available options are listed in green. - **Device:** iMac (Retina 5K, 27-inch, 2017) - **OS:** macOS Ventura 13.7.8 (Build 22H730) - **Processor:** 4.2 GHz Quad-Core Intel Core i7 - **Memory:** 32 GB 2400 MHz DDR4 - **Graphics:** Radeon Pro 580 8 GB ### Are there known steps to reproduce? Setting -> Tool -> Developer API -> Create New API Key ### LLM Provider & Model (if applicable) Anthropic ### Embedder Provider & Model (if applicable) _No response_
yindo added the possible bug label 2026-06-05 14:52:53 -04:00
yindo closed this issue 2026-06-05 14:52:53 -04:00
Author
Owner

@timothycarambat commented on GitHub (May 27, 2026):

Error: Invalid prisma.api_keys.create() invocation: { data: { name: "1", ~~~~ secret: "MD4GG7D-5TPMBGX-NR03W4E-D34D1Q0", createdBy: null, ? createdAt?: DateTime, ? lastUpdatedAt?: DateTime } } Unknown argument name. Available options are listed in green.

This is because for whatever reason the DB did not migrate on launch. Full close the app and reopen and try again. We run migrations on every boot. Also if for whatever reason you have internet disable you may need it on because of how prisma pulls its engine in to run the migration (shouldnt be the issue, but just covering all cases).

If you still get this issue you should open a terminal, drag the app into the terminal and press enter - you should see lots of logs while the app boots - the very first logs will be any potential issues or highlight why exactly the migration did not complete.

<!-- gh-comment-id:4556273708 --> @timothycarambat commented on GitHub (May 27, 2026): > Error: Invalid prisma.api_keys.create() invocation: { data: { name: "1", ~~~~ secret: "MD4GG7D-5TPMBGX-NR03W4E-D34D1Q0", createdBy: null, ? createdAt?: DateTime, ? lastUpdatedAt?: DateTime } } Unknown argument name. Available options are listed in green. This is because for whatever reason the DB did not migrate on launch. Full close the app and reopen and try again. We run migrations on every boot. Also if for whatever reason you have internet disable you may need it on because of how prisma pulls its engine in to run the migration (shouldnt be the issue, but just covering all cases). If you still get this issue you should open a terminal, drag the app into the terminal and press enter - you should see lots of logs while the app boots - the very first logs will be any potential issues or highlight why exactly the migration did not complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5245