Skip to content

AttributeError: 'DopplerSDK' object has no attribute 'set_bearer_token' #28

Description

@crestonbunch

This seems to directly contradict the docs: https://github.com/DopplerHQ/python-sdk/blob/main/src/dopplersdk/services/README.MD

I see the sample.py uses set_access_token. Your docs seem to be stale, but they're linked directly from doppler.com: https://docs.doppler.com/docs/sdk-python.

Consider improving your doc tests.

(infra-buildpacks) creston@creston-macbook-pro infra-buildpacks % uv run python           
Python 3.12.10 (main, Apr  9 2025, 03:49:38) [Clang 20.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from dopplersdk import DopplerSDK
>>> sdk = DopplerSDK()
>>> sdk.set_bearer_token("abc")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'DopplerSDK' object has no attribute 'set_bearer_token'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions