frostfs-node/pkg/services/object/get
Evgenii Stratonikov 300654b045 [#1083] objsvc/v2: Properly check response status after forwarding
Previously we had cryptic error:
```
debug   get/remote.go:38        remote call failed      {"component": "Object.Get service", "request": "HEAD", "address": "9sTxoVrhJ7WBtXQfK2NJ7zDV5yCF7BPLKK1XTxYPdGsP/BbHV4KZZ8y2BPqAT5kyjdHRLkfbtY2xf5uYoMVqxACn1", "raw": false, "local": false, "with session": false, "with bearer": false, "error": "unexpected header type <nil>"}
```
Now we have and expected error:
```
debug   get/remote.go:38        remote call failed      {"component": "Object.Get service", "request": "HEAD", "address": "D2rqaMG4D2VHdv3HKky8UYSYmwQFH2v9oXXqtyRZPTMy/BbHV4KZZ8y2BPqAT5kyjdHRLkfbtY2xf5uYoMVqxACn1", "raw": false, "local": false, "with session": false, "with bearer": false, "error": "status: code = 2049 message = object not found"}
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-05-15 12:04:06 +03:00
..
v2 [#1083] objsvc/v2: Properly check response status after forwarding 2024-05-15 12:04:06 +03:00
assemble.go [#1112] node: Fix race warning for GetObjectAndWritePayload 2024-05-07 14:47:21 +03:00
assembleec.go [#1112] node: Fix race warning for GetObjectAndWritePayload 2024-05-07 14:47:21 +03:00
assembler.go [#1077] objectsvc: Fix possible panic in GetRange() 2024-05-07 14:47:21 +03:00
assemblerec.go [#1112] node: Implement Range\RangeHash requests for EC object 2024-05-07 14:47:21 +03:00
container.go [#277] getsvc: Refactor errors 2023-04-28 14:03:12 +00:00
errors.go [#277] getsvc: Rename and reorder code 2023-04-28 14:03:12 +00:00
get.go [#1103] node: Implement Get\Head requests for EC object 2024-04-24 18:15:53 +03:00
get_test.go [#1112] Fix issue from gofumpt 2024-05-07 14:47:21 +03:00
getrangeec_test.go [#1112] node: Add test for Range request for EC object 2024-05-07 14:47:21 +03:00
local.go [#1103] node: Implement Get\Head requests for EC object 2024-04-24 18:15:53 +03:00
prm.go [#277] getsvc: Rename and reorder code 2023-04-28 14:03:12 +00:00
remote.go [#1103] node: Implement Get\Head requests for EC object 2024-04-24 18:15:53 +03:00
request.go [#1103] node: Implement Get\Head requests for EC object 2024-04-24 18:15:53 +03:00
service.go [#1103] node: Implement Get\Head requests for EC object 2024-04-24 18:15:53 +03:00
status.go [#1103] node: Implement Get\Head requests for EC object 2024-04-24 18:15:53 +03:00
types.go [#277] getsvc: Rename and reorder code 2023-04-28 14:03:12 +00:00
writer.go [#539] getsvc: Write payload direct to out stream 2023-07-27 17:02:08 +03:00