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

Document settings credentials_uri raise parameter error #582

Closed
littleczp opened this issue Jan 26, 2021 · 1 comment
Closed

Document settings credentials_uri raise parameter error #582

littleczp opened this issue Jan 26, 2021 · 1 comment
Assignees
Labels
api: spanner Issues related to the googleapis/python-spanner-django 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

@littleczp
Copy link

littleczp commented Jan 26, 2021

Documents settings.py

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 Error Stack
image

Reference Source Code

def connect(
    instance_id,
    database_id,
    project=None,
    credentials=None,
    pool=None,
    user_agent=None,
):

seem only support create a credentials class

branch: master

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-django API. label Jan 26, 2021
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Jan 27, 2021
@HemangChothani HemangChothani self-assigned this Feb 2, 2021
@HemangChothani HemangChothani added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Feb 2, 2021
@HemangChothani
Copy link
Contributor

PR which resolve this issue :googleapis/python-spanner#221

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-django 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

No branches or pull requests

3 participants