Hi, I'm making a post request using 'Make a custom API call' module from workfront fusion scenario and getting 500 Error. Could anyone suggest what changes are needed in below configuration? Thanks in advance!
Solved! Go to Solution.
Views
Replies
Total Likes
This was resolved by setting the content into Request body instead of query string parameter
Views
Replies
Total Likes
That's a very large string for content. Typically, you'd set Content-Type to application/json and POST the body as the JSON itself. What API are you trying to hit?
Views
Replies
Total Likes
Hi @cverges-medallia I'm creating new nodes in AEM dam and need to make a POST call with content type application/x-www-form-urlencoded
Views
Replies
Total Likes
I don't have an AEM Assets connection, so I can't screenshot anything. However, typically in the Custom API modules, there's a URL entry that points to a specific API endpoint (defined via mechanisms such as https://developer.adobe.com/experience-cloud/experience-manager-apis/api/stable/sites/). To really understand what API you're trying to use and why it may be erring, what's the URL that's in your module?
Views
Replies
Total Likes
This is how I have set my URL:
Views
Replies
Total Likes
This is likely your main issue. Would focus on setting a proper URL as per their API spec.
Views
Replies
Total Likes
Hi @aembee
I'm not worried about the content size, I've done larger but:
I don't know what URL you're hitting here, but 500 means AEM didn't like what you sent. Could be content type; names of parameters etc.
Do click the toolkit icon in Fusion to see the actual call made. And check that it 100% matches what the Assets API spec expects.
This was resolved by setting the content into Request body instead of query string parameter
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies