rollbar / pyrollbar

Error tracking and logging from Python to Rollbar
https://docs.rollbar.com/docs/python/
MIT License
213 stars 135 forks source link

Replace `httpx.post` `data` kwarg with `content` #425

Closed ayharano closed 1 year ago

ayharano commented 1 year ago

Description of the change

As described in https://github.com/encode/httpx/blame/08a557e3e2b9220b90ee21238e316206ffa65d36/docs/compatibility.md?plain=1#L70-L90 the data parameter in httpx.post was intended to provide compatibility from requests, but as it does not provide anymore for this end, it issues a warning

DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.

when using pyrollbar is used with asyncio

Type of change

Checklists

Development

Code review