0
votes

I'm creating a session along with a name and Service URL followed by performing a post request with passing a file(XML file in the form of Dictionary) as a parameter.

But response code is '500 'instead of '200' (i.e. success).

Library Used:

Library  RequestsLibrary

Snapshot of code used in Testcases section:

create session  session  http://myservice.com/method     #(Just an example)
${response}=  Post Request  session  /post  files=${files}

Error: Not getting any error. Moreover Line of Code which has "Post Request" is passing. But the status of response code is "500" (Supposed to be "200").

1
please share more information: what lib are you using, what exact error do you get etc. - Laurent Bristiel
Library Used: RequestsLibrary Error: No Error. But status of response is "500" (Supposed to be "200" ). - Kirankrishna Ravi

1 Answers

2
votes

A 500 response code means your request worked, but that the server threw an error. You need to check the server logs for more information.