Splunk Dev

[Fatal Error] :1:1: Content is not allowed in prolog.

surren
New Member

Hi, using splunk-sdk-java is being developed.
Login method call in development of the following error has occurred.

POST https://192.168.225.128:8000/services/auth/login => [Fatal Error]: 1:1: Content is not allowed in prolog.
com.splunk.HttpException: HTTP 400
at com.splunk.HttpException.create (HttpException.java: 59)
at com.splunk.HttpService.send (HttpService.java: 366)
at com.splunk.Service.send (Service.java: 644)
at com.splunk.HttpService.post (HttpService.java: 226)
at com.splunk.Service.login (Service.java: 556)
at com.splunk.ServiceTest.main (ServiceTest.java: 321)

What would I have to solve please answer.

Thank you.

Tags (2)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

wrong URL. you can't sent REST calls to SplunkWeb. try port 8089.

guilhem
Contributor

Thank you SO MUCH for the question and the answer. Just made my day.

So I suggest you accept the answer as it give the solution (was having the same problem, switching to port 8089 solved it)

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...