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

{'code': 2, 'description': 'Request not allowed (incorrect access_key)', 'parameter': 'access_key'} #90

Open
karabo25 opened this issue Oct 19, 2024 · 0 comments

Comments

@karabo25
Copy link

karabo25 commented Oct 19, 2024

Hey team, this is frustrating. please help me fix this issue, the role ha full access.

import messagebird

api_key = 'YVBbo*************************************COl'

client = messagebird.Client(api_key)
balance = client.balance()
print("Balance:", balance)
    

Error:

Traceback (most recent call last):
  File "C:\Users\khomo\Developer\projects\neighbor_watch\testing.py", line 6, in <module>
    balance = client.balance()
  File "C:\Users\khomo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\messagebird\client.py", line 130, in balance
    return Balance().load(self.request('balance'))
  File "C:\Users\khomo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\messagebird\client.py", line 94, in request
    raise (ErrorException([Error().load(e) for e in response_json['errors']]))
messagebird.client.ErrorException: {'code': 2, 'description': 'Request not allowed (incorrect access_key)', 'parameter': 'access_key'}
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