Skip to content

语音克隆上传阿里OSS报错 #101

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

Open
gavid0124 opened this issue Apr 12, 2025 · 1 comment
Open

语音克隆上传阿里OSS报错 #101

gavid0124 opened this issue Apr 12, 2025 · 1 comment

Comments

@gavid0124
Copy link

gavid0124 commented Apr 12, 2025

报错信息:"failed to upload file to OSS: operation error PutObject: Error returned by Service. \nHttp Status Code: 403.
配置方式都是按照文档说明的步骤,地域是【华东2上海】,阻止公共访问【未开启】,读写公共权限【公共读】,换了其他对象存储也不行。完整报错信息如下:
error service/subtitle_service.go:98 StartVideoSubtitleTask UploadFile err {"req": {"app_id":0,"url":"local:./uploads/222.mp4","origin_lang":"zh_cn","target_lang":"en","bilingual":1,"translation_subtitle_pos":1,"modal_filter":1,"tts":1,"tts_voice_code":2,"tts_voice_clone_src_file_url":"local:./uploads/audio_vocals00_00_00-00_00_07.mp3","replace":null,"language":"zh_cn","embed_subtitle_video_type":"none","vertical_major_title":"","vertical_minor_title":"","origin_language_word_one_line":0}, "error": "failed to upload file to OSS: operation error PutObject: Error returned by Service. \nHttp Status Code: 403. \nError Code: AccessDenied. \nRequest Id: 67F9BEC1897E3136328498FD. \nMessage: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint..\nEC: 0003-00001403.\nTimestamp: 2025-04-12 01:15:45 +0000 UTC.\nRequest Endpoint:

配置截图如下:

Image

@songbl
Copy link

songbl commented Apr 15, 2025

桶用上海的。
voiceCloneAudioUrl = fmt.Sprintf("https://%s.oss-cn-shanghai.aliyuncs.com/%s", s.OssClient.Bucket, fileKey)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants