From b5c07c6a67f852717ef12a9502c5749854b0a415 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 12 Jun 2026 12:44:24 +0200 Subject: [PATCH] Widget: Fix 429 handling in Vue2 widget --- src/pretix/static/pretixpresale/js/widget/widget.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 34179e8772..d711c9bfb9 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -2051,9 +2051,16 @@ var shared_root_methods = { this.$root.set_cart_id(data.cart_id); this.$root.overlay.frame_loading = false; callback() - }, () => { + }, (xhr, data) => { + if (xhr.status === 429 && typeof xhr.responseURL !== "undefined") { + this.$root.overlay.error_message = strings['cart_error_429']; + this.$root.overlay.frame_loading = false; + this.$root.overlay.error_url_after = this.$root.newTabTarget; + this.$root.overlay.error_url_after_new_tab = true; + } else { this.$root.overlay.error_message = strings['cart_error']; this.$root.overlay.frame_loading = false; + } }) }, get_cart_id: function() {