Bynder / bynder-python-sdk

SDK in Python for integration with Bynder
MIT License
8 stars 12 forks source link

HTTPError: 403 Client Error: Forbidden for url #45

Open tcubed opened 7 months ago

tcubed commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 6 months ago

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