CursorLens icon indicating copy to clipboard operation
CursorLens copied to clipboard

Record to update not found. at async updateDefaultConfiguration

Open MagicJinn opened this issue 1 year ago • 2 comments

After running pnpm dev and trying to select a model, I get this error

An operation failed because it depends on one or more records that were required but not found. Record to update not found.
    at async updateDefaultConfiguration (./src/app/actions.ts:161:5)
digest: "3107342700"
 POST / 500 in 19ms

MagicJinn avatar Oct 27 '24 17:10 MagicJinn

Have you run pnpm run seed? seed inserts the costs for the models and it might be missing.

I'm upgrading the repo to v0.2 with better onboarding and documentation, you can check the current main branch. I'll ping you when the Docker version is live 🙌🏼

HamedMP avatar Nov 02 '24 21:11 HamedMP

Yep, I ran that command. Perhaps I'm missing context as to when and where the command should be run?

MagicJinn avatar Nov 11 '24 11:11 MagicJinn