cancel
Showing results for 
Search instead for 
Did you mean: 

REST requests erroring out

SOLVED
Highlighted
Occasional Contributor

REST requests erroring out

RequestI am trying to test simple REST requests, but ReadyAPI doesn't seem to like me.

 

Here's what I know:

 

1) The request works just fine in Fiddler 4

 2016-06-14_15-39-47.png

 

 

2) ReadyAPI errors with: 

Request 1: Cancelled a request due to invalid content

 

3) Request in Ready API

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: REST requests erroring out

@jdbraden Please unselect the checkbox 'Always validate request messages before they are sent' under Preferences -> Editor. And try again.

 

Best Regards,

Prakash Jat

SmartBear Stockholm Developer

View solution in original post

5 REPLIES 5
Highlighted
Moderator

Re: REST requests erroring out

Hello,

 

I cannot reproduce the issue in R!API 1.7.0:

2016-06-15_1050.png

Please copy the problematic request from the Raw tab and share it with us to help us understand what is wrong with it.

Natalie
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Highlighted
Staff

Re: REST requests erroring out

Could you please a Ready! API project where this error occurs? That would make it possible for us to test out what could be wrong.

Regards
Joel Jonsson
SmartBear Stockholm Developer
Highlighted
Contributor

Re: REST requests erroring out

@jdbraden Please unselect the checkbox 'Always validate request messages before they are sent' under Preferences -> Editor. And try again.

 

Best Regards,

Prakash Jat

SmartBear Stockholm Developer

View solution in original post

Highlighted
Occasional Contributor

Re: REST requests erroring out

Thank you, Prakash, That did the trick.

Highlighted
Community Hero

Re: REST requests erroring out

Though I agree with the solution provided which is taken care at client side, at times, server also does some validation. For eg: How does it respond to some bad request and is it matching the response code / message etc., these are certain things which are also need to be tried out by the test teams. So, it may not really have to validate the request all the times before hitting the service. Just a different view on this.


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Check out the new challenge!

Create a script to generate a request body based on data from Datasource
for the TechCorner tag.
Your input is appreciated!


Scripts created this month:
- A scriptd to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors