Skip to content

fix(tombola): stop reporting the jsonp parsererror on every export - #69

Merged
timzatko merged 1 commit into
mainfrom
fix/tombola-export-noise
Sep 10, 2026
Merged

timzatko merged 1 commit into
mainfrom
fix/tombola-export-noise

Conversation

@timzatko

Copy link
Copy Markdown
Member

Summary

The tombola service answers /service/tombola-export with a script of its own rather than the jsonp callback jQuery generates — tombola-list does the same, replying with a bare TW_Calc.addTombolaInfo(...) call — so jQuery reports a parsererror for spins the server accepted. The failure handler added in #68 turned each of those into a console error and a /service/send-error report, once per spin.

Changes

  • Return early on parsererror with a debug-only log, and drop the error tracking from the handler entirely
  • A status the export really failed with is still warned about

🤖 Generated with Claude Code

The tombola service answers /service/tombola-export with a script of its
own rather than the jsonp callback jQuery generates - tombola-list does
the same, replying with a bare TW_Calc.addTombolaInfo(...) call - so
jQuery reports a parsererror for spins the server accepted. The failure
handler added in #68 turned each of those into a console error and a
/service/send-error report, once per spin.

Return early on parsererror with a debug-only log, and drop the error
tracking from the handler entirely; a status the export really failed
with is still warned about.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAUg99g4KbYH58Pk1bSYat
@timzatko
timzatko merged commit 5838ab1 into main Sep 10, 2026
2 checks passed
@timzatko
timzatko deleted the fix/tombola-export-noise branch September 10, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant