Skip to content

'AuthorizedSession' object has no attribute 'configure_mtls_channel' #513

Closed
@keiththompson

Description

@keiththompson

This error has popped up on all our health checks in the last couple of hours. I believe it may be from an upstream change, perhaps in service discovery.

Environment details

  • OS type and version: Amazon Linux 2
  • Python version: 3.7
  • pip version: 19.3.1
  • google-cloud-bigquery version: 1.22.0

Steps to reproduce

  1. Create a query job

Code example

self.client = bigquery.Client(project=project_id, credentials=credentials)
...
query_job = self.client.query(query)
result = query_job.result()
...

Stack trace

query_job = self.client.query(query)
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/bigquery/client.py", line 2144, in query
    query_job._begin(retry=retry)
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/bigquery/job.py", line 3047, in _begin
    super(QueryJob, self)._begin(client=client, retry=retry)
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/bigquery/job.py", line 630, in _begin
    retry, method="POST", path=path, data=self.to_api_repr()
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/bigquery/client.py", line 475, in _call_api
    return call()
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/api_core/retry.py", line 286, in retry_wrapped_func
    on_error=on_error,
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/api_core/retry.py", line 184, in retry_target
    return target()
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/_http.py", line 479, in api_request
    timeout=timeout,
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/_http.py", line 337, in _make_request
    method, url, headers, data, target_object, timeout=timeout
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/_http.py", line 374, in _do_request
    return self.http.request(
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/_http.py", line 157, in http
    return self._client._http
  File "/conjura/deployments/dycj6x5x8/venv/lib64/python3.7/site-packages/google/cloud/client.py", line 187, in _http
    self._http_internal.configure_mtls_channel(self._client_cert_source)
AttributeError: 'AuthorizedSession' object has no attribute 'configure_mtls_channel'

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-bigquery API.type: processA process-related concern. May include testing, release, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions