error in rest connector call test

  • anuragkumar
    Participant
      6 years, 1 month ago #14873

      Hi Team,

      I have created a web service and it is hosted on my local server. I created a rest connector named “MyRestConnector1” along with one GET call named “getStudents”.
      When I test this call, I get below error:

      {
      “message”: “Connector Call MyRestConnector1 / getStudents produced an unexpected error during execution: No usable value for postFormat\nMissing value for class com.itizzimo.appServer.connector.types.rest.RESTConnectorType$PostFormats$”,
      “success”: false
      }

      Hitting the webservice URL over browser returns the data well but failing in simplifier rest connector.

      Please find the screenshots of config below and kindly let me know what I going wrong.

      Regards

      Attachments:
      You must be logged in to view attached files.
      Chris Bouveret
      Keymaster
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (320)
        Has successfully completed the Intermediate Certification
        Has successfully completed the Advanced Certification
      6 years, 1 month ago #14882
      Up
      1
      Down
      ::

      Hi,
      It seems that your REST Endpoint is not reachable from the Freemium Instance (or the Internet in general). I checked and it seems to be the case. I cannot reach the URL you are using in the Connector.

      Best
      Chris

      Chris Bouveret
      Keymaster
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (320)
        Has successfully completed the Intermediate Certification
        Has successfully completed the Advanced Certification
      6 years, 1 month ago #14910
      Up
      1
      Down
      ::

      seems like your endpoint is not reachable from the Internet, please check

      Chris Bouveret
      Keymaster
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (320)
        Has successfully completed the Intermediate Certification
        Has successfully completed the Advanced Certification
      6 years, 1 month ago #14878
      Up
      0
      Down
      ::

      Your REST Call is missing the postFormat parameter e.g. PLAIN or JSON
      You can see in the error output of your screenshot as well.

      anuragkumar
      Participant
        6 years, 1 month ago #14879
        Up
        0
        Down
        ::

        @Chris, As per the documentation I see postFormat to be optional and not needed for GET request. Am I wrong here?
        Although, I have tried for both postFormat “PLAIN”as well as “JSON” but both are failing with some error as below:
        {
        “message”: “Connector Call MyRestConnector1 / getStudents produced an unexpected error during execution: Error executing connector ‘MyRestConnector1’ of type ‘REST'”,
        “success”: false
        }

        You can also refer to the attachments for the error screenshots.

        The expected data should be of json format as below:

        [{
        “name”: “Ram”,
        “age”: 16,
        “registrationNumber”: “23124”
        }]

        This is coming fine over web browser.

        Attachments:
        You must be logged in to view attached files.
      Viewing 5 posts - 1 through 5 (of 5 total)

      You must be logged in to reply to this topic.