- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I don't see an error in the code you posted.
In fact, I took the section of code you shared and ran it local and it worked fine.
500 could be coming from the privacy service. When you do the fetch on the privacy endpoint are you including all the needed headers, params, and auth needed to make that call?
const requiredParams = []
const requiredHeaders = ['Authorization','x-api-key','w-gw-ims-org-id']
const errorMessage = checkMissingRequestInputs(params, requiredParams, requiredHeaders)
if (errorMessage) {
// return and log client errors
return errorResponse(400, errorMessage, logger)
}
Views
Replies
0 Likes
Total Likes