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

spanner db_api: credentials_uri raise parameter error #220

Closed
HemangChothani opened this issue Feb 2, 2021 · 0 comments · Fixed by #221
Closed

spanner db_api: credentials_uri raise parameter error #220

HemangChothani opened this issue Feb 2, 2021 · 0 comments · Fixed by #221
Assignees
Labels
api: spanner Issues related to the googleapis/python-spanner API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@HemangChothani
Copy link
Contributor

Documents settings.py for python-spanner-django

DATABASES = {
    'default': {
        'ENGINE': 'django_spanner',
        'PROJECT': '<GCP_project_id>',
        'INSTANCE': '<instance_id>',
        'NAME': '<database_name>',
        'OPTIONS': {
            'credentials_uri': '<credentials_uri>',
        },
    },
}

TypeError: connect() got an unexpected keyword argument 'credentials_uri'

Reference issue : googleapis/python-spanner-django#582

The paramter credentials_uri was there when db_api is part of python-spanner-django, but it removed or replaced by credentials parameter when it moved to python-spanner.

@HemangChothani HemangChothani self-assigned this Feb 2, 2021
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner API. label Feb 2, 2021
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Feb 3, 2021
@skuruppu skuruppu added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 3, 2021
@yoshi-automation yoshi-automation removed the triage me I really want to be triaged. label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants