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

【502】部署后偶发性502错误 #2560

Open
dragon-fish opened this issue Jun 30, 2024 · 0 comments
Open

【502】部署后偶发性502错误 #2560

dragon-fish opened this issue Jun 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@dragon-fish
Copy link

描述bug

RT,有时候是整个页面 502,有时候是某个 API 调用时 502。

image

检查 Next.js Functions 日志发现如下报错,供参考:

ERROR  Invoke Error 	{"errorType":"TypeError","errorMessage":"Cannot convert argument to a ByteString because the character at index 13 has a value of 28909 which is greater than 255.","stack":["TypeError: Cannot convert argument to a ByteString because the character at index 13 has a value of 28909 which is greater than 255.","    at webidl.converters.ByteString (node:internal/deps/undici/undici:1985:17)","    at _Headers.set (node:internal/deps/undici/undici:3344:35)","    at setCacheTagsHeaders (file:///var/task/.netlify/dist/run/headers.js:183:13)","    at file:///var/task/.netlify/dist/run/handlers/server.js:3165:5","    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","    at async server_default (file:///var/task/.netlify/dist/run/handlers/server.js:3137:10)","    at async file:///var/task/___netlify-server-handler.mjs:31:24","    at async Module.handler (file:///var/task/___netlify-server-handler.mjs:19:27)","    at async Runtime.handler (file:///var/task/___netlify-bootstrap.mjs:2:26296)","    at async Runtime.handleOnceStreaming (file:///var/runtime/index.mjs:1206:26)"]}

Trace:

TypeError: Cannot convert argument to a ByteString because the character at index 13 has a value of 28909 which is greater than 255.
    at webidl.converters.ByteString (node:internal/deps/undici/undici:1985:17)
    at _Headers.set (node:internal/deps/undici/undici:3344:35)
    at setCacheTagsHeaders (file:///var/task/.netlify/dist/run/headers.js:183:13)
    at file:///var/task/.netlify/dist/run/handlers/server.js:3165:5
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async server_default (file:///var/task/.netlify/dist/run/handlers/server.js:3137:10)
    at async file:///var/task/___netlify-server-handler.mjs:31:24
    at async Module.handler (file:///var/task/___netlify-server-handler.mjs:19:27)
    at async Runtime.handler (file:///var/task/___netlify-bootstrap.mjs:2:26296)
    at async Runtime.handleOnceStreaming (file:///var/runtime/index.mjs:1206:26)

期望的正常结果

正常访问

复现步骤

环境

  • 【必填】NotionNext版本 4.6.1
  • 【必填】主题 heo
  • 【必填】部署方案 netlify
  • 【可选】操作系统: all
  • 【可选】浏览器 Edge, Safari

补充说明

@dragon-fish dragon-fish added the bug Something isn't working label Jun 30, 2024
@tangly1024 tangly1024 changed the title 部署后偶发性502错误 【502】部署后偶发性502错误 Jul 8, 2024
@tangly1024 tangly1024 added the help wanted Extra attention is needed label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants