Skip to content

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

@karabo25

Description

@karabo25

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'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions