AttributeError: 'Exposure' object has no attribute 'request' in _batch method

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
api

Research direction

Open exposure.py at line 68 and compare _batch with the parent CTXConnection method named in the issue. Verify the batch request no longer raises the reported AttributeError, and check the project's existing tests or request path for confirmation.

Written by the indexing model from the issue text.

Description

In exposure.py line 68, _batch calls self.request(...) but the method on the parent CTXConnection class is named self._request(...).
Traceback:
AttributeError: 'Exposure' object has no attribute 'request'. Did you mean: '_request'?
Fix: Change line 68 from self.request(endpoint=endpoint, query=q) to self._request(endpoint=endpoint, query=q).
I have a branch ready with this fix if a PR would be welcome.

Dominant language
Python
Stars
20
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from USEPA/ctx-python

All issues in USEPA/ctx-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.