Skip to content

Bug: Error 502 Bad Gateway on large requests for file invalidation server #1007

@juanpablosalas

Description

@juanpablosalas

Bug Description

The file invalidation server will show a 502 Bad gateway when a request is sent with a large number of files (~ >800). The invalidation request is correctly generated after a few minutes according to the container logs but this leaves the user clueless.

Reproduction Steps

  1. Send a large request (>1000 files) to https://file-invalidation.app.cern.ch/api/upload/ in dry_run_mode
  2. After a while loading the screen will show 502 Bad gateway error

Expected Behavior

Show a specific error message to the user if needed.

Possible Solution

Handle the post request in batches or use a loading page.

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    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