Dear community, I am not a developer by any means. I am a game designer with a strong interest in AI. I've been trying to install and run AI Town. Here is where I am lost: After making my Convex account and connected it to my local machine which already has AI Town repo cloned with .env.local file with API keys from Clerk, should I NOT be able to see a AI Town project in my Convex account? I am trying to do the installation as per the instructions on Youtube videos and the documentation on GitHub. In the videos, it is mentioned that it should be visible and I am super confused. Any guidance will be appreciated. Many thanks!
#ai town
1 messages · Page 1 of 1 (latest)
Have you run npx convex dev in the commnd line? That command will guide you through connecting your code to your account and creating the project in your Convex account.
thanks a ton for coming for my bat signal. :)Yupp I did. At first it connected my account to my local device but then when I tried putting my keys into my Clerk account and tried again it got somehow disconnected I think. I believe the problem is somewhere between my Convex and Clerk account but its just a guess. I can share the terminal messages here after trying again if that would help.
It'll be hard to debug this without a deeper look at the code. But do try to retrace your steps through this guide: https://docs.convex.dev/auth/clerk. It's highly possible you missed some steps. It's very common and happens to the best of us 🙂
Good luck.
Also if you can't figure it out based on the setup guide, use this doc:
https://docs.convex.dev/auth/debug
Thank you both very much. Unf I cant get it fix. I keep getting the same error: [email protected] predev
convex dev --run init --until-success
✖ You don't have access to the project with deployment cool-bullfrog-130|XYZ, as configured in CONVEX_DEPLOYMENT
run npx convex dev --configure
I tried it before and again here is what I see: ai-town % npx convex dev --configure
? What would you like to configure? an existing project
? Configure project Naz's Town (naz-s-town)? Yes
✔ Provisioned dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local
Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or [email protected]
✖ Schema validation failed
Document with ID "j570ccv9jtqzg0zxfr5zdcv4wn6m9jmn" in table "messages" does not match the schema: Object is missing the required field conversationId. Consider wrapping the field validator in v.optional(...) if this is expected.
Object: {author: "Arya", body: "Oh cool, I need to learn more about that!"}
Validator: v.object({author: v.string(), conversationId: v.string(), messageUuid: v.string(), text: v.string(), worldId: v.optional(v.id("worlds"))})
Discord
Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders. | 3240 members
Delete the document from your dashboard (npx convex dashboard, open the "messages" table, and clear it or filter for the ID)
Dear all I am happy to inform with a help of a develeoper friend I was able to fix it my problem and now I am the proud goddess of my own ai-town. Here is the problem I had: .env.local file was none existent for me and I made one with all the steps followed as instructed however it still did not work.. Once I made a new project on Convex, I automatically had a .env.local file but it didnt again work. I had to put CLERK_ISSUER_URL then it started working.