Skip to content

Exception during tables error handling: 'NoneType' object has no attribute 'headers' #21416

Closed

Description

  • Package Name: azure-data-tables
  • Package Version: 12.1.0
  • Operating System: Linux
  • Python Version: 3.9

Loading entities from a table raises this exception:

Entrypoint raised exception <class 'AttributeError'>: 'NoneType' object has no attribute 'headers'

with the following traceback:

File "/app/bin/.venv/lib/python3.9/site-packages/joe_runtime/invocation.py", line 182, in _process_input_batch_inner
  entrypoint_yielded_object = next(entrypoint_output)
File "/app/bin/.venv/lib/python3.9/site-packages/pyresources.py", line 25, in wrapper
  yield from entrypoint_output
File "/app/bin/./main.py", line 163, in entrypoint
  self.reload_farms_in_optimization_license_keys()
File "/app/bin/./main.py", line 206, in reload_farms_in_optimization_license_keys
  self.farms_service.load_farms()}
File "/app/bin/.venv/lib/python3.9/site-packages/pto_farms/farms.py", line 138, in load_farms
  return [Farm._from_entity(farm) for farm in farms]
File "/app/bin/.venv/lib/python3.9/site-packages/pto_farms/farms.py", line 138, in <listcomp>
  return [Farm._from_entity(farm) for farm in farms]
File "/app/bin/.venv/lib/python3.9/site-packages/azure/core/paging.py", line 129, in __next__
  return next(self._page_iterator)
File "/app/bin/.venv/lib/python3.9/site-packages/azure/core/paging.py", line 76, in __next__
  self._response = self._get_next(self.continuation_token)
File "/app/bin/.venv/lib/python3.9/site-packages/azure/data/tables/_models.py", line 372, in _get_next_cb
  _process_table_error(error)
File "/app/bin/.venv/lib/python3.9/site-packages/azure/data/tables/_error.py", line 152, in _process_table_error
  decoded_error = _decode_error(storage_error.response, storage_error.message)
File "/app/bin/.venv/lib/python3.9/site-packages/azure/data/tables/_error.py", line 71, in _decode_error
  error_code = response.headers.get("x-ms-error-code")

The following warning was logged just before the exception was raised: DefaultAzureCredential failed to retrieve a token from the included credentials.

DefaultAzureCredential from package azure-identity of version 1.7.0 was used.

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

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Tablescustomer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions