While from postman, its always successful and returning json object , but from rest assured , its returning html page. Is there something I can do about it? I am using testNG and theses static imports apis: io.restassured.RestAssured.* io.restassured.matcher.RestAssuredMatchers.* org.hamcrest.Matchers.*
I am getting different results from postman and Rest assured , using same endpoints and request
1.4k Views Asked by Ishita Sharma At
1
There are 1 best solutions below
Related Questions in REST
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- Add an http GET/POST entry point to a Django with channels websocket
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Flutter connection to a local api
- Accessing REST API Status Codes using Azure Data Factory Copy Activity (or similar)?
- Mass Resource deletion in REST
- why when I check endpoint /tasks, an error always appears "error : invalid token" even though I have entered the appropriate token that I got
- How to prevent users from creating custom client apps?
- How to create a REST API with .NET Framework?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Put Request throwing 401 [no body] Unauthorized
- Converting img src data to octet-stream
- Implementing Email Verification and Notification System in a Full-Stack Application with React Frontend and Node Backend
- Micronaut - Add Controller from external library
- Moving Template or OVA to Datastore using vCenter API
Related Questions in POSTMAN
- Issue uploading files in spring boot java to onedrive using API
- Cannot serialize (Spring Boot)
- why when I check endpoint /tasks, an error always appears "error : invalid token" even though I have entered the appropriate token that I got
- mTLS not working with FastAPI and Uvicorn
- How to set Postman Settings to mimic the effect the -k option of curl
- Postman Webservice PHP Curl Code POST request giving forbidden error when run in local
- Laravel 10 - Passport - Personal Access Client
- How to get OAuth2 Access token from Postman
- I am struggling to get a 200 success request for my Heroku-hosted API on Rapid API for GET requests. I only receive a '404 page not found' error
- Postman + Flask Sending large file stalls
- Postman HeaderList remote function not working
- On paste StartFragment - EndFragment Postman issue
- Not receiving WebSocket messages in Postman using Laravel and beyondcode/laravel-websockets package
- Use JMeter to simulate receiving websocket broadcasts similar to okhttp3
- Response body in Postman is not in human-readable way, with proper indentation and line breaks
Related Questions in REST-ASSURED
- javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cert
- How can we extract swagger apis and Request from swagger and store in excel or list the automate it by using Rest Assured
- Is there any way to login SSO using RestAssured or using any API calls?
- How to print a value by comparing 2 fields inside JSON - RestAssured
- Getting 500 error while sending the request through rest assured automation
- Sharing data between Cucumber Rest Assured feature files and step definitions but they are related
- I wan to download the certificates from URL using Java code, No for say ignore certificate or do manual steps to download from browser and add keystor
- Rest-Assured and Hamcrest matchers not working with comparing arrays of ints
- RestAssured I miss one field when extracting Response Body from Response
- How to connect a DB in Rest Assured , which is currently hosted locally
- Verify two instances of same POJO, if one instance produced by mapping of a JSON response. An additional POJO is generated via manual db mapping
- Getting error as "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException" for API testing practice
- Getting 415 for a postman request in rest assured having form data as body
- how to fetch an otp or claim code from email using Rest Assured Java
- How do I retrieve the protocols from the Rest Assured response and verify whether it is TLS 1.3?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Make sure RestAssured is adding an appropriate
Acceptheader, like this:Accept: application/jsonThis is part of content negotiation.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation
has a good overview.