error in rest connector call test
-
anuragkumarvor 5 Jahren #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 BouveretHas successfully completed the online course IntroductionHas 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 CertificationHas successfully completed the Advanced CertificationChris BouveretHas successfully completed the online course IntroductionHas 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 CertificationHas successfully completed the Advanced CertificationChris BouveretHas successfully completed the online course IntroductionHas 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 CertificationHas successfully completed the Advanced Certificationanuragkumarvor 5 Jahren #14879::@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.
You must be logged in to reply to this topic.