2
votes

I'm trying to use Wirecloud the latest version available for a simple mashup project. I'm using the ngsi-source operator to retrieve data from Orion, but this is not possible because I often encounter an NGSI Proxy Connection Error (504 Gateway Timeout).

I tried with different installations of the NGSI Proxy in different servers and I have noticed that I have a 200 status in the inner REST calls made by the ngsi-source operator, only when the NGSI Proxy is reachable from the Wirecloud server installation (django server).

When the proxy is reachable only from my browser (local machine), I encounter the 504 status.

The NGSI Proxy has to be reachable from the Wirecloud installation?

Thanks in advance for the answers.

1
I've noticed that the first rest call made by the ngsi-source operator is composed in this way http://<wirecloud domain>/cdp/http/<ngsi-proxy domain>/eventsource. This may cause the problem.ascatox

1 Answers

0
votes

Currently, the NGSI proxy has to be reachable from the WireCloud instance. The url you were seeing (http://<wirecloud domain>/cdp/http/<ngsi-proxy domain>/eventsource) is caused by the use of the Cross Domain Proxy. We developed the NGSI proxy service to allow cross domain requests from browsers and the event source endpoint cannot be used without a direct connection from the client side, so I've opened a ticket in the github repo to solve this bug.