Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST methods do not send JSON encoded data #2

Open
hans2520 opened this issue Mar 15, 2022 · 1 comment
Open

POST methods do not send JSON encoded data #2

hans2520 opened this issue Mar 15, 2022 · 1 comment

Comments

@hans2520
Copy link

Some DBT API POST methods, such as triggerRun, accept body JSON data structures as parameters (i.e. steps_override).

_post method of pydbtcloud does not offer a way to send the body with JSON-encoding -- as such, it is very difficult to properly use the DBT API for methods that utilize such parameters.

@hans2520
Copy link
Author

I recommend the pydbtcloud _post method be modified to accept a headers parameter, which can be used by the caller to add a Content-Type: application/json header, which will then allow proper JSON data to be sent to DBT API.

I'll submit a PR for this.

hans2520 added a commit to hans2520/py-dbt-cloud that referenced this issue Mar 15, 2022
* Allow DbtCloudReponse standard import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant