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

SOLVED

External API activity - Error in Content type

somasundaramhal
Level 5
Level 5

Hi all,

 

This is the first time I'm using External API activity in ACS. I tried to execute the workflow. I'm getting the following error. Please advise what went wrong.

- Inbound mapping and outbound mapping are done

- No issues in column definition

- Tried to set the request headers as "Accept: application/json"  and "Content-Type: application/json"

 

external-api-error.png

 

 

 

 

ACS Adobe Campaign Standard api call error Api call in workflow Error external api
1 Accepted Solution
ramon_bisswanger
Correct answer by
Employee
Employee

The issue is on server side.

The called URL is returning content-type HTML which is not supported by the External API activity.

So either the wrong URL was used or the server delivers a wrong content type.

View solution in original post

2 Replies
ramon_bisswanger
Correct answer by
Employee
Employee

The issue is on server side.

The called URL is returning content-type HTML which is not supported by the External API activity.

So either the wrong URL was used or the server delivers a wrong content type.

View solution in original post

somasundaramhal
Level 5
Level 5

Hi @ramon_bisswanger Yes, the url is not returning the Content-Type as 'application/json'. I tried to figure it out by myself and see that url was returning empty Content-Type. I had to modify server side changes to return Content Type as application/json and then it worked fine. Thanks for your help.