selfhosting icon indicating copy to clipboard operation
selfhosting copied to clipboard

Crash when adding IP to blacklist – Minified React error #31

Open codangry opened this issue 10 months ago • 3 comments

Hello,

I have an issue when adding an IP address to the blacklist in the Swetrix dashboard, the UI crashes with a React runtime error.

Steps to reproduce

  1. Go to Dashboard → Settings → Shields → Blacklist (IP filtering)
  2. Enter an IP address, like 8.8.8.8
  3. Click "save"

Expected behavior The IP should be added successfully, or a validation error should be displayed to the user.

Actual behavior The application crashes and shows the following error:

The app has crashed. We are sorry about that :( Please, tell us about it at [email protected]

Minified React error #31; visit https://react.dev/errors/31?args[]=%5Bobject%20Error%5D for the full message or use the non-minified dev environment for full errors and additional helpful warnings. Hide crash stack Error: Minified React error #31; visit https://react.dev/errors/31?args[]=%5Bobject%20Error%5D for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at Pu (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:37796) at ll (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:43157) at https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:43402 at Dl (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:67139) at Vs (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:82638) at zd (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:116564) at py (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:115641) at Yf (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:115477) at hd (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:112309) at Bd (https://swetrix.mysite.fr/assets/entry.client-C0IJ_KDr.js:9:124101)

Environment

Swetrix: self-hosted Browser: Chrome OS: macOS

Thanks !

codangry avatar Jan 10 '26 15:01 codangry

Hey, thanks for reporting it, will be fixed in the next Swetrix CE v5 release :)

Blaumaus avatar Jan 10 '26 19:01 Blaumaus

Thanks a lot !

codangry avatar Jan 10 '26 19:01 codangry

Should be fixed in v5

Blaumaus avatar Jan 24 '26 02:01 Blaumaus