Qlik Community

Qlik Sense Data Connectivity

Discussion board where members can learn more about Qlik Sense Data Connectivity.

Announcements
Qlik Analytics Tour 2020 Online. Begins August 10th. Register Today
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor

400 BAD REQUEST - Missing parameters

Hi, we´re trying to implement an external log-in to qlik sense into our HTML webpage but we´re getting a 400 error once we manage to redirect the page to the qlik sense´s one.

 

This is the error that we got: "400 BadRequest: Virtual proxy not possible to determine, since neither TargetId nor Virtual Proxy were specifie"

and this is our HTML code:

 

<script>
$(document).ready(function() {
$("#login_form").submit(function(e) {
e.preventDefault();
e.stopImmediatePropagation();
$('.ajax_response').html();

var url = $(this).attr('action');
$('.ajax_response').html('');
$('#submit').html('Logging in...');
$.ajax({
cache: false,
type: "POST",
url: url,
data: $(this).serialize(), // serializes the form's elements.
success: function(response)
{
var json = jQuery.parseJSON(response);
if ( json.status == 'success' ) {
//$('.ajax_response').html(json.message);
window.location.href = json.location;
}
else {
$('.ajax_response').html(json.message);
$('#submit').html('Login');
}
}
});
});
});
</script>
<div class="ajax_response"></div>

<input type="hidden" name="do" value="login">
<input type="hidden" name="external" value="1">
<input type="hidden" name="ajax" value="1">
<label>Username</label>
<input type="text" name="username">
<label>Password</label>
<input type="password" name="pwd">
<button type="submit" id="submit">Log in</button>
</form>
1 Reply
Highlighted
Support
Support

Re: 400 BAD REQUEST - Missing parameters

Hi @gettsuker 

What is the result if you follow the following article?

Qlik Sense: Generate a ticket with Qlik proxy API (Powershell)

Kind regards.

Note: if this suggestion helps to resolve the issue or answers your question, it will be appreciated if you select the "Accept as Solution" option.
We encourage you to visit our Knowledge Base https://qliksupport.force.com/QS_CoveoSearch when trying to find a solution related and not limited to: errors, feature requests, product defects. You can also visit our Qlik Help portal https://help.qlik.com/