Closed beiyaohhhc closed 1 year ago
看起来后端有点问题
你看看 {API_URL}/aggregate/feed 返回啥
你看看 {API_URL}/aggregate/feed 返回啥
{ "ok": 0, "message": "Cannot GET /aggregate/feed" }
{ "ok": 0, "message": "Cannot GET /aggregate/feed" }
是 {API_URL} 不是 {BASE_URL}
类似这种 https://example.com/api/v2/aggregate/feed
{ "ok": 0, "message": "Cannot GET /aggregate/feed" }
是 {API_URL} 不是 {BASE_URL} 类似这种
https://example.com/api/v2/aggregate/feed
直接404 但是管理后台还是正常的
{ "ok": 0, "message": "Cannot GET /aggregate/feed" }
是 {API_URL} 不是 {BASE_URL} 类似这种
https://example.com/api/v2/aggregate/feed
直接404 但是管理后台还是正常的
你 NEXT_PUBLIC_GATEWAY_URL 和 NEXT_PUBLIC_API_URL 填的都是啥
跟后端设置一样 NEXT_PUBLIC_API_URL=https://app.beiyao.icu/api/v2 NEXT_PUBLIC_GATEWAY_URL=https://app.beiyao.icu/
nginx错误日志
2023/09/29 09:54:09 [error] 23958#0: *1194733 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.210.197, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952449158 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:56:26 [error] 23958#0: *1194788 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggregate/feed" failed (2: No such file or directory), client: 172.71.214.64, server: app.beiyao.icu, request: "GET /api/v2/aggregate/feed HTTP/2.0", host: "app.beiyao.icu"
2023/09/29 09:56:53 [error] 23958#0: *1194797 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggregate/feed" failed (2: No such file or directory), client: 172.71.219.65, server: app.beiyao.icu, request: "GET /api/v2/aggregate/feed HTTP/2.0", host: "app.beiyao.icu"
2023/09/29 09:57:40 [error] 23958#0: *1194832 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggregate/feed" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2//aggregate/feed HTTP/2.0", host: "app.beiyao.icu"
2023/09/29 09:57:48 [error] 23958#0: *1194832 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952668962 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:57:48 [error] 23958#0: *1194834 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952668971 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:58:02 [error] 23958#0: *1194834 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952683249 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:58:02 [error] 23958#0: *1194832 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952683254 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:58:36 [error] 23958#0: *1194875 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggr" failed (2: No such file or directory), client: 162.158.166.118, server: app.beiyao.icu, request: "GET /api/v2/aggr HTTP/2.0", host: "app.beiyao.icu"
2023/09/29 09:58:38 [error] 23958#0: *1194876 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggre" failed (2: No such file or directory), client: 172.69.23.101, server: app.beiyao.icu, request: "GET /api/v2/aggre HTTP/2.0", host: "app.beiyao.icu"
2023/09/29 09:58:45 [error] 23958#0: *1194877 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.71.210.211, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952725940 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:58:45 [error] 23958#0: *1194879 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.210.211, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952725950 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:59:04 [error] 23958#0: *1194888 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.70.90.244, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952743049 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 09:59:04 [error] 23961#0: *1194889 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.70.90.244, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952743053 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin"
2023/09/29 10:06:46 [error] 23958#0: *1195050 open() "/www/wwwroot/app.beiyao.icu/api/v2" failed (2: No such file or directory), client: 172.71.210.46, server: app.beiyao.icu, request: "GET /api/v2 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://github.com/Innei/Shiro/issues/95"
你反代配炸了吧
From: Beiyao @.> Sent: Friday, September 29, 2023 10:14:19 AM To: Innei/Shiro @.> Cc: Asuka Miya @.>; Comment @.> Subject: Re: [Innei/Shiro] 使用vercel搭建时出现报错 (Issue #95)
nginx错误日志
2023/09/29 09:54:09 [error] 23958#0: 1194733 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.210.197, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952449158 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:56:26 [error] 23958#0: 1194788 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggregate/feed" failed (2: No such file or directory), client: 172.71.214.64, server: app.beiyao.icu, request: "GET /api/v2/aggregate/feed HTTP/2.0", host: "app.beiyao.icu" 2023/09/29 09:56:53 [error] 23958#0: 1194797 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggregate/feed" failed (2: No such file or directory), client: 172.71.219.65, server: app.beiyao.icu, request: "GET /api/v2/aggregate/feed HTTP/2.0", host: "app.beiyao.icu" 2023/09/29 09:57:40 [error] 23958#0: 1194832 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggregate/feed" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2//aggregate/feed HTTP/2.0", host: "app.beiyao.icu" 2023/09/29 09:57:48 [error] 23958#0: 1194832 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952668962 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:57:48 [error] 23958#0: 1194834 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952668971 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:58:02 [error] 23958#0: 1194834 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952683249 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:58:02 [error] 23958#0: 1194832 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.214.225, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952683254 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:58:36 [error] 23958#0: 1194875 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggr" failed (2: No such file or directory), client: 162.158.166.118, server: app.beiyao.icu, request: "GET /api/v2/aggr HTTP/2.0", host: "app.beiyao.icu" 2023/09/29 09:58:38 [error] 23958#0: 1194876 open() "/www/wwwroot/app.beiyao.icu/api/v2/aggre" failed (2: No such file or directory), client: 172.69.23.101, server: app.beiyao.icu, request: "GET /api/v2/aggre HTTP/2.0", host: "app.beiyao.icu" 2023/09/29 09:58:45 [error] 23958#0: 1194877 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.71.210.211, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952725940 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:58:45 [error] 23958#0: 1194879 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.71.210.211, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952725950 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:59:04 [error] 23958#0: 1194888 open() "/www/wwwroot/app.beiyao.icu/api/v2/master" failed (2: No such file or directory), client: 172.70.90.244, server: app.beiyao.icu, request: "GET /api/v2/master?t=1695952743049 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 09:59:04 [error] 23961#0: 1194889 open() "/www/wwwroot/app.beiyao.icu/api/v2/master/check_logged" failed (2: No such file or directory), client: 172.70.90.244, server: app.beiyao.icu, request: "GET /api/v2/master/check_logged?t=1695952743053 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://app.beiyao.icu/qaqdmin" 2023/09/29 10:06:46 [error] 23958#0: *1195050 open() "/www/wwwroot/app.beiyao.icu/api/v2" failed (2: No such file or directory), client: 172.71.210.46, server: app.beiyao.icu, request: "GET /api/v2 HTTP/2.0", host: "app.beiyao.icu", referrer: "https://github.com/Innei/Shiro/issues/95"
― Reply to this email directly, view it on GitHubhttps://github.com/Innei/Shiro/issues/95#issuecomment-1740221762, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQKIBDRNL4YSCQBKH72DP7TX4YVHXANCNFSM6AAAAAA5HRNDHQ. You are receiving this because you commented.Message ID: @.***>
你直接把 app.beiyao.icu 全反代到 127.0.0.1:2333 看看
17:33:27 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/links/all Path: /api/v2/links/all
17:33:27 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/subscribe/status Path: /api/v2/subscribe/status
17:33:28 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/links/all Path: /api/v2/links/all
17:33:28 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/subscribe/status Path: /api/v2/subscribe/status
17:33:31 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/links/all Path: /api/v2/links/all
17:33:31 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/subscribe/status Path: /api/v2/subscribe/status
17:33:36 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/subscribe/status Path: /api/v2/subscribe/status
17:33:37 WARN [AllExceptionsFilter] IP: 163.123.192.45 错误信息:(404) Cannot OPTIONS /api/v2/links/all Path: /api/v2/links/all
这个是访问前端时候后端的日志,但是我单独请求/api/v2/links/all就能有响应,在前端请求就不可以.
vercel 的环境变量错了吧
好了 证实是配置问题
好了 证实是配置问题
你咋解决的,我也是这个问题
Describe the bug
使用vercel按照教程正常部署时出错 显示 Build Failed Command "pnpm run build" exited with 1 以下是日志
Reproduction
无
System Info
Used Package Manager
pnpm
Validations