Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

It stopped working for me #25

Closed
rafaelvinicius opened this issue Aug 22, 2019 · 11 comments
Closed

It stopped working for me #25

rafaelvinicius opened this issue Aug 22, 2019 · 11 comments

Comments

@rafaelvinicius
Copy link

Only Instagram images appear searching for TAG. By username shows error.

In the example it is also not working, and displays the same error:

Uncaught TypeError: Cannot read property '0' of undefined

Screenshot_1

@jsanahuja
Copy link
Owner

Please provide the code and version you are using

@jsanahuja jsanahuja self-assigned this Aug 22, 2019
@omeercoskun
Copy link

omeercoskun commented Aug 23, 2019

Same problem. From data.entry_data, ProfilePage[0] should return and LoginAndSignupPage returns.
Sometimes return ProfilPage, sometimes return LoginAndSignupPage

Now instagram public accounts redirect login page if you not logged in

inst

@rafaelvinicius
Copy link
Author

Please provide the code and version you are using

@Version 1.2.0

<script>
	(function($){
		$(window).on('load', function(){                
			$.instagramFeed({
				'username': 'rafaelvinicius',
				//'tag': 'paradise',
				'container': "#FotosInstagram",
				'display_profile': false,
				'display_biography': false,
				'display_gallery': true,
				'get_data': false,
				'callback': null,
				'styling': false,
				'items': 12,
				'items_per_row': 6,
				'margin': 20,
				'image_size': 240
			});
		});
	})(jQuery);
</script>

Today it went back to work and without any error message.
On your demo page has also returned to work.

@omeercoskun
Copy link

Your online demo page same error in my server. And There are no problems accessing instagram.
inst2

@jsanahuja
Copy link
Owner

jsanahuja commented Aug 23, 2019

@rafaelvinicius your code works perfectly fine on my side: https://www.sowecms.com/demos/jquery.instagramFeed/test_issue_25.html
Changed the user but also works with yours.

@omeercoskun looks like the http request is giving an unexpected response. Can you please show the network tab?

@iccunha
Copy link

iccunha commented Aug 23, 2019

Lately, instagram has introduced a rate limitation that redirects to the login and signup page when fetching the user page, just change the ip / proxy

@rafaelvinicius
Copy link
Author

@jsanahuja, thanks for the quick response!
As I said in the comment above, this morning it worked for me again. I spent the whole day working on the project, and at no time did Instagram make mistakes.

@iccunha
Yesterday I auditioned for the LTE network, the office network and my home network, on all these different connections Instagram was not working.
Can you tell us what is the limit imposed by Instagram?

@iccunha
Copy link

iccunha commented Aug 23, 2019

@rafaelvinicius I dont know yet, I m doing tests

@jsanahuja
Copy link
Owner

jsanahuja commented Aug 23, 2019

@iccunha you are right
image

The fetch is made client-side so the impact of this limitation is the same you would feel navigating directly over the instagram website.

I wasn't able to reproduce this refreshing the demo page as fast as I could. Had to make about 15 requests (I ran the 1st code example 15 times in a row) to get the first 301.

@jsanahuja
Copy link
Owner

I'm closing this issue as long as the limitation has nothing to do with the library.
Thank you all!

@jsanahuja jsanahuja pinned this issue Feb 26, 2020
@paoga87
Copy link

paoga87 commented Jun 6, 2020

fwiw - I was having this issue working locally. I realized I was on VPN and after disconnecting from VPN, the feed started working again for me.

Repository owner locked as resolved and limited conversation to collaborators Jun 6, 2020
@jsanahuja jsanahuja unpinned this issue Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants