Skip to content

Downloading files of about 5Mb results in an "internal server error" #3750

Open
@IjzerenHein

Description

@IjzerenHein

Version

5.38.1 (but also applies to 5.33.0)

Operating System

Mac OSX

Browser

Google Chrome

What are the steps to reproduce this bug?

Setup a fresh Webiny project:

  • npx create-webiny-project my-filemanager-test
  • yarn webiny deploy
  • Finish the setup and complete the installation wizard

Upload a file and try to download it

  • Go to the Admin app and upload the attached file to the File Manager
  • Attempt to download the file
  • This results in the lambda returning "internal server error", instead of downloading the file

File that causes the problem

hein_test.mp4

What is the expected behavior?

The file should be downloaded successfully

What do you see instead?

{"message":"Internal Server Error"}

Additional information

The interesting part is that larger files and smaller files do work. However, we have several files in this ~5 Mb file range and they all seem to fail. It looks like it has something to do with the fact that the filemanager lambda switches to a 301 for larger files and serves smaller files directly. But somewhere in the middle it fails.

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions