Open utdrmac opened 3 years ago
Another example:
* upload completely sent off: 320 out of 320 bytes
< HTTP/1.1 500 Internal Server Error
< content-length: 259
< content-type: application/json
<
[{"kind":"temporary","id":"failure","msg":"Error while applying operation onhFNDM8v9h6A2p4F5uB1roCBbM2fwcUwxQNcAPYc9rhyuRSnZa:\nbranch refused (Error:\n Previously revealed manager key for contract tz1T1ScbsER3x2gex5LDL87uvGx9hwvNg1bq.\n)"}]
client.go:17, regRPCError does not properly match RPC errors:
Here's the actual result when attempting manually:
When attempting to use client.InjectionOperation(), json.Unmarshal assumes result is string and decode fails https://github.com/goat-systems/go-tezos/blob/430d10683e4d342fa6999fe5e9aadf45d219b52f/rpc/independent.go#L77
json: cannot unmarshal array into Go value of type string