HamedMP / CursorLens

An open-source dashboard for Cursor.sh IDE. Log AI code generations, track usage, and control AI models (including local ones). Run locally or use upcoming hosted version.
https://www.cursorlens.com
GNU Affero General Public License v3.0
163 stars 25 forks source link

Record to update not found. at async updateDefaultConfiguration #27

Open MagicJinn opened 1 month ago

MagicJinn commented 1 month ago

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
HamedMP commented 3 weeks ago

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 🙌🏼

MagicJinn commented 2 weeks ago

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