Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect API used for REST get checks #776

Closed
roman-khimov opened this issue Apr 8, 2024 · 0 comments
Closed

Incorrect API used for REST get checks #776

roman-khimov opened this issue Apr 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working I4 No visible changes S4 Routine U1 Critically important to resolve quickly

Comments

@roman-khimov
Copy link
Member

Current Behavior

https://rest.fs.neo.org/7ZVSQHtioVRiDT2btN9xEmQhczXV9vryCEAHUawfD8Sc/7-1712215152/index.html#suites/b0824002f091fe5a726d96781ac79bb6/85b0fd6543aaf345/
https://rest.fs.neo.org/7ZVSQHtioVRiDT2btN9xEmQhczXV9vryCEAHUawfD8Sc/7-1712215152/index.html#suites/b0824002f091fe5a726d96781ac79bb6/1a6c86144e72c39e/

AssertionError: Expected Failed to get object via HTTP gate:
request: /v1/get/2zZWXPrPoQyCA9pqefqFNyr6nhbYaQ86nf2L8YRZjgXH/peace/peace,
response: {"message":"invalid address: invalid object id: decode base58: invalid base58 digit ('/')","type":"GW"}
,
status code: 400 Bad Request to match 404 Not Found

But gateway is correct, /peace/peace is not an OID for get API.

Expected Behavior

Use OID or use get_by_attribute and let REST gw do its job.

@roman-khimov roman-khimov added bug Something isn't working U1 Critically important to resolve quickly S4 Routine I4 No visible changes labels Apr 8, 2024
evgeniiz321 pushed a commit to evgeniiz321/neofs-testcases that referenced this issue Apr 11, 2024
Signed-off-by: Evgeniy Zayats <zayatsevgeniy@nspcc.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I4 No visible changes S4 Routine U1 Critically important to resolve quickly
Projects
None yet
Development

No branches or pull requests

2 participants