Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 14-02-2015 at 01:02
Please, ANSWER this question AT http://stackoverflow.com/questions/28510955/proxyconnectionerror-when-connecting-as-anonymous
Question:
ProxyConnectionError when connecting as Anonymous
Description:
I have developed an operator to retrieve information from Orion Context Broker.
It works perfectly when I'm loggin but if I try to enter as anonymous (with the embedded URL) in a incognito window, the operator raises the next error:
(link to the image): http://i.stack.imgur.com/jxMkr.png
This is the code:
var doInitialSubscription = function doInitialSubscription() {
this.subscriptionId = null;
this.ngsi_server = MashupPlatform.prefs.get('ngsi_server');
this.ngsi_proxy = MashupPlatform.prefs.get('ngsi_proxy');
this.connection = new NGSI.Connection(this.ngsi_server,
);
console.log("Send initial subscription");
var types = ['SMARTMETER'];
var entityIdList = [];
var entityId;
entityId =
;
entityIdList.push(entityId);
var attributeList = null;
var duration = 'PT3H';
var throttling = null;
var notifyConditions = [
];
var options = {
flat: true,
onNotify: handlerReceiveEntity.bind(this),
onSuccess: function (data) {
console.log("Subscription success ID: "+data.subscriptionId);
this.subscriptionId = data.subscriptionId;
this.refresh_interval = setInterval(refreshNGSISubscription.bind(this), 1000 * 60 * 60 * 2); // each 2 hours
window.addEventListener("beforeunload", function ()
.bind(this));
}.bind(this),
onFailure: function(data)
};
console.log("Now creating subscription...");
this.connection.createSubscription(entityIdList, attributeList, duration, throttling, notifyConditions, options);
};
Any idea of what is wrong?
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 59m | 1 | Backlog Manager | 24/Oct/15 12:04 AM | |||||
|
2h 59m | 1 | Backlog Manager | 24/Oct/15 3:04 AM | |||||
|
16d 14h 55m | 1 | Manuel Escriche | 09/Nov/15 4:59 PM |
Fix Version/s | 2021 [ 12600 ] |
HD-Enabler | Orion [ 10875 ] | |
HD-Chapter | Data [ 10838 ] |
Summary | FIWARE.Question.Tech.Data.OrionContextBroker.ProxyConnectionError when connecting as Anonymous | FIWARE.Question.Tech.Data.OrionContextBroker.ProxyConnectionErrorWhenConnectingAnonymous |
Summary | [fiware-stackoverflow] ProxyConnectionError when connecting as Anonymous | FIWARE.Question.Tech.Data.OrionContextBroker.ProxyConnectionError when connecting as Anonymous |
Assignee | Fermín Galán [ fermin ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
2015-10-24 03:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True