Alexa Custom Skill Errors (500 Internal Server Error)

Trying to get the Alexa Smart Home skill working. I am following the directions at Amazon Alexa Smart Home Skill - Home Assistant and Amazon Alexa Custom Skill - Home Assistant

I’ve got it set up and can access my instance from outside of my network and have gotten as far as testing the lambda function (Amazon Alexa Smart Home Skill - Home Assistant)

When I hit the test button the AWS console tells me:

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

…and down further in the log output I get:

START RequestId: 815a5683-9bac-49bd-9039-7128ab392146 Version: $LATEST
[DEBUG]	2022-04-20T16:07:35.950Z	815a5683-9bac-49bd-9039-7128ab392146	Event: {'directive': {'header': {'namespace': 'Alexa.Discovery', 'name': 'Discover', 'payloadVersion': '3', 'messageId': '1bd5d003-31b9-476f-ad03-71d471922820'}, 'payload': {'scope': {'type': 'BearerToken'}}}}
END RequestId: 815a5683-9bac-49bd-9039-7128ab392146
REPORT RequestId: 815a5683-9bac-49bd-9039-7128ab392146	Duration: 565.14 ms	Billed Duration: 566 ms	Memory Size: 128 MB	Max Memory Used: 44 MB	Init Duration: 153.03 ms

Home-Assistant Logs show me this:

2022-04-20 12:16:29 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-04-20 12:16:29 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/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 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, 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

Kind of at a loss as to how to proceed. This is my configuration.yaml:

default_config:
tts:
  - platform: google_translate
sun:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
switch: !include switch.yaml
frontend:
  themes: !include_dir_merge_named themes
wake_on_lan:
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
    - 192.168.86.0/24
stream:
ffmpeg:
nest:
  client_id: REMOVED
  client_secret: REMOVED
  project_id: REMOVED
google:
  client_id: REMOVED
  client_secret: REMOVED
mqtt_statestream:
  base_topic: homeassistant
  publish_attributes: true
  publish_timestamps: true
  include:
    domains:
      - climate
      - light
mqtt_discoverystream:
  base_topic: home-assistant
  publish_attributes: true
  publish_timestamps: true
  publish_discovery: true
owntracks:
  max_gps_accuracy: 200
  waypoints: true
  mqtt_topic: "owntracks/#"
  events_only: true
  region_mapping:
    home: home
spotify:
  client_id: REMOVED
  client_secret: REMOVED
life360:
  driving_speed: 18
  interval_seconds: 10
  max_gps_accuracy: 200
  max_update_wait:
    minutes: 45
  show_as_state:
    - driving
    - moving
  warning_threshold: 2
  error_threshold: 3
spotcast:
  sp_dc: REMOVED
  sp_key: REMOVED
sensor:
  platform: weatheralerts
  state: GA
  zone: 42
  county: 45
alexa:
  smart_home:
    locale: en-US
    endpoint: https://api.amazonalexa.com/v3/events
    filter:
      include_entities:
        - light.desk_lamp
      exclude_domains:
        - input_number
        - alarm_control_panel
        - alert
        - automation
        - camera
        - climate
        - cover
        - fan
        - group
        - input_boolean
        - binary_sensor
        - media_player
        - scene
        - script
        - sensor
logger:
  default: info
  logs:
    homeassistant.components.alexa: debug

I did search and found a couple of seemingly related topics Alexa Integration Error 500 and http-500 on Device Discovery caused by a faulty climate device. · Issue #65861 · home-assistant/core · GitHub which is why I am only including the one entity in my configration so I can test it out but am still getting the error.

Went through the configuration again to make sure I had checked nothing wrong and it is working now so I had to have typed something in wrong.