• Почему Vercel на Python Flask не отправляет MP3, MP4 файлы?

    KeyDevSS
    @KeyDevSS Автор вопроса
    Vindicar, привет. Попробовал твой метод не сработало. Убрал try-except получил ошибку

    [ERROR] [1686475348817] LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413.
    Traceback (most recent call last):
    File "/var/runtime/bootstrap.py", line 60, in
    main()
    File "/var/runtime/bootstrap.py", line 57, in main
    awslambdaricmain.main([os.environ["LAMBDA_TASK_ROOT"], os.environ["_HANDLER"]])
    File "/var/runtime/awslambdaric/__main__.py", line 21, in main
    bootstrap.run(app_root, handler, lambda_runtime_api_addr)
    File "/var/runtime/awslambdaric/bootstrap.py", line 405, in run
    handle_event_request(
    File "/var/runtime/awslambdaric/bootstrap.py", line 176, in handle_event_request
    lambda_runtime_client.post_invocation_result(
    File "/var/runtime/awslambdaric/lambda_runtime_client.py", line 83, in post_invocation_result
    runtime_client.post_invocation_result(
    RuntimeError: Failed to post invocation response
    RequestId: dd0f90f8-f76b-468b-aa7c-b3a0e7120eef Error: Runtime exited with error: exit status 1
    Runtime.ExitError