I'm trying to start a neoload script by using jenkins, but got this error: error occurred during Controller initialization: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE html>
how to fix this?
How are you starting it? Plugin? Pipeline as code? Can you share the full console output?
I'm using the plugin.
Started by user Kooi, Martin van der (AV)
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on Neoload in workspace F:\Tools\JenkinsAgent\TOOLING\workspace\Neoload
[Neoload] $ cmd /c call C:\Windows\TEMP\jenkins2438694948928878822.bat
F:\Tools\JenkinsAgent\TOOLING\workspace\Neoload>"F:\Program Files\NeoLoad 6.8\bin\NeoLoadCmd.exe" -checkoutProject "/Sociaal" -NTS "http://app0702:8080/nts" -NTSLogin "admin:YNFBIu1net/VOhNizbanqw==" -NTSCollabPath "/sociaal" -launch "SVBNLAcceptatie" -testResultName "$Date{hh:mm - dd MMM yyyy} (build ${BUILD_NUMBER})" -leaseLicense "MC0CFAcpkEHnd6JoY/4HlYLEsxtaoE8DAhUAgyOQFxx4c4/KHSuJd6RYL0J9DU4=:1:1" -report "F:\Tools\JenkinsAgent\TOOLING\workspace\Neoload/neoload-report/report.html,F:\Tools\JenkinsAgent\TOOLING\workspace\Neoload/neoload-report/report.xml" -SLAJUnitResults "F:\Tools\JenkinsAgent\TOOLING\workspace\Neoload/neoload-report/junit-sla-results.xml" -noGUI
Logging to C:\Windows\system32\config\systemprofile\AppData\Roaming\Neotys\NeoLoad\v6.8\logs, as user: APP0703$
Found a valid NTS configuration : URL=[http://app0702:8080//nts] and USER=[admin]
An error occurred during Controller initialization: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=11;chrome=1" />
<title>Neotys Team Server</title>
<style type="text/css">html, body {height:100%;margin:0;}</style>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./../../VAADIN/themes/teamserver/favicon.ico" />
<link rel="icon" type="image/vnd.microsoft.icon" href="./../../VAADIN/themes/teamserver/favicon.ico" />
</head>
<body scroll="auto" class=" v-generated-body">
<div id="ROOT-2521314" class=" v-app teamserver">
<div class=" v-app-loading"></div>
<noscript>
You have to enable javascript in your browser to use an application built with Vaadin.
</noscript>
</div>
<iframe tabindex="-1" id="__gwt_historyFrame" style="position:absolute;width:0;height:0;border:0;overflow:hidden" src="javascript:false"></iframe>
<script type="text/javascript" src="./../../VAADIN/vaadinPush.js"></script>
<script type="text/javascript" src="./../../VAADIN/vaadinBootstrap.js"></script>
<script type="text/javascript">//<![CDATA[
if (!window.vaadin) alert("Failed to load the bootstrap javascript: .\/..\/..\/VAADIN\/vaadinBootstrap.js");
vaadin.initApplication("ROOT-2521314",{"authErrMsg":{"caption":"Authentication problem","message":"Take note of any unsaved data, and <u>click here<\/u> or press ESC to continue."},"heartbeatInterval":300,"vaadinDir":".\/..\/..\/VAADIN\/","comErrMsg":{},"sessExpMsg":{},"standalone":true,"serviceUrl":".\/..\/..","theme":"teamserver","versionInfo":{"vaadinVersion":"7.2.0"},"widgetset":"com.neotys.teamserver.application.AppWidgetSet"});
//]]></script>
</body>
</html> -- Error caused by : Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=11;chrome=1" />
<title>Neotys Team Server</title>
<style type="text/css">html, body {height:100%;margin:0;}</style>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./../../VAADIN/themes/teamserver/favicon.ico" />
<link rel="icon" type="image/vnd.microsoft.icon" href="./../../VAADIN/themes/teamserver/favicon.ico" />
</head>
<body scroll="auto" class=" v-generated-body">
<div id="ROOT-2521314" class=" v-app teamserver">
<div class=" v-app-loading"></div>
<noscript>
You have to enable javascript in your browser to use an application built with Vaadin.
</noscript>
</div>
<iframe tabindex="-1" id="__gwt_historyFrame" style="position:absolute;width:0;height:0;border:0;overflow:hidden" src="javascript:false"></iframe>
<script type="text/javascript" src="./../../VAADIN/vaadinPush.js"></script>
<script type="text/javascript" src="./../../VAADIN/vaadinBootstrap.js"></script>
<script type="text/javascript">//<![CDATA[
if (!window.vaadin) alert("Failed to load the bootstrap javascript: .\/..\/..\/VAADIN\/vaadinBootstrap.js");
vaadin.initApplication("ROOT-2521314",{"authErrMsg":{"caption":"Authentication problem","message":"Take note of any unsaved data, and <u>click here<\/u> or press ESC to continue."},"heartbeatInterval":300,"vaadinDir":".\/..\/..\/VAADIN\/","comErrMsg":{},"sessExpMsg":{},"standalone":true,"serviceUrl":".\/..\/..","theme":"teamserver","versionInfo":{"vaadinVersion":"7.2.0"},"widgetset":"com.neotys.teamserver.application.AppWidgetSet"});
//]]></script>
</body>
</html>
F:\Tools\JenkinsAgent\TOOLING\workspace\Neoload>exit 2
Build step 'Execute a NeoLoad Scenario' marked build as failure
Finished: FAILURE
Your project is name has an extra / on the end in the -checkoutproject and the repository path is missing a / at the end. See my example attached. The error talks about you are not authorised, this could be an issue with it not finding the correct paths/project