Open boyso opened 3 months ago
本地生成图像功能都跑通了,但部署到Vercel后生成就会报错,如下,不知有没有遇到过:
` 报错内容 69-9b793a7f9f24acef.js:1 Failed to generate image: Error: <!DOCTYPE html>
The web server reported a gateway time-out error.
Please try again in a few minutes.
`
Vercel Hobby Plan默认超时时间是10s,目前调用Replicate生图API采用的是同步模式,一般耗时在20s左右。可尝试调大timeout参数。
https://vercel.com/docs/functions/configuring-functions/duration
本地生成图像功能都跑通了,但部署到Vercel后生成就会报错,如下,不知有没有遇到过:
` 报错内容 69-9b793a7f9f24acef.js:1 Failed to generate image: Error: <!DOCTYPE html>
Gateway time-out Error code 504
Browser
WorkingCloudflare
WorkingHost
ErrorWhat happened?
The web server reported a gateway time-out error.
What can I do?
Please try again in a few minutes.
Cloudflare Ray ID: 8abc0d589b7b6005 • Your IP: 185.217.5.27 • Performance & security by Cloudflare
`