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

[Bug] CF R2--S3图片上传失败 #2965

Closed
AiharaMahiru opened this issue Jun 21, 2024 · 8 comments
Closed

[Bug] CF R2--S3图片上传失败 #2965

AiharaMahiru opened this issue Jun 21, 2024 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@AiharaMahiru
Copy link

📦 Environment

Vercel

📌 Version

1.1.3

💻 Operating System

Windows

🌐 Browser

Edge

🐛 Bug Description

这是我的配置信息(已处理),当我上传文件时,遇到“文件上传失败,请检查网络连接或稍后再试
详情: TRPCClientError: UNAUTHORIZED”的错误,日志为
'''
[POST] [middleware: "src/middleware"] /trpc/edge/upload.createS3PreSignedUrl status=200
[POST] /trpc/edge/upload.createS3PreSignedUrl?batch=1&nxtPtrpc=upload.createS3PreSignedUrl status=401
Error in tRPC handler (edge) on path: upload.createS3PreSignedUrl
TRPCError: UNAUTHORIZED
at (src/libs/trpc/middleware/password.ts:21:12)
at (node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:152:0)
at (node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:182:0)
at (node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:137:0)
at (node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs:195:0)
at (node_modules/@trpc/server/dist/adapters/fetch/fetchRequestHandler.mjs:32:0)
at (node_modules/next/dist/esm/server/future/route-modules/app-route/module.js:195:0)
at (node_modules/next/dist/esm/server/future/route-modules/app-route/module.js:124:0)
at (node_modules/next/dist/esm/server/future/route-modules/app-route/module.js:257:0) {
code: 'UNAUTHORIZED',
name: 'TRPCError'
}
'''

📷 Recurrence Steps

screen

🚦 Expected Behavior

No response

📝 Additional Information

No response

@AiharaMahiru AiharaMahiru added the 🐛 Bug Something isn't working | 缺陷 label Jun 21, 2024
@lobehubbot
Copy link
Member

👀 @AiharaMahiru

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@AiharaMahiru AiharaMahiru changed the title [Bug] CF R2--S3图片上传授权失败 [Bug] CF R2--S3图片上传失败 Jun 21, 2024
@arvinxx
Copy link
Contributor

arvinxx commented Jun 21, 2024

是不是还有access code

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is there any access code?

@AiharaMahiru
Copy link
Author

是不是还有access code

还真是的,非常感谢。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is there any access code?

Really, thank you very much.

@lobehubbot
Copy link
Member

@AiharaMahiru

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@AHA1GE
Copy link
Contributor

AHA1GE commented Jun 25, 2024

是不是还有access code

还真是的,非常感谢。

我遇到了相同问题。请问是如何解决的?
---Edit: 解决了,在设置中填入ACCESS CODE即可

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is there any access code?

Really, thank you very much.

I encountered the same problem. How was it solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

4 participants