stevenschobert/instafeed.js

Failed to load resource: the server responded with a status of 400 ()

kaleidografik opened this issue · 2 comments

Hi guys. We've had V2 up and running for a while now, with no problems. However this week a couple of the sites have started returning 400 errors stating 'Failed to load resource: the server responded with a status of 400 ()'.

We're using instant-tokens.com to generate the Token, and that URL has been tested and is successfully still returning a Token. This therefore suggests there is no issue with the connection to Instagram itself?

Please see code below for reference, thanks.

// Init instafeed.js
// Access token needs refreshing every 60 days, done automatically via ajax call to instant-tokens.com
$.ajax({
type: 'get',
dataType: 'json',
url: 'https://ig.instant-tokens.com/users/............',
// If request is successful
success: function (response) {
var feed = new Instafeed({
target: 'instagram-carousel',
accessToken: response.Token, // Access token from json response
apiTimeout: 10000,
limit: 20,
template: '

',
});
feed.run();
}
}
});

Hey @kaleidografik, thanks for the report! Do you have any more details on the error you were seeing, or a link I could take a look at?

stale commented

This issue has been automatically marked as stale because it hasn't had new comments in the last 3 months. It will be closed if no further activity occurs. If you still need assistance with this issue, or believe it shouldn't be closed, please respond with a new comment to let us know.
Thank you all for your contributions.