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

Fix bug in routine where request body is deleted. #26

Merged
merged 1 commit into from
Apr 25, 2021

Conversation

mmangione
Copy link
Contributor

Repair a bug in the self._make_auth() routine where the OAuth1 client is generated before a request body is available. This causes all SuiteQL queries to fail, along with any other functions that require a request body. Resolve by storing the connection details in the class and calling that method again when we detect a post body.

Repair a bug in the self._make_auth() routine where the OAuth1 client is generated before a request body is available. This causes all SuiteQL queries to fail, along with any other functions that require a request body. Resolve by storing the connection details in the class and calling that method again when we detect a post body.
@jacobsvante
Copy link
Owner

Thank you for your contribution @mmangione. I will go ahead and merge this, and then push a commit that adds back the json.dumps_str call as well settings force_include_body to always be True.

I haven't found any sources that verify this but it seems that release 2021.1 is now requiring that the body to be part of the signing. (All body sending requests seem to fail, not only SuiteQL).

@jacobsvante jacobsvante merged commit b144612 into jacobsvante:master Apr 25, 2021
@jacobsvante jacobsvante mentioned this pull request Apr 25, 2021
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

Successfully merging this pull request may close these issues.

2 participants