mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-05 14:02:10 +00:00
Merge pull request #911 from ggtakec/master
Added detail error message when HTTP 301/307 status
This commit is contained in:
commit
0c9a8932f7
@ -2085,7 +2085,9 @@ int S3fsCurl::RequestPerform(void)
|
|||||||
// Service response codes which are >= 300 && < 500
|
// Service response codes which are >= 300 && < 500
|
||||||
switch(LastResponseCode){
|
switch(LastResponseCode){
|
||||||
case 301:
|
case 301:
|
||||||
|
case 307:
|
||||||
S3FS_PRN_ERR("HTTP response code 301(Moved Permanently: also happens when bucket's region is incorrect), returning EIO. Body Text: %s", (bodydata ? bodydata->str() : ""));
|
S3FS_PRN_ERR("HTTP response code 301(Moved Permanently: also happens when bucket's region is incorrect), returning EIO. Body Text: %s", (bodydata ? bodydata->str() : ""));
|
||||||
|
S3FS_PRN_ERR("The options of url and endpoint may be useful for solving, please try to use both options.");
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
case 400:
|
case 400:
|
||||||
|
Loading…
Reference in New Issue
Block a user