[ENHANCEMENT]: server 500 error should not return cors errors

Aperta
#2,398 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
api, backend

Direzione di ricerca

Start by tracing the server's error handling and CORS response path; the issue does not name specific files or tests. Check how an internal server error becomes a response, then run the relevant error-handling tests or reproduce a 500 response. Done means server failures return HTTP 500 rather than a misleading CORS error, with full error details exposed only in development mode.

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

Descrizione

enhancement server
Description

This is not necessarily a very urgent issue but there were was multiple times the case that the backend returns cors errors when a 500er occurs on the server. In this case return 500 instead of cors as it is quite confusing for people new to hashtopolis what is actually the error in this case. Also in development mode it might be nice if the full error is returned in the error message.

Lingua principale
PHP
Stelle
1.8k
Fork
257
Merge medio
1g 15h
PR unite (30g)
11

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 hashtopolis/server

Tutte le issue di hashtopolis/server

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.