on_error.sql handler for errors
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 2.6k
- Forks
- 175
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 43
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sqlpage/SQLPage
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
sqlpage/SQLPage#1218 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
There is no convenient way to reproduce issuesEvtl. vergeben @81reap hat das vor 26 Tagen übernommen. Offenenhancement
sqlpage/SQLPage#1566 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Confusing sort interfaceEvtl. vergeben @lovasoa hat das vor 74 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
sqlpage/SQLPage#1442 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Mutation Testing Results :: Dead Code + Missing TestsEvtl. wieder frei @81reap hat das vor 61 Tagen übernommen, und es ist kein Pull Request offen. Offen
sqlpage/SQLPage#1396 · 5 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in sqlpage/SQLPage
Ähnliche Issues
-
CI/CD ignore-for-release
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
eclipse-ankaios/ankaios#844 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
std: `SliceIndex<str>` missing for `std::ops` ranges, so generic `R: SliceIndex<str>` bounds failOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
symposium-dev/symposium#530 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag