FileNotFoundError: [Errno 2] No such file or directory: 'resource.json'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Reproduce the example using NamedAPIResource('berry', 'chesto') on Python 3.6.5, first observing the 503 response and then the missing resource.json error. Trace the handling between the failed request and resource.json, and add a regression test if the project has a suitable test entry point. Done means the reported failure is handled without the subsequent FileNotFoundError.
Written by the indexing model from the issue text.
Description
code:
#win64 python3.6.5
import pokebase as pb
chesto = pb.NamedAPIResource('berry', 'chesto')
print(chesto.name)
first time error:
requests.exceptions.HTTPError: 503 Server Error: Service Temporarily Unavailable for url: http://pokeapi.co/api/v2/berry
then always:
FileNotFoundError: [Errno 2] No such file or directory: 'resource.json'
- Dominant language
- Python
- Stars
- 361
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PokeAPI/pokebase
-
Status update Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in PokeAPI/pokebase
Similar issues
-
agent-ready documentation needs-triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
instance instance add
Difficulty 1/5 Under an hour Newbie friendliness 72/100
searxng/searx-instances#939 · 1 comment ·
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100