get-convex / convex-demos

Demo apps built on Convex.
https://docs.convex.dev/
165 stars 25 forks source link

why outgoing request timed out? #22

Closed essencejay closed 10 months ago

essencejay commented 11 months ago

$ npm run dev

convex-tour-chat-0@0.0.0 dev npm-run-all dev:init --parallel dev:server dev:client

convex-tour-chat-0@0.0.0 dev:init convex dev --run init --until-success

Unexpected Error: RPError: outgoing request timed out after 10000ms ERROR: "dev:init" exited with 1.

Network: Unexpected Error: RPError: outgoing request timed out after 10000ms This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: Error: connect ETIMEDOUT 34.120.195.249:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) PS D:\ideas\ai-town> ping 34.120.195.249

正在 Ping 34.120.195.249 具有 32 字节的数据: 来自 34.120.195.249 的回复: 字节=32 时间=190ms TTL=108 来自 34.120.195.249 的回复: 字节=32 时间=154ms TTL=108 来自 34.120.195.249 的回复: 字节=32 时间=199ms TTL=108

nipunn1313 commented 11 months ago

This tutorial talks to auth0 (the auth provider convex uses to log into your Convex account). It appears that you may have some network connectivity issue in speaking with auth0.

You can try npx convex login - which runs just the login portion of the npm run dev command to see if you can get that to work on your internet connection.

essencejay commented 11 months ago

This tutorial talks to auth0 (the auth provider convex uses to log into your Convex account). It appears that you may have some network connectivity issue in speaking with auth0.

You can try npx convex login - which runs just the login portion of the npm run dev command to see if you can get that to work on your internet connection.

$ npx convex login Unexpected Error: RPError: outgoing request timed out after 10000ms

Yes, that's the problem But, how can i get accessToken. I login the convex.dev using github account. Its okay when using browser to login, but error when using command to run npm run dev or 'npx convex login' ...... how to fix it

nipunn1313 commented 11 months ago

It is possible you may be on an internet connection that is running into timeouts when speaking to auth0. You may want to try running from a VPN or improving internet connection or otherwise.

It's also possible there's some kind of firewall blocking openid connection messages from reaching auth0.

xixixao commented 10 months ago

Let us know on Discord if you're still having trouble logging in