Hey!
I'm doing an external API call to get the image. Then I would like to create an image based on the result of the request.
When I'm passing a random URL of the image to 'Create Image Metadata' like this:
Everything works fine, but I can't pass the directly URL to 'Create Image Metadata' because the request that I'm doing requires authorization.
My external API request response looks like this:
{
request: (…)
response: {
(…)
result: 'JFIFHHICC_PROFILE0mntrRGB XYZ acsp-desc$rXYZgXYZ(bXYZ<wtptPrTRCd(gTRCd(bTRCd(cprt<mluc (…….)'
}
}
Is there a way to handle results like this? I tried to use lambda functions with response.results, but then I'm getting '$var must be an object' error.
It seems that the my external API call blow up lambda functions (even return 1+2 throws an error)