Skip to content

Send request body as a string in Starlette#1041

Merged
basepi merged 5 commits into
elastic:masterfrom
basepi:fastapi1032
Feb 17, 2021
Merged

Send request body as a string in Starlette#1041
basepi merged 5 commits into
elastic:masterfrom
basepi:fastapi1032

Conversation

@basepi

@basepi basepi commented Feb 8, 2021

Copy link
Copy Markdown
Contributor

What does this pull request do?

I realized while debugging #1032 that we were erroneously sending the request body as a parsed-from-json object, rather than a string as the spec requires. This PR fixes that.

Related issues

Fixes #1032 (again)

@basepi basepi requested a review from beniwohli February 8, 2021 16:05
@ghost

ghost commented Feb 8, 2021

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1041 updated

  • Start Time: 2021-02-17T00:59:47.683+0000

  • Duration: 29 min 30 sec

  • Commit: f730adb

Test stats 🧪

Test Results
Failed 0
Passed 7941
Skipped 5735
Total 13676

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 1

Expand to view the steps failures

Shell Script
  • Took 4 min 38 sec . View more details on here
  • Description: ./tests/scripts/docker/run_tests.sh pypy-3 none

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 7941
Skipped 5735
Total 13676

@beniwohli beniwohli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@basepi basepi merged commit f49e23a into elastic:master Feb 17, 2021
beniwohli pushed a commit to beniwohli/apm-agent-python that referenced this pull request Sep 14, 2021
* Send request body as a string

* CHANGELOG

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

capture_body makes requests hangs / validation error

3 participants