Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
allentofight opened this issue Jun 3, 2023 · 3 comments
Open

Comments

@allentofight
Copy link

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

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

@allentofight
Copy link
Author

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

@allentofight
Copy link
Author

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

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

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

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

@allentofight allentofight changed the title 部署到 vercel 后开始绘图显示405,本地绘图正常 部署到 vercel 后开始绘图显示502,本地绘图正常 Jun 4, 2023
@zcpua
Copy link
Member

zcpua commented Jun 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants