Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

FileNotFoundError: [Errno 2] No such file or directory: 'resource.json'

Aperta
#13 12 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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'

Lingua principale
Python
Stelle
361
Fork
58
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PokeAPI/pokebase

Tutte le issue di PokeAPI/pokebase

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.