on_error.sql handler for errors
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
The issue proposes an on_error.sql handler but does not identify a code entry point or test. First, trace how errors are rendered and how SQL pages are executed, including the production behavior of error.handlebars; the reporter says they could not find where to insert the handler. Done would mean a defined handler receives the error details and can perform SQL operations, with tests covering the behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What are you building with SQLPage ?
An application in the healthcare industry.
What is your problem ?
We would like to log errors that our users encounter and potentially create tickets in our support system when a user receives an error message.
Describe the solution you'd like
It would be great if there was an on_error.sql handler that received the error message, URL, sqlpage.variables() and also the backtrace. It would be cool if we could write this with SQL as any other SQL page, and insert the log into our database and potentially execute other operations like fetch() to call out to other systems (to send an email, create a ticket, etc.)
Describe alternatives you've considered
There are no really good alternatives currently available because in production environment we do not get the backtrace in error.handlerbars, so we can't even log the error somehow from the user's browser. The error is essentially lost.
Additional context
I've taken a stab in the rust at creating this as pull request, but I cannot find a good place in the code to insert this handler. If you could give some ideas as to where a good handler code might live, I could submit as a PR.
- Lingua principale
- Rust
- Stelle
- 2.6k
- Fork
- 175
- Merge medio
- 14h 16m
- PR unite (30g)
- 43
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sqlpage/SQLPage
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
sqlpage/SQLPage#1218 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
There is no convenient way to reproduce issuesForse già presa @81reap l’ha presa 26 giorni fa. Apertaenhancement
sqlpage/SQLPage#1566 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Confusing sort interfaceForse già presa @lovasoa l’ha presa 73 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
sqlpage/SQLPage#1442 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Mutation Testing Results :: Dead Code + Missing TestsForse di nuovo libera @81reap l’ha presa 61 giorni fa e non c’è nessuna pull request aperta. Aperta
sqlpage/SQLPage#1396 · 5 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sqlpage/SQLPage
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
symposium-dev/symposium#530 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
topgrade-rs/topgrade#2540 ·
I maintainer di solito rispondono entro 1 giorno
-
Invalid JSON options for ngram and edge_ngram silently use defaultsForse già presa @Tilendlesa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
noemaforge/vimanam#153 ·
I maintainer di solito rispondono entro 1 giorno