Error with 0.36.1 launching a script

I have this code and I receive the below error in log

Script

  forest_sounds:
    alias: Forest sounds
    sequence:
      - service: script.turn_on
        data:
          entity_id: script.projector
      - alias: Media play forestsounds
        service: media_player.play_media
        data:
          entity_id: media_player.cast_living
          media_content_type: video/mp4
          media_content_id: https://xxx.duckdns.org/local/forestsounds.mp4

Log

17-01-17 20:08:21 homeassistant.core: Bus:Handling <Event state_changed[L]: old_state=<state media_player.cast_living=idle; friendly_name=Cast living, media_content_id=https://xxx.duckdns.org/local/oceansounds.mp4, app_id=CC1AD845, media_position=0, is_volume_muted=False, volume_level=1.0, media_position_updated_at=2017-01-17T20:06:52.430117+01:00, supported_media_commands=21437, app_name=Default Media Receiver @ 2017-01-17T20:05:27.372660+01:00>, entity_id=media_player.cast_living, new_state=<state media_player.cast_living=idle; friendly_name=Cast living, media_content_id=https://xxx.duckdns.org/local/forestsounds.mp4, app_id=CC1AD845, media_position=0, is_volume_muted=False, volume_level=1.0, media_position_updated_at=2017-01-17T20:08:21.214587+01:00, supported_media_commands=21437, app_name=Default Media Receiver @ 2017-01-17T20:05:27.372660+01:00>>
17-01-17 20:08:21 plexapi: GET http://192.168.1.12:32400/clients?X-Plex-Token=xxx
17-01-17 20:08:21 plexapi: GET http://192.168.1.12:32400/status/sessions?X-Plex-Token=xxx
17-01-17 20:08:21 aiohttp.server: Error handling request
Traceback (most recent call last):
  File "/home/hass/.homeassistant/deps/aiohttp/file_sender.py", line 131, in _sendfile_fallback
    yield from resp.drain()
  File "/home/hass/.homeassistant/deps/aiohttp/web_reqrep.py", line 888, in drain
    yield from self._resp_impl.transport.drain()
  File "/usr/lib/python3.4/asyncio/streams.py", line 299, in drain
    yield from self._protocol._drain_helper()
  File "/usr/lib/python3.4/asyncio/streams.py", line 197, in _drain_helper
    yield from waiter
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
concurrent.futures._base.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hass/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request
    resp = yield from self._handler(request)
  File "/home/hass/.homeassistant/deps/aiohttp/web.py", line 249, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 62, in static_middleware_handler
    resp = yield from handler(request)
  File "/home/hass/.homeassistant/deps/aiohttp/web_urldispatcher.py", line 486, in _handle
    ret = yield from self._file_sender.send(request, filepath)
  File "/home/hass/.homeassistant/deps/aiohttp/file_sender.py", line 201, in send
    yield from self._sendfile(request, resp, f, count)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 30, in sendfile
    yield from orig_sendfile(request, resp, fobj, count)
  File "/home/hass/.homeassistant/deps/aiohttp/file_sender.py", line 60, in _sendfile_system
    yield from self._sendfile_fallback(request, resp, fobj, count)
  File "/home/hass/.homeassistant/deps/aiohttp/file_sender.py", line 137, in _sendfile_fallback
    resp.set_tcp_nodelay(True)
  File "/home/hass/.homeassistant/deps/aiohttp/web_reqrep.py", line 737, in set_tcp_nodelay
    resp_impl.transport.set_tcp_nodelay(value)
  File "/home/hass/.homeassistant/deps/aiohttp/parsers.py", line 253, in set_tcp_nodelay
    self._socket.setsockopt(socket.IPPROTO_TCP, CORK, False)
OSError: [Errno 9] Bad file descriptor

Try to upgrade to the newest version

I have the same problem, webserver fails on every version > 0.35.3. I currently use a workaround with dropbox direct links for all my scripts and automations.

Hmm, works fine here

Strange, in my setup the streaming of audio files allways fails. The pictures that I use in device trackers and as icon pictures which are stored in the same folder show up fine.

There is an open issue logged on github for this:
https://github.com/home-assistant/home-assistant/issues/5375

why would work with dropbox link and not a link to a file in the pi3?

Will try tonight, I since then upgraded few times HASS, now on 0.41

p.s. have not tried dropbox