Service in Cloud Run can't send outbound traffic

Hi everyone,

I have just moved my Koishi chatbot (using Docker) from VM to serverless Cloud Run. It needs to download plugins from “market” (an external server on the internet). When on the VM it worked well but now it can’t send an outbound request from Cloud Run. I can connect to its console as before.

Logs in the console showed:

2023-08-23 23:39:54 [W] market AxiosError: timeout of 30000ms exceeded
                            at RedirectableRequest.handleRequestTimeout (/koishi/node_modules/axios/dist/node/axios.cjs:3047:16)
                            at RedirectableRequest.emit (node:events:514:28)
                            at Timeout.<anonymous> (/koishi/node_modules/follow-redirects/index.js:169:12)
                            at listOnTimeout (node:internal/timers:569:17)
                            at process.processTimers (node:internal/timers:512:7)
2023-08-23 23:39:55 [W] market timeout of 5000ms exceeded

From the documents I see:

Therefore I didn’t set up any VPC.

Could anyone offer some solutions? Thank you very much.

1 Like