How to receive JSON Messages in POST body in a JAX-RS Restful web service in CXF?

I'm trying to develop a REST service using Apache-CXF, on top of JAX-RS. For starters, I have a method called test that receives a String message and int value. I want the clients to be able to...

Laravel X-CSRF-Token mismatch with POSTMAN

I try to talk to my REST API built with Laravel. But the call with POSTMAN is rejected due to a token mismatch. I guess I need to include the CSRF token in the header. But do I need the encrypted...

Return file from ASP.NET 5 Web API

My previous question: https://stackoverflow.com/questions/34853072/how-to-return-file-from-asp-net-5-web-api/34856354#34856354 I am trying to return a file as the response from Web API POST...

How to upload a file and JSON data in Postman?

I am using Spring MVC and this is my method: /** * Upload single file using Spring Controller. */ @RequestMapping(value = "/uploadFile", method = RequestMethod.POST) public @ResponseBody...

How to import Swagger APIs into Postman?

Recently I wrote restful APIs with SpringMvc and swagger-ui(v2). I noticed the Import function in Postman: So my question is how to create the file which Postman needed? I am not familiar with Swagger.

PUT - Sending JSON - Unsupported Media Type

I have a REST service in Jersey , which I am implementing using Postman I get the following error in postman : 415 Unsupported Media Type I tried this , this , this and this . Nothing Works. I am...

Trying to use fetch and pass in mode: no-cors

I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON Additionally I am using create-react-app and would like to avoid setting up any server...

Web API method with FromUri attribute is not working in Postman

I have written the below simple Web API method. [HttpGet] [HttpPost] public int SumNumbers([FromUri]Numbers calc, [FromUri]Operation op) { int result = op.Add ? calc.First...

Spring boot security cannot log in after invalid credentials

I have problem with validating user credentials. When I give correct credentials first time everything goes OK but giving invalid credentials first and then give correct ones I get invalid...

how to solve flutter CERTIFICATE_VERIFY_FAILED error while performing a POST request?

I am sending a post request in Dart. It is giving a response when I test it on API testing tools such as Postman. But when I run the app. It gives me the following error:- E/flutter ( 6264):...

SocketException: OS Error: Connection refused, errno = 111 in flutter using django backend

I m building a flutter app with django rest-framework. The registration api is working fine in Postman but after some successful registration from the flutter app it is showing the above error....

How to compare two dates in Postman

I have a scenario where I need to compare a date from an API response with today's date and check whether it is less than or equal. The API response will give me a JSON object and in that JSON the...

arabic messages with postman received as '???????'

I need to send an Arabic message with postman. but i recieve the text as ??????? instead of arabic characters . here's the body of my request in postman : { "authentication": { "username":...

Update Azure keyvault secret through Azure API

I am trying to update keyvault secret in Azure through Postman. But getting Authorization error. Any suggestions. Anything I am missing. Thanks in advance { "error": { "code":...

Token not authenticating with OpenIdDict/Connect

I am currently working on converting an existing application consisting of an Angular 9 frontend talking to Asp.Net MVC/Web API/Identity backend. I am converting the .Net to .Net Core 2.2. The...

How to upload file using axios post request

I am trying to upload a file to url using axios post request. But i am getting 500 internal server error. If the same request I tried from postman file gets uploaded with 200 status code. I am...

Same-origin request causes “Access-Control-Allow-Origin doesn’t match” error, though origin of course matches. Note: has CSP policy w/ "sandbox"

When the exact same URL is being used in both by CORS and its web pages' URL, I still get the same error messages in my Firefox development console. Browser console messages were: Cross-Origin...

IdentityServer4 always returning "error": "invalid_scope"

I'm using IdentityServer4(4.0.4), however it doesn't return the access_token, it always returns: "error": "invalid_scope" The error can be recreated just by adding the following code and the Nuget...

Export POST Request from postman to Python

I am attempting to run a POST request in python. When I test in Postman it runs fine and imports the file. When I run it in Python I error out. This posts a spreadsheet stored on my computer into...

How to upload files on ejabberd server?

I followed the documentation to and viewed multiple links to learn how to upload a file on the ejabberd server but still cannot upload files on the ejabberd server. My motive is to upload a file...

Using Axios to post a message in Microsoft Teams

UPDATED QUESTION 16-10-2020 I simplified the code so it doesn't contain an if statement anymore to run the postMessageToTeams function and I added the error response I receive in the catch....

ReactJS and DRF: How to store JWT token inside HTTPonly cookies?

Currently, I have the login functionality working on my web app, after I make a login request the server responds with a JSON object that contains 2 tokens: This is the login function: async...

Is there any solution for "n --- property 'topology' closes the circle" in Postman while working with nodejs and mongodb?

I'm writing the code in nodeJS for getting the user from MongoDB.When I sent the request http://localhost:5000/api/users in Postman, I ran into an error. I have seen a similar problem but all the...

CORS Error: What is the correct way to configure Symfony 5 to accept CORS?

Objective I'm attempting to send a request from a Vue 3 typescript frontend to a Symfony 5 API. Using the NelmioCorsBundle The request is working in Insommia (postman) but is not working in...

" Could not send request " error in Postman Web version

I am using postman web version. I sent request using POST on url = localhost:3000/students But it is giving error : Could not send request Cloud Agent Error: Can not send requests to localhost....

Gitlab webhook can't be triggered on Azure DevOps Server Version 2020.1.RC2

Incoming webhook can be triggered on Azure DevOps Server Version Dev18.M170.6, but it can't be triggered on Azure DevOps Server 2020.1.RC2. I'm getting an error message from the 2020.1.RC2: Cannot...

How to fix this error Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined. in laravel 8?

i have one controller which contains three functions (register,login,forgotPassword).for login and registration it's working fine but when i try to hit an API in postman i am getting an...

Is there a way to connect using a cipher suite not supported by the server?

I have a C# application running on a Windows 2012 R2 server that needs to post requests to a partner. It's failing at WebRequest.GetRequestStream() with The request was aborted: Could not create...

Why Postman giving SSL error even the certificate date is valid?

Date of Post is 30 Sep 2021 .Postman is not giving any response when SSL is enabled while hitting a api, but showing response with disable SSL. But my question is, the TLS "authorizationError"...

Components not included in Strapi api response

I decided today that I'm going to use Strapi as my headless CMS for my portfolio, I've bumped into some issues though, which I just seem to not be able to find a solution to online. Maybe I'm just...