Exctract frostfs error details #18

Closed
opened 2023-03-13 11:12:49 +00:00 by dkirillov · 0 comments
Collaborator

If something goes wrong we log and return errors:

$ curl  http://localhost:8082/get/2ERNbbkgoj4n7XjZ88nfE7uNzaP4fPWdR2ekqd7yz85X/E6GP8KnKCQc7RzABDbBGphhAL8ZdQPr7VreQsHGwMfHr 

could not receive object: read header: status: code = 2048 message = access to object operation denied

but sometimes error have inner details:

$ frostfs-cli object head --cid 2ERNbbkgoj4n7XjZ88nfE7uNzaP4fPWdR2ekqd7yz85X --oid E6GP8KnKCQc7RzABDbBGphhAL8ZdQPr7VreQsHGwMfHr

rpc error: read object header via client: status: code = 2048 message = access to object operation denied: access to operation OBJECT_HEAD is denied by basic ACL check

It would be nice to extract them in http-gw too

If something goes wrong we log and return errors: ``` $ curl http://localhost:8082/get/2ERNbbkgoj4n7XjZ88nfE7uNzaP4fPWdR2ekqd7yz85X/E6GP8KnKCQc7RzABDbBGphhAL8ZdQPr7VreQsHGwMfHr could not receive object: read header: status: code = 2048 message = access to object operation denied ``` but sometimes error have inner details: ``` $ frostfs-cli object head --cid 2ERNbbkgoj4n7XjZ88nfE7uNzaP4fPWdR2ekqd7yz85X --oid E6GP8KnKCQc7RzABDbBGphhAL8ZdQPr7VreQsHGwMfHr rpc error: read object header via client: status: code = 2048 message = access to object operation denied: access to operation OBJECT_HEAD is denied by basic ACL check ``` It would be nice to extract them in http-gw too
alexvanin added this to the v0.27.0 milestone 2023-07-12 08:13:10 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
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: TrueCloudLab/frostfs-http-gw#18
There is no content yet.