Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

DELETE method request from AC

Avatar

Avatar
Validate 1
Level 1
gabridguez
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
gabridguez
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
gabridguez
Level 1

06-02-2019

Hi everyone,

I am trying to use the HttpClientRequest object to request something to an API. When I use the POST method to create elements in the API, it works fine, but when I have to delete something I need to use the DELETE method. The request parameters are exactly the same, just change the POST method for a DELETE method, and in the delete request, I get an error. Checking the Rest server logs, I have found that, in the body of the request, as the first character, there is an EOF character.

For some reason, AC has added that character there. These API calls are working fine from other environments (E.g.: using postman).

Does someone know why this is happening? Or does someone know a workaround for this?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

960 likes

Total Posts

1,090 posts

Correct Reply

508 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

960 likes

Total Posts

1,090 posts

Correct Reply

508 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

06-02-2019

Hi,

Use curl with execCommand() instead.

Thanks,

-Jon

Answers (0)