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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

13.10.3 Broken image uploading (Object Storage) #10419

Closed
RaZZlom opened this issue Mar 26, 2023 · 6 comments
Closed

13.10.3 Broken image uploading (Object Storage) #10419

RaZZlom opened this issue Mar 26, 2023 · 6 comments
Labels
鈿狅笍bug? This might be a bug

Comments

@RaZZlom
Copy link
Contributor

RaZZlom commented Mar 26, 2023

馃挕 Summary

After uploading image to drive can't open this image.

馃グ Expected Behavior

See image.

馃が Actual Behavior

"The image cannot be loaded" error.

When copy image URL from drive and open it in new tab "Not Found The resource could not be found." error.

Screenshot 2023-03-26 at 11-47-56 A Quiet Place
Screenshot 2023-03-26 at 11-50-30 A Quiet Place
小薪懈屑芯泻 褝泻褉邪薪邪 芯褌 2023-03-26 11-51-13

馃摑 Steps to Reproduce

  1. Upload image to drive.
  2. Post note with this image.

馃搶 Environment

Misskey version: 13.10.3
Your OS: Debian GNU/Linux 11 (bullseye) x86_64
Your browser: Firefox, Vivaldi Android.

@RaZZlom RaZZlom added the 鈿狅笍bug? This might be a bug label Mar 26, 2023
@nexryai
Copy link
Contributor

nexryai commented Mar 26, 2023

Please check #10408

@RaZZlom
Copy link
Contributor Author

RaZZlom commented Mar 26, 2023

Please check #10408

I don't have Error: Region is missing and region in Control Panel filled.

@nexryai
Copy link
Contributor

nexryai commented Mar 26, 2023

Please check that you have only the domain (like example.com, not https://example.com) set in the endpoint settings. If it still does not work, try changing the value of s3ForcePathStyle.

@RaZZlom
Copy link
Contributor Author

RaZZlom commented Mar 26, 2023

Please check that you have only the domain (like example.com, not https://example.com) set in the endpoint settings. If it still does not work, try changing the value of s3ForcePathStyle.

Oh, this works. But with previously versions of Misskey i don't have this error. 馃
Thank you very much, @nexryai ! 鉂わ笍

Leave this empty if you are using AWS S3, otherwise specify the endpoint as '' or ':', depending on the service you are using.

Maybe need to improve this help message?

@RaZZlom RaZZlom closed this as completed Mar 26, 2023
@nexryai
Copy link
Contributor

nexryai commented Mar 26, 2023

Maybe need to improve this help message?

In PR #10410, if the region is set to empty, Misskey will use the value undefined for the region to prevent errors. So from the next version, there should be no problem even if the region is empty. However, I think that explanations should be added to important configuration items such as s3ForcePathStyle and that major changes should be made known in CHANGELOG.

@yszkst
Copy link
Contributor

yszkst commented Mar 26, 2023

if the region is set to empty, Misskey will use the value undefined for the region to prevent errors.So from the next version, there should be no problem even if the region is empty.

This is not correct. Region is necessary for aws-sdk even if the object storage service don't use Region.
If specified region is empty, aws-sdk trys to find a value from a config file or environment variables.

This is a clear explanation.
https://docs.digitalocean.com/products/spaces/reference/s3-sdk-examples/

Due to an AWS-specific behavior in all versions of the SDK except Python 3, to successfully create a new bucket, you must specify an AWS region, such as us-east-1, in your configuration. This is because, when creating a bucket, the SDK sends an entirely different payload if a custom region is specified, which results in an error. Region does not affect any other examples listed in this page.

This issue's error behaivor comes from #10363 with bump aws-sdk version from v2 to v3. I missed out the spec chages and including them to CHANGELOG and updating descriptions on the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
鈿狅笍bug? This might be a bug
Projects
None yet
Development

No branches or pull requests

3 participants