Skip to content
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

Batch delete operations failed for unable to process request #1443

Open
Xuanwo opened this issue Jan 9, 2024 · 2 comments
Open

Batch delete operations failed for unable to process request #1443

Xuanwo opened this issue Jan 9, 2024 · 2 comments
Labels

Comments

@Xuanwo
Copy link

Xuanwo commented Jan 9, 2024

When making a batch request to fake-gce-server, it responds with "unable to process request" for every part.

--349bb61a455a0215f770b8fbec1504b2ed685bbeb93f6beca85a9dfbbe8e\r\n
Content-Id: 0\r\n
Content-Type: application/http\r\n
\r\n
HTTP/1.1 400 Bad Request\r\n
Connection: close\r\n
Content-Type: text/plain; charset=utf-8\r\n
X-Content-Type-Options: nosniff\r\n\
r\n
unable to process request\n
\r\n
--349bb61a455a0215f770b8fbec1504b2ed685bbeb93f6beca85a9dfbbe8e\r\n
  • The same request works fine on real gcs service.
  • I attempted to set the log-level to debug, but couldn't find any additional meaningful information.
  • Version 1.4.7
@fsouza fsouza added the bug label Jan 10, 2024
@fsouza
Copy link
Owner

fsouza commented Jan 10, 2024

Thanks for reporting! Would you be able to share a snippet reproducing the issue?

@zjregee
Copy link

zjregee commented Jan 16, 2024

When using fake-gcs-server with Docker,

docker run -d --name fake-gcs-server -p 4443:4443 -v ${PWD}/data:/data fsouza/fake-gcs-server -scheme http

and sending an HTTP request (sent by the opendal project) using the GCS batch API like this,

POST /batch/storage/v1 HTTP/1.1
content-type: multipart/mixed; boundary=opendal-ade6d51e-686a-48a8-925b-80f3a77b16a4
content-length: 424
accept: */*
host: 127.0.0.1:4443

--opendal-ade6d51e-686a-48a8-925b-80f3a77b16a4
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 0

DELETE /storage/v1/b/bucket_1/o/test_0.txt HTTP/1.1

--opendal-ade6d51e-686a-48a8-925b-80f3a77b16a4
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 1

DELETE /storage/v1/b/bucket_1/o/test_1.txt HTTP/1.1

--opendal-ade6d51e-686a-48a8-925b-80f3a77b16a4--

it reproduces this issue.

HTTP/1.1 200 OK
Content-Type: multipart/mixed; boundary=e1d04395bf35360ac8c8839f19c2f89d85124b7c2b97985186c851a3f276
Date: Tue, 16 Jan 2024 06:31:25 GMT
Content-Length: 590

--e1d04395bf35360ac8c8839f19c2f89d85124b7c2b97985186c851a3f276
Content-Id: 0
Content-Type: application/http

HTTP/1.1 400 Bad Request
Connection: close
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff

unable to process request

--e1d04395bf35360ac8c8839f19c2f89d85124b7c2b97985186c851a3f276
Content-Id: 1
Content-Type: application/http

HTTP/1.1 400 Bad Request
Connection: close
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff

unable to process request

--e1d04395bf35360ac8c8839f19c2f89d85124b7c2b97985186c851a3f276--

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

No branches or pull requests

3 participants