serverless / dashboard

MIT License
26 stars 10 forks source link

Fix dev mode connection #771

Closed selcukcihan closed 1 year ago

selcukcihan commented 1 year ago

Description

  1. Related issue https://linear.app/serverless/issue/SC-1062/python-sdk-function-within-vpc-and-dev-mode-enabled-timesout-function#comment-6bac1208
  2. Flush dev-mode requests before finalizing the trace to make sure all events are captured in the trace (the integration tests were not failing because of this, the dev-mode extension request errors were not included in the trace)
  3. Fix the actual problem with how we use http.client, as stated in the docs

    Note that you must have read the whole response before you can send a new request to the server.

Testing done

selcukcihan commented 1 year ago

@medikoo ready for review 🙏