Skip to content

Internal server error when querying a closed position #574

@cardosofede

Description

@cardosofede

Describe the bug

call with this arguments:

curl -X 'GET' \
  'http://localhost:15888/trading/clmm/position-info?connector=meteora&chainNetwork=solana-mainnet-beta&positionAddress=A4ox95bAcANLdi8naDKexSYVpWkBGX6gqYTNZHjsnKyf' \
  -H 'accept: application/json'

the response is:

{
  "statusCode": 500,
  "error": "Internal Server Error",
  "message": "An unexpected error occurred"
}

the position was closed, but instead of returning an internal server error we should return something like not found.

Steps to reproduce

Release version

development

Type of installation

Docker

Attach required files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions