Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-5899

FIWARE.Question.Tech.Apps.ApplicationMashup.ComponentDevelopment.EmptyHTTPResponse

    Details

      Description

      Created question in FIWARE Q/A platform on 16-02-2016 at 12:02
      Please, ANSWER this question AT http://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.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 59m 1 Backlog Manager 17/Feb/16 3:02 PM
        In Progress In Progress Closed Closed
        3h 1 Backlog Manager 17/Feb/16 6:03 PM

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: