Skip to content

Bug report: 503 Errors When Payload Exceeds ~37KB #7

@ShreyaKakhandiki

Description

@ShreyaKakhandiki

Summary:
When using postHistory.js to submit dummy histories to the backend, I encountered repeated 503 Service Unavailable responses when the payload size exceeds approximately 37 KB. This appears to be a soft limit that is not explicitly documented in the API or Lambda configuration but consistently affects posting larger families.

Steps to Reproduce:

  1. Find a FASTA alignment and dummy tree with many (>160 from my testing) sequences (enough to push payload size above 37 KB). PF0003 from the pfam database accomplishes this. The corresponding files are attached to this issue.

  2. Run:

node aws/scripts/postHistory.js PF00003 PF00003.28_dummy.nh.txt PF00003.28.fa.txt shreyak

PF00003.28_dummy.nh.txt

PF00003.28.fa.txt

What I’ve Tried:

  • Reduced the alignment to fewer (160 or less) sequences → POST succeeded.
  • Confirmed that the timeout is set to 1 minute.
  • Monitored CloudWatch logs: no signs of timeout or memory exhaustion in the Lambda logs for the failed case.
  • Used identical command and tree/FASTA structure as successful runs — only the number of sequences (and resulting payload size) changed.

Hypothesis:

It may be that the evoldeeds-crud Lambda is either:

  • Hitting a payload size or parsing threshold due to memory/CPU limitations (currently 128 MB).
  • Failing silently before processing the full request, triggering a generic 503.

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