Alexa Smart Home Skill - Error 500 on discovery

Hi all,
I´ve wen´t through the documentation on how to create your own Alexa Smart Home Skill and everything seems to work without a flaw.
But when I launch the test in the Lambda Console I get the following error:

{
  "event": {
    "payload": {
      "type": "INTERNAL_ERROR",
      "message": "500 Internal Server Error\n\nServer got itself in trouble"
    }
  }
}

the logs on my server are telling me this:

2022-12-22 12:17:05.343 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 3.75.195.121 for /api/alexa using bearer token
2022-12-22 12:17:05.343 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/alexa to 3.75.195.121 (auth: True)
2022-12-22 12:17:05.343 DEBUG (MainThread) [homeassistant.components.alexa.intent] Received Alexa request: {'directive': {'header': {'namespace': 'Alexa.Discovery', 'name': 'Discover', 'payloadVersion': '3', 'messageId': '1bd5d003-31b9-476f-ad03-71d471922820'}, 'payload': {'scope': {'type': 'BearerToken'}}}}
2022-12-22 12:17:05.344 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 71, in post
    response = await async_handle_message(hass, message)
  File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 121, in async_handle_message
    req_type = req["type"]
TypeError: 'NoneType' object is not subscriptable

Anyone got any clue, how I can investigate which object/device/integration etc. is causing this issue?

My config for alexa isn´t something special, in the first instance I just wan´t to expose one light:

alexa:
  smart_home:
    locale: de-DE
    endpoint: https://api.amazonalexa.com/v3/events
    filter:
      include_entities:
        - light.diele

Cheers :slight_smile: