[PR #1492] [MERGED] fix 404 error message #2011

Closed
opened 2026-03-04 02:03:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1492
Author: @kontrollanten
Created: 12/10/2020
Status: Merged
Merged: 12/30/2020
Merged by: @gaul

Base: masterHead: kontrollanten-patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/s3fs.cpp (+1 -1)

📄 Description

Relevant Issue

Details

AWS can return an explicit 404 message that says that the key doesn't exist:

[INF]       curl.cpp:RequestPerform(2441): HTTP response code 404 was returned, returning ENOENT
[ERR] curl.cpp:CheckBucket(3439): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>my-key/</Key><RequestId>F571C209C9ACA4FC</RequestId><HostId>SBKSxWs3ULB8R8ev....</HostId></Error>
[CRT] s3fs.cpp:s3fs_check_service(3901): bucket not found(host=https://s3.amazonaws.com) - result of checking service.
[

It would be great if the message provided by AWS could be printed to the user as well, but I've no idea about how to that in C++.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/1492 **Author:** [@kontrollanten](https://github.com/kontrollanten) **Created:** 12/10/2020 **Status:** ✅ Merged **Merged:** 12/30/2020 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `kontrollanten-patch-1` --- ### 📝 Commits (1) - [`84395de`](https://github.com/s3fs-fuse/s3fs-fuse/commit/84395dee876531446ba4b870f406585be10c62ee) fix 404 error message ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/s3fs.cpp` (+1 -1) </details> ### 📄 Description ### Relevant Issue * #1377 ### Details AWS can return an explicit 404 message that says that the key doesn't exist: ``` [INF] curl.cpp:RequestPerform(2441): HTTP response code 404 was returned, returning ENOENT [ERR] curl.cpp:CheckBucket(3439): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>my-key/</Key><RequestId>F571C209C9ACA4FC</RequestId><HostId>SBKSxWs3ULB8R8ev....</HostId></Error> [CRT] s3fs.cpp:s3fs_check_service(3901): bucket not found(host=https://s3.amazonaws.com) - result of checking service. [ ``` It would be great if the message provided by AWS could be printed to the user as well, but I've no idea about how to that in C++. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:03:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2011
No description provided.