neo-go/pkg/services/oracle
Roman Khimov a0f9743515 oracle/neofs: avoid panic on failed neofs requests
2023-09-13T06:04:07.114Z        WARN        failed to perform oracle request        {"url": "neofs:BE2c15AbYnKdcsVh77LisCtjifoNEJUekANo1yhQ211X/FMDZvqUCqcduZa8HD6wJNsHWrJ6sqkgBveGuYuL38pvH", "error": "header: status: code = 3072 message = container not found"}
  panic: runtime error: invalid memory address or nil pointer dereference
  [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0xde7c8f]
  goroutine 302 [running]:
  github.com/nspcc-dev/neofs-sdk-go/client.(*PayloadReader).close(0x0?, 0x0?)
          github.com/nspcc-dev/neofs-sdk-go@v1.0.0-rc.11/client/object_get.go:200 +0x2f
  github.com/nspcc-dev/neofs-sdk-go/client.(*PayloadReader).Close(0x0?)
          github.com/nspcc-dev/neofs-sdk-go@v1.0.0-rc.11/client/object_get.go:229 +0x1e
  github.com/nspcc-dev/neo-go/pkg/services/oracle/neofs.clientCloseWrapper.Close({{0x14b45f8?, 0x0?}, 0xc0010a1380?})
          github.com/nspcc-dev/neo-go/pkg/services/oracle/neofs/neofs.go:97 +0x3c
  github.com/nspcc-dev/neo-go/pkg/services/oracle.(*Oracle).processRequest(0xc000255800, 0xc001dfa210, {0xb2d?, 0xc001ad8000?})
          github.com/nspcc-dev/neo-go/pkg/services/oracle/request.go:168 +0xee7
  github.com/nspcc-dev/neo-go/pkg/services/oracle.(*Oracle).runRequestWorker(0xc000255800)
          github.com/nspcc-dev/neo-go/pkg/services/oracle/request.go:36 +0xe5
  created by github.com/nspcc-dev/neo-go/pkg/services/oracle.(*Oracle).start
          github.com/nspcc-dev/neo-go/pkg/services/oracle/oracle.go:216 +0xae

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2023-09-13 10:50:42 +03:00
..
broadcaster *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
jsonpath *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
neofs oracle/neofs: avoid panic on failed neofs requests 2023-09-13 10:50:42 +03:00
testdata wallet: fix wallet version to conform to NEP-6 2022-08-07 22:41:40 +03:00
filter.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
filter_test.go jsonpath: restrict amount of intermediate objects 2022-02-28 13:18:34 +03:00
network.go *: add nolint comments to multiple errors wrapping 2023-03-15 16:38:01 +03:00
network_test.go *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
nodes.go *: do not get private key from Account to check if it CanSign() 2022-09-02 14:43:34 +03:00
oracle.go config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
oracle_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
request.go oracle: make use of ReadCloser returned from NeoFS's getters 2023-06-06 17:40:19 +03:00
request_test.go oracle: check response Content-Type 2021-07-12 13:13:48 +03:00
response.go oracle: make use of ReadCloser returned from NeoFS's getters 2023-06-06 17:40:19 +03:00
transaction.go [#2442] English Check 2022-05-04 19:48:27 +03:00