TypeError: <lambda>() принимает ровно 2 аргумента (дано 3)

у меня проблема в этом коде в wsgi:

if settings.UWSGI_DJANGO_WARMUP:
    application({
        'REQUEST_METHOD': 'OPTIONS',
        'SERVER_NAME': '127.0.0.1',
        'SERVER_PORT': 80,
        'PATH_INFO': '/ping',
        'wsgi.input': sys.stdin,
    }, lambda x, y: None)  # call the entry-point function

я получаю эту ошибку:


TypeError: <lambda>() takes exactly 2 arguments (3 given)
(4 additional frame(s) were not displayed)
...
  File "sentry_sdk/integrations/wsgi.py", line 116, in __call__
    _sentry_start_response, start_response, span
  File "newrelic/api/wsgi_application.py", line 668, in _nr_wsgi_application_wrapper_
    result = wrapped(environ, _start_response)
  File "django/core/handlers/wsgi.py", line 214, in __call__
    start_response(force_str(status), response_headers)
  File "newrelic/api/wsgi_application.py", line 636, in _start_response
    response_headers + additional_headers, *args)
  File "sentry_sdk/integrations/wsgi.py", line 137, in _sentry_start_response
    return old_start_response(status, response_headers, exc_info)

TypeError: <lambda>() takes exactly 2 arguments (3 given)

в лямбда-функции почему она принимает 3 аргумента?

Вернуться на верх