erictik / midjourney-ui

Midjourney UI is an open source AI painting UI based on Midjourney
https://midjourney-ui.vercel.app
Apache License 2.0
343 stars 118 forks source link

部署到 vercel 后开始绘图显示502,本地绘图正常 #32

Open allentofight opened 1 year ago

allentofight commented 1 year ago

本地运行绘图正常,部署到 vercel 后请求 prompt 显示 405 image 随后在控制台看见以下报错 image 说是 28 行报错 image

const client = new Midjourney({ ServerId: 'xxx', ChannelId: 'xxx', SalaiToken: 'xxx', Debug: true, Ws: true, }); 以上配置都是写死的字符串,不知哪里出了问题

allentofight commented 1 year ago

我用了 https://midjourney.baochi.xin/ 你的网站发现也出现同样的问题

allentofight commented 1 year ago

现在请求不报 405 了,但是会报 502

看了一下 vercel.com 的日志 [POST] /api/imagine/ reason=EDGE_FUNCTION_INVOCATION_TIMEOUT, status=504, user_error=true

开了 VPN 的全局模式的,在 discord.com 看绘图也未开始

试了一下你的网站也一样的502

zcpua commented 1 year ago

netlify ws work. vercel ws doesn't work. u can disable ws or try netlify.