You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a connector that streams data from REST API. It works as expected in the provided simulator . When I load the connector into Tableau 10, I go through the credentials page successfully and then I get stuck at this page:
Clicking cancel results in the following being displayed indefinitely:
I have to kill Tableau to get out of this screen. The connector file is hosted on a remote server (I couldn't find a way to point Tableau to a local file), while Tableau and the data API are running on localhost for dev purposes. The connector code is
(function (){
var myConnector = tableau.makeConnector();
setupConnector = function (){
tableau.connectionData = {server: "http://127.0.0.1:8081", token: "hello"};
tableau.connectionName = server + token.substring(0, 5);
};
myConnector.getSchema = function (schemaCallback){
var params = tableau.connectionData;
var cols = [];
var apiURL = params.server + "/api/component?target=schema&access_token=" + params.token;
$.getJSON(apiURL, function (resp){
cols.push({
'id': 'hello',
'alias': 'alias',
'dataType': tableau.dataTypeEnum.int
});
}).success(function (){
var tableInfo = {
id: "Data Feed",
alias: "Read data from API",
columns: cols
};
schemaCallback([tableInfo]);
});
};
myConnector.getData = function (table, doneCallback){
var params = tableau.connectionData;
var apiURL = params.server + "/api/component?access_token=" + params.token;
var getMoreData = function (){
$.getJSON(apiURL, function (resp){
if (resp == "Come back later"){
doneCallback();
}
else{
if (!resp.length){
console.info("No new data has been fetched.");
}
table.appendRows(resp);
getMoreData();
}
});
}
getMoreData();
};
tableau.registerConnector(myConnector);
$(document).ready(function (){
$("#submitButton").click(function (){
setupConnector();
tableau.submit();
});
});
})();
The text was updated successfully, but these errors were encountered:
mbatchkarov
changed the title
Connector works in simulators but hangs in Tableau
Connector works in simulator but hangs in Tableau
Aug 22, 2016
Turns out the problem is with partially with the remote API, which returns 404 (as I've misspelt the URL). That appears to be what causes Tableau to hang. However, no errors are reported in the Tableau log. I'll have a look at the simulator log too, but IIRC there is nothing there either.
I've got a connector that streams data from REST API. It works as expected in the provided simulator . When I load the connector into Tableau 10, I go through the credentials page successfully and then I get stuck at this page:
Clicking cancel results in the following being displayed indefinitely:
I have to kill Tableau to get out of this screen. The connector file is hosted on a remote server (I couldn't find a way to point Tableau to a local file), while Tableau and the data API are running on localhost for dev purposes. The connector code is
The text was updated successfully, but these errors were encountered: