Our Instagram feed component has been working OK until today. It is stuck on a ’ Loading feed…’ message. A look at console shows the following error.
(index):944 Uncaught TypeError: Cannot read property '0' of undefined
at printInstaFeed ((index):944)
at XMLHttpRequest.xhr.onreadystatechange ((index):935)
Yes it is weird:
Error msg:
Uncaught TypeError: Cannot read property ‘0’ of undefined
at printInstaFeed (demo:220)
at XMLHttpRequest.xhr.onreadystatechange (demo:211)
We have this error on our Instagram Feed also. I downloaded and tried to install the updated version 1.1.0 component but when I import I get the below errors:
Asset #19652 does not exist [SYS0087] 27 Jan 2021 10:41 am
Warning Attribute "show_use_default" not found for Asset "metadata_field_text" [SYS0094] 27 Jan 2021 10:41 am
Warning Action ID "set_Metadata_Field_Text_19647_show_use_default" could not be executed 27 Jan 2021 10:41 am
Warning Attribute "show_use_default" not found for Asset "metadata_field_select" [SYS0094] 27 Jan 2021 10:41 am
Warning Action ID "set_Metadata_Field_Select_19648_show_use_default" could not be executed 27 Jan 2021 10:41 am
Hey Lauren, you can safely ignore those warnings, they just relate to a feature on metadata fields that is not available on your version of Matrix, shouldn’t affect the template at all.
That’s weird, I still can’t replicate, works fine on my end.
301/302 are redirect headers, which means it’s trying to redirect the request to somewhere else. Is there anywhere in the response headers you can see where it’s trying to redirect you to? What do you see in the Response tab?
Yes, sorry, forgot to loop back to this one. After further review, it seems that Instagram have changed their policy and restrictions on “scraping” public profiles. It’s no longer possible to do without a developer API key and account, and thus, we’ve had to take down that component from the marketplace for now. Hopefully Instagram will do the same as Facebook and Twitter and allow a free iframe embeddable feed that we might be able to create a component for. In the meantime, you will have to create the same component using your own developer API account and call their REST API to get the data that way.