-
Notifications
You must be signed in to change notification settings - Fork 12
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
400 Client Error: Bad request #37
Comments
Hi @lukeallister it might be related to it. However, we made a release-fix for that issue for oauth2 here |
I updated to release 1.1.5 but unfortunately still get the 'Bad request' error. |
Hi @lukeallister thanks for your reply. It seems like this isn't related to the fix the other issue then. We'll create a ticket and look into it. |
Thanks! Do you need anything more from me for testing? Do we know if this is a python-sdk issue or an API issue? (Do you know if other clients handle this correctly?) |
Hi @lukeallister I was able to reproduce the issue and it seems to be related how the form data is encoded from the SDK. Behind the scenes the Bynder Public API call is made to Here is an example of making a request directly to the endpoint with Postman and with The payload of the Python example is in the form of Adding a snippet of code I tested with with your addition of
The main points from this example is to convert the dictionary to a JSON string and then URL encode the string correctly to ensure it matches the payload structure of {data: {name: ...} etc. |
That works; thanks! I didn't expect the urlencoded content type mixed in with json (like
That would let us could interact with this in the same way as the Does that make sense? |
@lukeallister
Since When available @TimBloembergen could clarify on it. |
Hi @lukeallister , If you would like to have these new methods available in the SDK, I would like to request that you would create a PR with the changes. Our team currently does not have the bandwidth to work on this ourselves. For the SDKs we' like to rely on our community to collaborate on these projects. If you would be up in collobating, a PR would need to meet the folllowing:
|
I suspect that this is related to #33 but I wanted to ask.
I am extending the AssetBankClient to create metaproperty option (as mentioned in #30):
Using
OAuth2permanent access token, I'm getting an error triggered from theutil.py
post function,Is this the same issue, or different?
[edit: I'm actually using a permanent token with full read/write permissions for Assets, Collections, Metaproperties, and Analytics]
The text was updated successfully, but these errors were encountered: