AnswerDotAI / AnswerDotAI/ghapi
recv_hdrs issue with parallel headers
- Dominant language
- Python
- Stars
- 685
- Forks
- 70
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
When following the documentation on parallel pages
```python
gh_repos = pages(api.repos.list_for_org, api.last_page(), 'github').concat()
len(gh_repos)
```
I get the following error:
```shell
File "/workspaces/test/github.py", line 25, in
gh_repos = pages(api.repos.list_for_org, api.last_page(), 'github').concat()
File "/home/vscode/.local/lib/python3.9/site-packages/ghapi/page.py", line 57, in last_page
header = self.recv_hdrs.get('Link', '')
File "/home/vscode/.local/lib/python3.9/site-packages/ghapi/core.py", line 116, in __getattr__
def __getattr__(self,k): return self.groups[k] if 'groups' in vars(self) and k in self.groups else stop(AttributeError(k))
File "/home/vscode/.local/lib/python3.9/site-packages/fastcore/basics.py", line 202, in stop
raise e
AttributeError: recv_hdrs
```
Should I have extra parameters in my `api initialization`? I currently am just doing
```python
api = GhApi(token="abunchofrandomchars")
```
Contributor guide
Assessment
This issue has not been assessed yet.