jifa icon indicating copy to clipboard operation
jifa copied to clipboard

Error when uploading files using oss method

Open mark8s opened this issue 1 year ago • 13 comments

image

What's the problem?

mark8s avatar Mar 04 '24 08:03 mark8s

The endpoint seems invalid. It should be something like oss-cn-hangzhou.aliyuncs.com.

https://help.aliyun.com/zh/oss/user-guide/regions-and-endpoints?spm=a2c4g.11186623.0.0.34fa7368q2ZZjr

D-D-H avatar Mar 04 '24 09:03 D-D-H

@D-D-H Why can only domain names be used? The server I built myself should also need support.

mark8s avatar Mar 04 '24 09:03 mark8s

The server I built myself should also need support.

Do you mean that the OSS server is deployed by yourself?

We use OSS standard SDK to handle OSS transfer requests.

Can you provide the document that describes how to deploy a personal OSS server, so that I can have a deep investigation?

D-D-H avatar Mar 04 '24 10:03 D-D-H

@D-D-H I am currently using the locally built minio service to store files. Is there any way to use it?

mark8s avatar Mar 05 '24 01:03 mark8s

The protocols of Aliyun OSS and minio may not be different. Can you obtain an url from minio and then try the "URL" method ? I'm not familiar with minio, even don't know whether is it possible to obtain an url from minio.

yanglong1010 avatar Mar 05 '24 06:03 yanglong1010

like this https://www.hxstrive.com/subject/minio/684.htm ? @yanglong1010

mark8s avatar Mar 05 '24 06:03 mark8s

yes, try presignedGetObject

yanglong1010 avatar Mar 05 '24 07:03 yanglong1010

@yanglong1010 You mean I use this? image

mark8s avatar Mar 05 '24 07:03 mark8s

According to the document, MinIO is compatible with the S3 protocol.

Have you tried S3?

D-D-H avatar Mar 05 '24 07:03 D-D-H

@yanglong1010 You mean I use this? image

yes

yanglong1010 avatar Mar 05 '24 07:03 yanglong1010

@yanglong1010 This approach is not appropriate

mark8s avatar Mar 05 '24 07:03 mark8s

@mark8s

Has this problem been solved?

D-D-H avatar Mar 07 '24 03:03 D-D-H

@D-D-H haha~ No, I haven't tried it in s3 mode yet. This problem will not block my current work for the time being.

mark8s avatar Mar 07 '24 03:03 mark8s