Dashboards & Visualizations

How do I fix this custom javascript Error Notification pop-up on dashboard after upgrade to 8.2.7?

AnilPujar
Path Finder

<form script="search:tabs.js,custom_vizs:autodiscover.js, custom_vizs:dendrogram.js" stylesheet="search:da_service.css,search:tabs.css,custom_vizs:dendrogram.css" hideSplunkBar="true">

---------------------------------------------------------------------------------------------------

common.js:1798 SyntaxError: Unexpected token , in JSON at position 49
at JSON.parse (<anonymous>)
at _decodeOptions (dashboard_1.1.js:277)
at dashboard_1.1.js:277
at Function._.each._.forEach (common.js:1798)
at Function.ready._enableComponentDivs (dashboard_1.1.js:277)
at dashboard_1.1.js:277
at Object.execCb (eval at module.exports (common.js:1117), <anonymous>:1658:33)
at Module.check (eval at module.exports (common.js:1117), <anonymous>:869:55)
at Module.eval (eval at module.exports (common.js:1117), <anonymous>:1121:34)
at eval (eval at module.exports (common.js:1117), <anonymous>:132:23)

---------------------------------------------------------------------------------------------------

Failed to load resource: net::ERR_CONNECTION_TIMED_OUT  https://e1345286.api.splkmobile.com/1.0/e1345286//0/1

---------------------------------------------------------------------------------------------------

Refused to apply style from 'https://*************:8000/en-US/static/@2e1fca123028.225/app/custom_vizs/dendrogram.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

splunk_error.PNGcustom_js error popup.PNG

Tags (1)
0 Karma

templets
Path Finder

In addition to adding the version="1.1" in your <form> or <dashboard> header, you'll want the updated version of tabs.js and tabs.css. You can find it at:

https://github.com/LukeMurphey/splunk-dashboard-tabs-example/commit/7baf110b74552f48ce410bb0181ba641...

That worked for me. 

The other thing you'll need to do is get Splunk to forget the old version. It seems to cache it so that even after replacing the .js file, it keeps using the old one.  I fixed this by "bumping" it.

https://<server_address>:8000/en-US/_bump

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try specifying version 1.1 in the dashboard.

<form script="search:tabs.js,custom_vizs:autodiscover.js, custom_vizs:dendrogram.js" stylesheet="search:da_service.css,search:tabs.css,custom_vizs:dendrogram.css" hideSplunkBar="true" version="1.1">
---
If this reply helps you, Karma would be appreciated.
0 Karma

templets
Path Finder

Adding a version eliminates that part of the message, but not the "custom JavaScript" error part.

0 Karma

thashmi
Splunk Employee
Splunk Employee

Do we have a solution for the JavaScript errors??

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Your Path to AgenticOps: AI Experiences for Every Splunk Practitioner

Your Path to AgenticOps: AI Experiences for Every Splunk Practitioner   Watch on demand us for a demo-driven ...

The Data Connection - October 2026

We all have data. Lots of it. But that’s not the problem – it’s understanding what we should we do with it, ...

Beyond the Acceleration Zone: Maximizing Your Success with Splunk Customer Experience ...

Customer success is built on tailored guidance and accessible resources. As a Splunk user, you are encouraged ...