You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.0.0.0:3301>crud.get("vets", 11111111-1111-1111-1111-111111111111)
----null-line: 75class_name: Geterr: "Failed to call get on storage-side: Call: Failed for 6558ab95-7c60-48fe-8d46-75d428033d54:Functionreturnedanerror: {\"code\":77,\"base_type\":\"ClientError\",\"type\":\"ClientError\",\"message\":\"Connectionrefused\",\"trace\":[{\"file\":\"builtin\\/box\\/net_box.lua\",\"line\":541}]}\nstacktraceback:\n\t...inic/cluster/.rocks/share/tarantool/crud/common/call.lua:138:
infunction 'single'\n\t...ng-petclinic/cluster/.rocks/share/tarantool/crud/get.lua:68:infunction 'func'\n\t...ic/cluster/.rocks/share/tarantool/crud/common/schema.lua:89:infunction <...ic/cluster/.rocks/share/tarantool/crud/common/schema.lua:84>\n\t[C]:
infunction 'pcall'\n\tbuiltin/box/console.lua:402: in function <builtin/box/console.lua:378>\n\t[C]:at0x0104178834"file: '...ng-petclinic/cluster/.rocks/share/tarantool/crud/get.lua'str: "Get: Failed to call get on storage-side: Call: Failed for 6558ab95-7c60-48fe-8d46-75d428033d54:Functionreturnedanerror: {\"code\":77,\"base_type\":\"ClientError\",\"type\":\"ClientError\",\"message\":\"Connectionrefused\",\"trace\":[{\"file\":\"builtin\\/box\\/net_box.lua\",\"line\":541}]}\nstacktraceback:\n\t...inic/cluster/.rocks/share/tarantool/crud/common/call.lua:138:
infunction 'single'\n\t...ng-petclinic/cluster/.rocks/share/tarantool/crud/get.lua:68:infunction 'func'\n\t...ic/cluster/.rocks/share/tarantool/crud/common/schema.lua:89:infunction <...ic/cluster/.rocks/share/tarantool/crud/common/schema.lua:84>\n\t[C]:
infunction 'pcall'\n\tbuiltin/box/console.lua:402: in function <builtin/box/console.lua:378>\n\t[C]:at0x0104178834"...
It would be possible to add some cause field, where the internal error would lie like a table, but no string
Something like that:
0.0.0.0:3301> crud.get("vets", 11111111-1111-1111-1111-111111111111)
---
- null
- line: 75
class_name: Get
err: "Failed to call get on storage-side: Call: Failed for 6558ab95-7c60-48fe-8d46-75d428033d54"
cause: - code: 78
base_type: ClientError
type: ClientError
message: Connection refused
trace:
....
file: '...ng-petclinic/cluster/.rocks/share/tarantool/crud/get.lua'
...
The text was updated successfully, but these errors were encountered:
Yeah, you are right, it is better to implement this in "tarantool/errors", after that in crud to fix the passing error through the new functionality. I will create a ticket in "tarantool/errors".
So it seems that migrating to box.error should solve the issue, if it will work fine with vshard, I think it's better to wait until 1.10.x end of support then.
It's hard to parse vshard's internal errors.
It would be possible to add some cause field, where the internal error would lie like a table, but no string
Something like that:
The text was updated successfully, but these errors were encountered: