Bad request when consuming api passing data time
Question
Hello guys, when trying to consume an REST api in a post method by passing a date in the body of the request I get badrequest at runtime but when testing in the definition of APi or Postman, for example I get correct feedback, has anyone faced this problem?
already tried to convert to text but it did not work mt :(

Already grateful

Guilherme



The problem was solved by passing a double quote followed by 3x the desired date in text type inside the "before request" of the call, as follows """date"""
We were facing some API service side data conversion error
mvp_badge
MVP

Hi Guilherme,

If I had to guess, the error has nothing to do with the date, but there's something else that's wrong, e.g. authentication.

Hi Guilherme,


You can try to increase the logging level to full:

Then you can compare the request with the one from postman.


Ivo

The problem was solved by passing a double quote followed by 3x the desired date in text type inside the "before request" of the call, as follows """date"""
We were facing some API service side data conversion error
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.