wayjam / picgo-plugin-s3

PicGo S3 插件
MIT License
116 stars 19 forks source link

使用B2 Bucket出现Inaccessible host #19

Closed wayne-ss closed 1 year ago

wayne-ss commented 1 year ago

PicGo版本:2.3.1 插件版本:1.2.2

配置如下

{
      "accessKeyID": "xxx",
      "secretAccessKey": "xxxxx",
      "bucketName": "xyz",
      "uploadPath": "{year}/{md5}.{extName}",
      "region": "us-west-004",
      "endpoint": "s3.us-west-004.backblazeb2.com",
      "urlPrefix": ""
}

得到以下error:

UnknownEndpoint: Inaccessible host: 'xyz.s3.us-west-004.backblazeb2.com' at port '80'. This service may not be available in the 'us-west-004' region.

若region为空,得到以下error: UnknownEndpoint: Inaccessible host: 'xyz.s3.us-west-004.backblazeb2.com' at port '80'. This service may not be available in the 'us-east-1' region.

设置"region": "us-west-004"是参考https://help.backblaze.com/hc/en-us/articles/360047425453-Getting-Started-with-the-S3-Compatible-API

wayne-ss commented 1 year ago

endpoint前添加https://可解决问题