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

HTTPError: 403 Client Error: Forbidden for url #45

Open
tcubed opened this issue Feb 19, 2024 · 4 comments
Open

HTTPError: 403 Client Error: Forbidden for url #45

tcubed opened this issue Feb 19, 2024 · 4 comments

Comments

@tcubed
Copy link

tcubed commented Feb 19, 2024

Hi,
I'm getting an "HTTPError: 403 Client Error: Forbidden for url: " error when I try to run the following with the SDK (I've hidden the token and the domain, obviously). This worked previously. I can sign-in as normal -- so the server is working. When I click on the that is returned in the error message that works, too (because I'm authenticated).

The returned url is my-domain/api/v4/metaproperties in this example.

I had the admin look at the token, and permissions still seem OK. Ideas?
Ted

from bynder_sdk import BynderClient
#PERMTOKEN='permanent_token'

bynder_client = BynderClient(
  domain='my-domain',
  permanent_token=PERMTOKEN
)

asset_bank_client = bynder_client.asset_bank_client

mp=asset_bank_client.meta_properties()
@TimBloembergen
Copy link

Hi @tcubed, a 403 can be returned if the user that is attached to your oAuth client has been deleted or if the permissions on the user have been changed. Scopes on the oAuth client need to match with user permissions as well.

@tcubed
Copy link
Author

tcubed commented Feb 20, 2024

But I'm using a permanent token. My permissions don't look like they have changed, nor the permissions associated with the permanent token.

@TimBloembergen
Copy link

Would you be able to send a ticket to support@bynder.com? If you can include your portal url and the first 5 characters of your permanent token, our support team will be able to look up to see if there's anything wrong with the token.

@tcubed
Copy link
Author

tcubed commented Feb 22, 2024

Done! Responded to ticket [Bynder - 209770] regarding this same issue. Including here for reference.

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

2 participants