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] 配置腾讯云的COS上传图片出错 #3461

Closed
alphandbelt1 opened this issue Aug 13, 2024 · 27 comments
Closed

[Bug] 配置腾讯云的COS上传图片出错 #3461

alphandbelt1 opened this issue Aug 13, 2024 · 27 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@alphandbelt1
Copy link

📦 Environment

Other

📌 Version

1.9.7

💻 Operating System

Windows

🌐 Browser

Edge

🐛 Bug Description

本地编译部署。已经使用API验证AK,SK,桶等配置是OK的,不知道问题在哪里。image
image

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@alphandbelt1 alphandbelt1 added the 🐛 Bug Something isn't working | 缺陷 label Aug 13, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Aug 13, 2024
@lobehubbot
Copy link
Member

👀 @alphandbelt1

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@RidiculousBuffal
Copy link

可能需要在这个地方填写ACCESS_CODE:
Snipaste_2024-08-13_17-32-03

# S3
ENV S3_ACCESS_KEY_ID="**" \
    S3_SECRET_ACCESS_KEY="**" \
    NEXT_PUBLIC_S3_DOMAIN="**" \
    S3_ENDPOINT="https://cos.a**" \
    S3_BUCKET="**"\
    ACCESS_CODE="here~"

@lobehubbot
Copy link
Member

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


You may need to fill in ACCESS_CODE here:
Snipaste_2024-08-13_17-32-03

#S3
ENV S3_ACCESS_KEY_ID="**" \
    S3_SECRET_ACCESS_KEY="**" \
    NEXT_PUBLIC_S3_DOMAIN="**" \
    S3_ENDPOINT="https://cos.a**" \
    S3_BUCKET="**"\
    ACCESS_CODE="here~"

@alphandbelt1
Copy link
Author

ACCESS_CODE这个我直接在.env.local写死了,应该一样的吧?

@lobehubbot
Copy link
Member

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


I wrote ACCESS_CODE directly in .env.local. It should be the same, right?

@alphandbelt1
Copy link
Author

在界面上更新ACCESS_CODE的时候,又有这个问题了。。。
image

@alphandbelt1
Copy link
Author

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here

@RidiculousBuffal
Copy link

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

我填的是腾讯云的对外访问链接,就是 https://*****.cos.ap-shanghai.myqcloud.com

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here

I filled in the external access link of Tencent Cloud, which is https://*****.cos.ap-shanghai.myqcloud.com

@RidiculousBuffal
Copy link

ACCESS_CODE这个我直接在.env.local写死了,应该一样的吧?

可以看一下 #3413 这个issue 我一开始也没有在客户端手动写 然后就提示你这个错误 😭😭😭

@lobehubbot
Copy link
Member

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


I programmed ACCESS_CODE directly in .env.local. It should be the same, right?

You can take a look at issue #3413. I didn’t write it manually on the client at first, and then I prompted you with this error 😭😭😭

@alphandbelt1
Copy link
Author

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

我填的是腾讯云的对外访问链接,就是 https://*****.cos.ap-shanghai.myqcloud.com

image
你看下我填的这个,应该就是这样的吧。

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here

I filled in the external access link of Tencent Cloud, which is https://*****.cos.ap-shanghai.myqcloud.com

image
Look at what I filled out, it should look like this.

@RidiculousBuffal
Copy link

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

我填的是腾讯云的对外访问链接,就是 https://*****.cos.ap-shanghai.myqcloud.com

image 你看下我填的这个,应该就是这样的吧。

完全一致的
image

你的储存桶是最近建的嘛,官网上面说2024.1之后建立的桶要用自定义域名:就是那个NEXT_PUBLIC_S3_DOMAIN
image

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here

I filled in the external access link of Tencent Cloud, which is https://*****.cos.ap-shanghai.myqcloud.com

![image](https://private-user-images.githubusercontent.com/81293467/357368973-e1b77ecd-e864-4f1a-8e73-228a7a08918a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..U2T 0YJluAdpfpU1mkrjJbthMMmIr__52e-CyS6uOAis) Take a look and let me fill it out This should be like this.

completely consistent
image

Your storage bucket was built recently. The official website says that buckets created after 2024.1 must use a custom domain name: the NEXT_PUBLIC_S3_DOMAIN
image

@alphandbelt1
Copy link
Author

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

我填的是腾讯云的对外访问链接,就是 https://*****.cos.ap-shanghai.myqcloud.com

image 你看下我填的这个,应该就是这样的吧。

完全一致的 image

你的储存桶是最近建的嘛,官网上面说2024.1之后建立的桶要用自定义域名:就是那个NEXT_PUBLIC_S3_DOMAIN image

是新建的,那我看看这个

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here

I filled in the external access link of Tencent Cloud, which is https://*****.cos.ap-shanghai.myqcloud.com

![image](https://private-user-images.githubusercontent.com/81293467/357368973-e1b77ecd-e864-4f1a-8e73-228a7a08918a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..U2 T0YJluAdpfpU1mkrjJbthMMmIr__52e-CyS6uOAis) Look at me This should be what you filled out.

Exactly the same![image](https://private-user-images.githubusercontent.com/124059108/357369966-afbf7b2a-6bb0-4450-9d9b-341734c3806c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.ey Jpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NDQzNzUsIm5iZiI6MTcyMzU0NDA3NSwicGF0aCI6Ii8xMj QwNTkxMDgvMzU3MzY5OTY2LWFmYmY3YjJhLTZiYjAtNDQ1MC05ZDliLTM0MTczNGMzODA2Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0 lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxM1QxMDE0MzVaJlgtQW16LUV4cGlyZXM9MzAw JlgtQW16LVNpZ25hdHVyZT1kMjI3ZTIxYThhNDMyYWFmNjQwNjhlNGViOGEzNjIwOWEyOTYw NDA5ZTc2YTQyMjQyNmNlOGZkNjUwZTZhOTE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZh Y3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.och-cTA_0te- kHY1izLZMcP2CVbJ3C7wbXcKS8GbeJ4)

Your storage bucket was built recently. The official website says that buckets created after 2024.1 must use a custom domain name: that is NEXT_PUBLIC_S3_DOMAIN![image](https://private-user-images.githubusercontent.com/124059108/357370701 -8e0492cf-c9fd-4acb-b37d-58711bf5c1ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb25 0ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NDQzNzUsIm5iZiI6MTcyMzU0NDA3NSwicGF0aCI6Ii8xMjQwNTkxMDgvMzU3MzcwNzAxLThlMDQ5MmNmLWM5ZmQtNGFjYi1iMzdkLTU4 NzExYmY1YzFhYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXot Q3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEzJTJGdXMtZWFzdC0xJ TJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxM1QxMDE0MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYTNhZjVkYWQ2MjYwZDVmN2E3 ZDYxMzAwNjA0N2UzZjM0Yzk5ZDU3ZGM0YjQzMDY0MWRmZjgwYWRkZDIxNTRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.SNFd9 F68NmwrVmfeB8XxXz6TLB58cbeGpIo3afropf0)

It's newly built, let me take a look at this

@RidiculousBuffal
Copy link

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

我填的是腾讯云的对外访问链接,就是 https://*****.cos.ap-shanghai.myqcloud.com

image 你看下我填的这个,应该就是这样的吧。

完全一致的 image

你的储存桶是最近建的嘛,官网上面说2024.1之后建立的桶要用自定义域名:就是那个NEXT_PUBLIC_S3_DOMAIN image

是新建的,那我看看这个

但是我看你那个问题报的错是invalid key length 是不是key(access code)的长度不够之类的问题

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here

I filled in the external access link of Tencent Cloud, which is https://*****.cos.ap-shanghai.myqcloud.com

![image](https://private-user-images.githubusercontent.com/81293467/357368973-e1b77ecd-e864-4f1a-8e73-228a7a08918a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..U 2T0YJluAdpfpU1mkrjJbthMMmIr__52e-CyS6uOAis) Take a look This should be what I filled out.

Exactly the same![image](https://private-user-images.githubusercontent.com/124059108/357369966-afbf7b2a-6bb0-4450-9d9b-341734c3806c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9. eyJpc3 MiOiJna jQwNTkxMDgvMzU3MzY5OTY2LWFmYmY3YjJhLTZiYjAtNDQ1MC05ZDliLTM0MTczNGMzODA2Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS 0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxM1QxMDE0MzVaJlgtQW16LUV4cGlyZXM9Mz AwJlgtQW16LVNpZ25hdHVyZT1kMjI3ZTIxYThhNDMyYWFmNjQwNjhlNGViOGEzNjIwOWEyOT YwNDA5ZTc2YTQyMjQyNmNlOGZkNjUwZTZhOTE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdC ZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.och-cTA_0te -kHY1izLZMcP2CVbJ3C7wbXcKS8GbeJ4)

Your storage bucket was built recently. The official website says that buckets created after 2024.1 must use a custom domain name: that is NEXT_PUBLIC_S3_DOMAIN! [image](https://private-user-images.githubusercontent.com/124059108/ 357370701-8e0492cf-c9fd-4acb-b37d-58711bf5c1ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1 YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NDQzNzUsIm5iZiI6MTcyMzU0NDA3NSwicGF0aCI6Ii8xMjQwNTkxMDgvMzU3MzcwNzAxLThlMDQ5MmNmLWM5ZmQtNGFj yield GdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxM1Qx MDE0MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYTNhZjVkYWQ2Mj YwZDVmN2E3ZDYxMzAwNjA0N2UzZjM0Yzk5ZDU3ZGM0YjQzMDY0MWRmZjgwYWRkZDIxNTRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faW Q9MCJ9.SNFd9F68NmwrVmfeB8XxXz6TLB58cbeGpIo3afropf0)

It is newly created, let me take a look at this

But I see that the error reported in your question is invalid key length. Is it because the length of the key (access code) is not enough?

@alphandbelt1
Copy link
Author

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

我填的是腾讯云的对外访问链接,就是 https://*****.cos.ap-shanghai.myqcloud.com

image 你看下我填的这个,应该就是这样的吧。

完全一致的 image
你的储存桶是最近建的嘛,官网上面说2024.1之后建立的桶要用自定义域名:就是那个NEXT_PUBLIC_S3_DOMAIN image

是新建的,那我看看这个

但是我看你那个问题报的错是invalid key length 是不是key(access code)的长度不够之类的问题

这个是我在界面上填ACCESS-CODE的时候报的错误。

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here

I filled in the external access link of Tencent Cloud, which is https://*****.cos.ap-shanghai.myqcloud.com

![image](https://private-user-images.githubusercontent.com/81293467/357368973-e1b77ecd-e864-4f1a-8e73-228a7a08918a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.. U2T0YJluAdpfpU1mkrjJbthMMmIr__52e-CyS6uOAis) You see This is what I filled out, it should be like this.

Exactly the same![image](https://private-user-images.githubusercontent.com/124059108/357369966-afbf7b2a-6bb0-4450-9d9b-341734c3806c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 .eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NDQzNzUsIm5iZiI6MTcyMzU0NDA3NSwicGF0aCI6Ii8x MjQwNTkxMDgvMzU3MzY5OTY2LWFmYmY3YjJhLTZiYjAtNDQ1MC05ZDliLTM0MTczNGMzODA2Yy5 wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0 lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxM1QxMDE0MzVaJlgtQW16LUV4cGlyZXM9MzA wJlgtQW16LVNpZ25hdHVyZT1kMjI3ZTIxYThhNDMyYWFmNjQwNjhlNGViOGEzNjIwOWEyOTY wNDA5ZTc2YTQyMjQyNmNlOGZkNjUwZTZhOTE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZ hY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.och- cTA_0te-kHY1izLZMcP2CVbJ3C7wbXcKS8GbeJ4)
Your storage bucket was built recently. The official website says that buckets created after 2024.1 must use a custom domain name: that is NEXT_PUBLIC_S3_DOMAIN![image](https://private-user-images.githubusercontent.com/124059108 /357370701-8E0492CF-C9FD-4ACB-B37D-58711BF5C1AC.Png?jwt=eyjhbg CIOIJIUZISINR5CCIKPXVCJ9.EYJPC3MIOJNAXROD IJOICMF3LMDPDPDPDPDPDPDPDPDPDPDZZXJJB250ZW50LMNVBSISIMTLESI6IMTLETUILCJLEHA IOje3MJM1ndqzusim5izii6MTCYMZU3nswicgf0aci6MJQWNTKXMDG VMZU3MZCWNZAXLTHLMDQ5MNMLWMLWM5ZMQTNGFJYI1IMZDKLTU4NZEXYMY1YZFhy LZGVUDGLHBD1BVKNPRFLMU0E1M1BRSZRJIWMJQWodezjtjgdxmtzdc0xjgCZHD3JLCXVMWC1BXT0ZT0YMDGXM 1QXMDE0MZVAJLGTQW16luv4CGLYZXM9MZAWJLGTQW16LVNPZ25HDHVYZT0YYTN HZJVKYWQ2MJYWZMN2E3ZDYXMZAWN2JM0YZDU3ZGM0yjqzmdy0m WRMZJGWYWRKZDINTRJLJLGTQW16LVNPZ25LZEHLYWRLCNM9AG9ZDCZHY3RVCL9 begpio3afropf0)

It's newly created, let me take a look at this

But I think the error reported in your question is invalid key length. Is it because the length of the key (access code) is not enough?

This is an error reported when I filled in ACCESS-CODE on the interface.

@alphandbelt1
Copy link
Author

NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN想问下你这个是填的什么呢

我填的是腾讯云的对外访问链接,就是 https://*****.cos.ap-shanghai.myqcloud.com

image 你看下我填的这个,应该就是这样的吧。

完全一致的 image
你的储存桶是最近建的嘛,官网上面说2024.1之后建立的桶要用自定义域名:就是那个NEXT_PUBLIC_S3_DOMAIN image

是新建的,那我看看这个

但是我看你那个问题报的错是invalid key length 是不是key(access code)的长度不够之类的问题

我又重新试了一下,在cloudfare上也开了对象存储,还是一样的问题。后面把环境变量里面的ACCESS_CODE注释了,又是另外的报错了。估计还是哪里逻辑判断有问题,等他们下周发布新版本看再吧。

@lobehubbot
Copy link
Member

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


NEXT_PUBLIC_S3_DOMAIN

NEXT_PUBLIC_S3_DOMAIN I would like to ask what you filled in here.

I filled in the external access link of Tencent Cloud, which is https://*****.cos.ap-shanghai.myqcloud.com

![image](https://private-user-images.githubusercontent.com/81293467/357368973-e1b77ecd-e864-4f1a-8e73-228a7a08918a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.. U2T0YJluAdpfpU1mkrjJbthMMmIr__52e-CyS6uOAis) You see This is what I filled out, it should be like this.

Exactly the same![image](https://private-user-images.githubusercontent.com/124059108/357369966-afbf7b2a-6bb0-4450-9d9b-341734c3806c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 .eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NDQzNzUsIm5iZiI6MTcyMzU0NDA3NSwicGF0aCI6Ii8x MjQwNTkxMDgvMzU3MzY5OTY2LWFmYmY3YjJhLTZiYjAtNDQ1MC05ZDliLTM0MTczNGMzODA2Yy5 wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0 lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxM1QxMDE0MzVaJlgtQW16LUV4cGlyZXM9MzA wJlgtQW16LVNpZ25hdHVyZT1kMjI3ZTIxYThhNDMyYWFmNjQwNjhlNGViOGEzNjIwOWEyOTY wNDA5ZTc2YTQyMjQyNmNlOGZkNjUwZTZhOTE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZ hY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.och- cTA_0te-kHY1izLZMcP2CVbJ3C7wbXcKS8GbeJ4)
Your storage bucket was built recently. The official website says that buckets created after 2024.1 must use a custom domain name: that is NEXT_PUBLIC_S3_DOMAIN![image](https://private-user-images.githubusercontent.com/124059108 /357370701-8E0492CF-C9FD-4ACB-B37D-58711BF5C1AC.Png?jwt=eyjhbg CIOIJIUZISINR5CCIKPXVCJ9.EYJPC3MIOJNAXROD IJOICMF3LMDPDPDPDPDPDPDPDPDPDPDZZXJJB250ZW50LMNVBSISIMTLESI6IMTLETUILCJLEHA IOje3MJM1ndqzusim5izii6MTCYMZU3nswicgf0aci6MJQWNTKXMDG VMZU3MZCWNZAXLTHLMDQ5MNMLWMLWM5ZMQTNGFJYI1IMZDKLTU4NZEXYMY1YZFhy LZGVUDGLHBD1BVKNPRFLMU0E1M1BRSZRJIWMJQWodezjtjgdxmtzdc0xjgCZHD3JLCXVMWC1BXT0ZT0YMDGXM 1QXMDE0MZVAJLGTQW16luv4CGLYZXM9MZAWJLGTQW16LVNPZ25HDHVYZT0YYTN HZJVKYWQ2MJYWZMN2E3ZDYXMZAWN2JM0YZDU3ZGM0yjqzmdy0m WRMZJGWYWRKZDINTRJLJLGTQW16LVNPZ25LZEHLYWRLCNM9AG9ZDCZHY3RVCL9 begpio3afropf0)

It is newly created, let me take a look at this

But I think the error reported in your question is invalid key length. Is it because the key (access code) is not long enough?

I tried again and enabled object storage on cloudfare, but still had the same problem. Later, I commented out ACCESS_CODE in the environment variable, and another error was reported. It is estimated that there is still a problem with the logical judgment. Let's wait and see when they release a new version next week.

@SAnBlog
Copy link

SAnBlog commented Aug 15, 2024

看来数据库版本问题还是不少,等一个稳定版本

@lobehubbot
Copy link
Member

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


It seems that there are still many problems with the database version. We are waiting for a stable version.

@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Aug 22, 2024
@lobehubbot
Copy link
Member

@alphandbelt1

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

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
Archived in project
Development

No branches or pull requests

4 participants