Skip to content

[Bug]: often timeout for api #1152

@sylviahuang123

Description

@sylviahuang123

Contact Details

No response

Description

sometimes happened

Steps to reproduce

curl localhost:3001/api/accounts/erd1uskf6lu8x23mrxfm7gde28jaq6m5wxxws2uw5gf5z6yk6srel7mspeukls/delegation

On which network is the bug manifesting itself?

Mainnet

Relevant log output

Nov 23 08:40:30 sudo[17801]: {"body":null,"context":"ApiService","dd":{"service":"node","span_id":"1221748344080819597","trace_id":"3236560078014969912","version":"0.0.1"},"level":"error","message":"timeout of 30000ms exceeded","method":"GET","name":"AxiosError","timestamp":"2023-11-23T08:40:30.690Z","url":"https://delegation-api.multiversx.com/accounts/erd1uskf6lu8x23mrxfm7gde28jaq6m5wxxws2uw5gf5z6yk6srel7mspeukls/delegations","value":{"body":null,"message":"timeout of 30000ms exceeded","method":"GET","name":"AxiosError","url":"https://delegation-api.multiversx.com/accounts/erd1uskf6lu8x23mrxfm7gde28jaq6m5wxxws2uw5gf5z6yk6srel7mspeukls/delegations"}}
Nov 23 08:40:30 sudo[17801]: {"context":"DelegationService:AccountController.getDelegationForAddress","dd":{"service":"node","span_id":"1221748344080819597","trace_id":"3236560078014969912","version":"0.0.1"},"level":"error","message":"Error when getting account delegation details for address erd1uskf6lu8x23mrxfm7gde28jaq6m5wxxws2uw5gf5z6yk6srel7mspeukls","stack":["Error: \n    at OriginLogger.error (/mx-api-service/node_modules/@multiversx/sdk-nestjs-common/src/utils/origin.logger.ts:29:68)\n    at DelegationService.getDelegationForAddress (/mx-api-service/src/endpoints/delegation/delegation.service.ts:75:19)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at AccountController.getDelegationForAddress (/mx-api-service/src/endpoints/accounts/account.controller.ts:606:12)"],"timestamp":"2023-11-23T08:40:30.691Z"}
Nov 23 08:40:30 sudo[17801]: {"body":null,"context":"DelegationService:AccountController.getDelegationForAddress","dd":{"service":"node","span_id":"1221748344080819597","trace_id":"3236560078014969912","version":"0.0.1"},"level":"error","message":"timeout of 30000ms exceeded","method":"GET","name":"AxiosError","timestamp":"2023-11-23T08:40:30.691Z","url":"https://delegation-api.multiversx.com/accounts/erd1uskf6lu8x23mrxfm7gde28jaq6m5wxxws2uw5gf5z6yk6srel7mspeukls/delegations","value":{"body":null,"message":"timeout of 30000ms exceeded","method":"GET","name":"AxiosError","url":"https://delegation-api.multiversx.com/accounts/erd1uskf6lu8x23mrxfm7gde28jaq6m5wxxws2uw5gf5z6yk6srel7mspeukls/delegations"}}


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions