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

Status code 200 when error in execution handler

Aperta
#442 11 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
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
flask, python
Ambito
api, backend

Direzione di ricerca

Inizia tracciando la gestione delle eccezioni in Process.py#L232 e il flusso della risposta attraverso Service.py#L326 e Service.py#L335. Riproduci un errore del handler e verifica che la risposta HTTP riporti lo stato 500 anziché 200, mantenendo il comportamento della richiesta non riuscita.

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

Descrizione

bug

Description

Hey,

I believe there's an issue with the status code. when the handler itself raises an error the Process.py catches it (lines below) sets the wps_request as failed (attached below) but then continues like no error occurred. As result the status code of the HTTP request is 200 and should be 500

https://github.com/geopython/pywps/blob/ec1d90f7424598a662f68c28e4de4452e2bdeaf3/pywps/app/Process.py#L232

I can think of 2 solutions:

What do you guys think? @cehbrecht @jachym

Environment

  • operating system: ubuntu 18
  • Python version: 3.6
  • PyWPS version: latest from github
  • source/distribution: git clone
  • web server: Flask
Lingua principale
Python
Stelle
186
Fork
117
Merge medio
17g 23h
PR unite (30g)
1

Preparare l'ambiente

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 geopython/pywps

Tutte le issue di geopython/pywps

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.