Dashboards & Visualizations

Javascript SDK browser examples not working: 413 error

mscholtes
New Member

When I try to run any of the UI examples in splunk-sdk-javascript-1.2.1, the server returns error 413. I started the node server: "node sdkdo examples". Then I ran the timeline UI example in Chrome, after setting the login info to the correct Splunk password and version 6.0. The developer console in Chrome showed that the http request was:

 localhost:6969/proxy/services/search/jobs/1386894990.1173?output_mode=json

and the return status was 413 (Request Entity Too Large). So obviously the first http call, to get the SID of the search job, succeeded. If I take the same SID and submit it in the browser like this:

localhost:8089/services/search/jobs/1386894990.1173?output_mode=json

then the search succeeds and I get valid results back. What's going on?

Tags (3)
0 Karma

ineeman
Splunk Employee
Splunk Employee

We released an updated version of the SDK, 1.2.2, that should fix this issue. You can get it from:

dev.splunk.com: http://dev.splunk.com/view/javascript-sdk/SP-CAAAECM
GitHub: https://github.com/splunk/splunk-sdk-javascript

Let us know if this doesn't fix your issue!

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...