a16z-infra / ai-town

A MIT-licensed, deployable starter kit for building and customizing your own version of AI town - a virtual town where AI characters live, chat and socialize.
https://convex.dev/ai-town
MIT License
7.4k stars 678 forks source link

Error fetching POST http://127.0.0.1:3210/api/push_config 500 Internal Server Error #227

Open xjq284 opened 5 months ago

xjq284 commented 5 months ago

Diffing local code and deployment state Analyzing and deploying source code... ✖ Error: Unable to push deployment config to http://127.0.0.1:3210 Error fetching POST http://127.0.0.1:3210/api/push_config 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.

node v21.1.0

61cygni commented 5 months ago

This can happen when you run local-convex-server in a different directory than npm-run-dev and there is a version mismatch.

So either run both in the same directory (the git root dir), or use 'nvm use 20' in both directories. .m

On Wed, May 1, 2024 at 8:15 AM xjq284 @.***> wrote:

Diffing local code and deployment state Analyzing and deploying source code... ✖ Error: Unable to push deployment config to http://127.0.0.1:3210 Error fetching POST http://127.0.0.1:3210/api/push_config 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.

node v21.1.0

— Reply to this email directly, view it on GitHub https://github.com/a16z-infra/ai-town/issues/227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWEFGBVV2BEFZCAVVXSYPDZAEBIPAVCNFSM6AAAAABHCDTTN6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TGNRYGAZDQNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

abhavk commented 4 months ago

Hi! I have a similar error despite matching node versions on both the server and npm run dev.

output from running ./convex-local-backend:

image

output from npm run dev:

image

node version is v20.10.0 on both consoles and both are in the same directory (ai-town). Saw no failures on installation.

What am I doing wrong?

61cygni commented 4 months ago

This is the same problem. You can also try running "nvm use 20" in both directories to ensure they're using the same version.

On Thu, May 2, 2024 at 10:26 AM Abhav Kedia @.***> wrote:

Hi! I have a similar error despite matching node versions on both the server and npm run dev.

output from running npm run dev: image.png (view on web) https://github.com/a16z-infra/ai-town/assets/12238572/14283fda-29db-41df-939b-235762103906

output from ./convex-local-server: image.png (view on web) https://github.com/a16z-infra/ai-town/assets/12238572/729503f6-1da6-4df2-b97c-7b19d0830a46

node version is v20.10.0 on both consoles and both are in the same directory (ai-town). Saw no failures on installation.

What am I doing wrong?

— Reply to this email directly, view it on GitHub https://github.com/a16z-infra/ai-town/issues/227#issuecomment-2091120594, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWEFGEWBGQ5GZUSNZZWE3TZAJZODAVCNFSM6AAAAABHCDTTN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRGEZDANJZGQ . You are receiving this because you commented.Message ID: @.***>

abhavk commented 4 months ago

Nope, tried after running nvm use 20 on both terminals (they were already running in the same directory, just two terminals). Proof:

image

Have you seen this error for any other reason?

61cygni commented 4 months ago

that's really odd. The error is very straightforward.

Another option is just to install via Pinokio which should "just work".

https://pinokio.computer/

.m

On Thu, May 2, 2024 at 11:06 AM Abhav Kedia @.***> wrote:

Nope, tried after running nvm use 20 on both terminals (they were already running in the same directory, just two terminals).

Have you seen this error for any other reason?

— Reply to this email directly, view it on GitHub https://github.com/a16z-infra/ai-town/issues/227#issuecomment-2091193033, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWEFGHAFYG3Z6GBVK6FIZDZAJ6DRAVCNFSM6AAAAABHCDTTN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRGE4TGMBTGM . You are receiving this because you commented.Message ID: @.***>

abhavk commented 4 months ago

Wow, got it to work on 18. It seems to fail with node v20 and 21 (same error as above). Some notes:

  1. On node 18 it seems to work fine, although agents take some time to get moving.
  2. On node 19 it starts up fine but I see errors repeatedly on agent:agentDoSomething. I can post more if that is helpful.

P.S. Laptop going brrr and so cool to see the agents chatting, thanks for making this available! 🙂

First conversation b/w Stella and Pete is amazing: "Stella, you are lost and blinded by the devil's deceit. Turn away from your wicked ways and seek the true path of righteousness. The love of God is the only way to find true happiness and fulfillment in life."

61cygni commented 4 months ago

Oh thanks for the update on this. Any chance you can submit a PR on the readme with this? The situation seems to come up a lot.

On Thu, May 2, 2024 at 3:32 PM Abhav Kedia @.***> wrote:

Wow, got it to work on 18. It seems to fail with node v20 and 21 (same error as above). Some notes:

  1. On node 18 it seems to work fine, although agents take some time to get moving.
  2. On node 19 it starts up fine but I see errors repeatedly on agent:agentDoSomething. I can post more if that is helpful.

P.S. Laptop going brrr and so cool to see the agents chatting, thanks for making this available! 🙂

First conversation b/w Stella and Pete is amazing: "Stella, you are lost and blinded by the devil's deceit. Turn away from your wicked ways and seek the true path of righteousness. The love of God is the only way to find true happiness and fulfillment in life."

— Reply to this email directly, view it on GitHub https://github.com/a16z-infra/ai-town/issues/227#issuecomment-2091857235, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWEFGAC7DQPVY2OO2GCYRTZAK5HPAVCNFSM6AAAAABHCDTTN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRHA2TOMRTGU . You are receiving this because you commented.Message ID: @.***>

abhavk commented 4 months ago

228 submitted