[Backlogmanager] [FIWARE-JIRA] (HELP-9054) [fiware-stackoverflow] HTTP Request returning empty element

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Wed Sep 12 11:26:01 CEST 2018


     [ https://jira.fiware.org/browse/HELP-9054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez updated HELP-9054:
---------------------------------
    Description: 
Created question in FIWARE Q/A platform on 16-02-2016 at 12:02
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/35431734/http-request-returning-empty-element


+Question:+
HTTP Request returning empty element

+Description:+
I try to get a JSON object from a webservice with

MashupPlatform.http.makeRequest(url, {
            method: 'GET',
            requestHeaders: {"Accept": "application/json"},
            forceProxy: true,
            onSuccess: function (response) {
                console.log("response: " + JSON.stringify(response));
                success(response);
            },
            onFailure: function (response) {
                error(response);
            },
            onComplete: function () {
                complete();
            }
        });


but in the console every time an empty element ({}) gets logged. If I use curl to request that exact same URL I get the response I need. Is the wirecloud proxy unable to request application/json? In my browsers network analysis I see the request including the correct response, but the success function seems to not get that data.


  was:

Created question in FIWARE Q/A platform on 16-02-2016 at 12:02
{color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/35431734/http-request-returning-empty-element


+Question:+
HTTP Request returning empty element

+Description:+
I try to get a JSON object from a webservice with

MashupPlatform.http.makeRequest(url, {
            method: 'GET',
            requestHeaders: {"Accept": "application/json"},
            forceProxy: true,
            onSuccess: function (response) {
                console.log("response: " + JSON.stringify(response));
                success(response);
            },
            onFailure: function (response) {
                error(response);
            },
            onComplete: function () {
                complete();
            }
        });


but in the console every time an empty element ({}) gets logged. If I use curl to request that exact same URL I get the response I need. Is the wirecloud proxy unable to request application/json? In my browsers network analysis I see the request including the correct response, but the success function seems to not get that data.


     HD-Enabler: Wirecloud

> [fiware-stackoverflow] HTTP Request returning empty element
> -----------------------------------------------------------
>
>                 Key: HELP-9054
>                 URL: https://jira.fiware.org/browse/HELP-9054
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>              Labels: fiware, fiware-wirecloud, json
>
> Created question in FIWARE Q/A platform on 16-02-2016 at 12:02
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/35431734/http-request-returning-empty-element
> +Question:+
> HTTP Request returning empty element
> +Description:+
> I try to get a JSON object from a webservice with
> MashupPlatform.http.makeRequest(url, {
>             method: 'GET',
>             requestHeaders: {"Accept": "application/json"},
>             forceProxy: true,
>             onSuccess: function (response) {
>                 console.log("response: " + JSON.stringify(response));
>                 success(response);
>             },
>             onFailure: function (response) {
>                 error(response);
>             },
>             onComplete: function () {
>                 complete();
>             }
>         });
> but in the console every time an empty element ({}) gets logged. If I use curl to request that exact same URL I get the response I need. Is the wirecloud proxy unable to request application/json? In my browsers network analysis I see the request including the correct response, but the success function seems to not get that data.



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy