frostfs-node/pkg/services/object/get/v2
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
..
errors.go [#277] getsvc: Refactor errors 2023-04-28 14:03:12 +00:00
get_forwarder.go [#1103] node: Implement Get\Head requests for EC object 2024-04-24 18:15:53 +03:00
get_range_forwarder.go [#1112] node: Implement Range\RangeHash requests for EC object 2024-05-07 14:47:21 +03:00
get_range_hash.go [#891] getSvc: Refactor Get service V2 creation 2024-01-12 13:35:38 +03:00
head_forwarder.go [#1083] objsvc/v2: Properly check response status after forwarding 2024-05-15 12:04:06 +03:00
service.go [#1112] node: Implement Range\RangeHash requests for EC object 2024-05-07 14:47:21 +03:00
streamer.go [#496] node: Fix linter importas 2023-07-06 15:36:41 +03:00
util.go [#1083] objsvc/v2: Properly check response status after forwarding 2024-05-15 12:04:06 +03:00