400 error with instagram url
Hi,
I'm getting a 400 error when trying to fetch this instagram image via my account:
doing e.g.:
https://res.cloudinary.com/{my account}/image/fetch/c_fill,h_408,w_726,q_80/{image url}
Can you help me with where I am going wrong please?
Thanks
Jon
-
Hi Jon,
Would you mind sharing with us your cloud name so we can take a look at your logs and understand your issue better? if you rather keep it private, then please feel free to open a support ticket and we'll take it from there.
In general, I assume the issue is that the fetched URL wasn't encoded properly and therefore our system was not able to parse it correctly.Note that when Cloudinary returns an error for an image URL that failed to load due to a problem with the image or URL, we return an HTTP header containing more information about why the request failed.
This information is sent in the `x-cld-error` header, and you can see the value by using your browser's web developer tools to examine the request and response for the image which didn't load correctly.0 -
hi, I'm also having this issue, the error is like this URL
https://res.cloudinary.com/stashally/image/upload/remote_url/scontent-ort2-1.cdninstagram.com%2Fv%2Ft51.29350-15%2F249494359_950634995526566_4454448708337946590_n.jpg%3F_nc_cat%3D110%26ccb%3D1-5%26_nc_sid%3D8ae9d6%26_nc_ohc%3DvGGSvXXmcZYAX88nz4W%26_nc_ht%3Dscontent-ort2-1.cdninstagram.com%26edm%3DANo9K5cEAAAA%26oh%3D3eeb1203c9d4473ca3499d79a2cf4e1f%26oe%3D618800DE
it returns x-cld-error:public_id (remote_url/scontent-ort2-1.cdninstagram.com/v/t51.29350-15/249494359_950634995526566_4454448708337946590_n.jpg?_nc_cat=110&ccb=1-5&_nc_sid=8ae9d6&_nc_ohc=vGGSvXXmcZYAX88nz4W&_nc_ht=scontent-ort2-1.cdninstagram.com&edm=ANo9K5cEAAAA&oh=3eeb1203c9d4473ca3499d79a2cf4e1f&oe=618800DE) is too longand I'm not able to shorten it, any ideas to work around it?
0 -
Hi there,
Would you be able to map a smaller folder to at least the domain? I have tried to map tcld to https://scontent-ort2-1.cdninstagram.com/v/ on your account and it does work properly: https://res.cloudinary.com/stashally/image/upload/tcld/t51.29350-15%2F249494359_950634995526566_4454448708337946590_n.jpg%3F_nc_cat%3D110%26ccb%3D1-5%26_nc_sid%3D8ae9d6%26_nc_ohc%3DvGGSvXXmcZYAX88nz4W%26_nc_ht%3Dscontent-ort2-1.cdninstagram.com%26edm%3DANo9K5cEAAAA%26oh%3D3eeb1203c9d4473ca3499d79a2cf4e1f%26oe%3D618800DE
Best,
Loic
0 -
Hi Loic,
thanks for the suggestion, but the problem is the image does not always comes from https://scontent-ort2-1.cdninstagram.com/v/, so this will need a lot of mappings, I'm not even sure if can map all of it (listed here: https://searchdns.netcraft.com/?restriction=site+contains&host=cdninstagram.com) since I am sure, its a growing list
0 -
Hi there,
Please submit a ticket to us directly via (https://support.cloudinary.com/hc/en-us/requests/new) and we can check if we can increase the length of the Fetch URL (public_id) for your account. This way, you will be able to use Fetch with the longer URLs that are currently not possible on the default limit of 255 characters.
0
Post is closed for comments.
Comments
5 comments