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!
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
This was resolved by setting the content into Request body instead of query string parameter
表示
返信
いいね!の合計
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?
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
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?
表示
返信
いいね!の合計
This is how I have set my URL:
表示
返信
いいね!の合計
This is likely your main issue. Would focus on setting a proper URL as per their API spec.
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計