Skip to content

bug: adjust default timeout for aggkit #1540

@joanestebanr

Description

@joanestebanr
  • Versions affected: > v0.8.2

Bug Report

The timeout for REST service an not enough to attend request based on mainnet that there are a lot of entries, so it require to review all timeout

Value that for sure need to be reviewed:

  • REST TIMEOUT: it is set to 2 seconds that is too low, sugestion:
[REST]
ReadTimeout = "5m"
WriteTimeout = "5m"
  • DATABSE TIMEOUT: currently is set to 60 seconds
defaultDBQueryTimeout="5m"

Reproduce

curl https://localhost:5577/bridge/v1/claims?network_id=20

Context

  • Version detected: v0.8.2 katana/mainnet
  • Running: bridge,aggoracle,aggsender
  • Discussion

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