thenikhilk / sharepoint-instagram-feed

This web part enables Office 365 SharePoint users to embed Instagram feeds from any public Instagram account to SharePoint pages seamlessly with NO NEED for registering any ACCESS_KEY, TOKEN or client applications.
https://thenikhilk.com/2019/10/26/tnk-sp-ig/
MIT License
15 stars 16 forks source link

Failed to load data #4

Closed nschah closed 4 years ago

nschah commented 4 years ago

Describe the bug Error occurs after adding the webpart to the page. Changing username to other public profiles and own doesnt resolve it

An error occurred - Failed to load data, please check WebPart settings or try again later.

Bildschirmfoto 2019-11-07 um 11 28 10

Console:

Bildschirmfoto 2019-11-07 um 12 06 15
thenikhilk commented 4 years ago

could you also give network details? any failed requests from cdn?

image

thenikhilk commented 4 years ago

if the issues are related to the CDN like 404 you could just host a CDN within SharePoint yourself and not rely on any external dependency: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/hosting-webpart-from-office-365-cdn

nschah commented 4 years ago

Network

Bildschirmfoto 2019-11-07 um 12 18 57
thijsvgils commented 4 years ago

As stated in the other issue, same errors for me. Also no 404 errors in the network pane!

thenikhilk commented 4 years ago

Just to confirm this is a SharePoint online page?

thijsvgils commented 4 years ago

Just to confirm this is a SharePoint online page?

yes that's correct

nschah commented 4 years ago

Yes a modern page

thenikhilk commented 4 years ago

Just uninstall the previous web part and install this version in the ZIP file, I've removed all references to the CDN it's all native now.

Just upload this Web Part in the App Catalog, and deploy image

Go to the site where you want to use and add it as an App image image

Add the web part on the web page image

thenikhilk-sp-ig-feed.zip

Let me know if this works

thijsvgils commented 4 years ago

I tried it, but same error:

image

quite sure it is something in the JS that is missing/wrong...

Thank you for your support, appreciate it!

thenikhilk commented 4 years ago

I'll look into this further, maybe browser support for fetch,

Till the time I'll ask for the browser details and any other environment details you can share you used and may be you could try making a build at your end https://github.com/thenikhilk/sharepoint-instagram-feed/blob/master/documentation/developer-guide.md

thenikhilk commented 4 years ago

@nschah @thijsvgils Fixed. Changed the logic and dependencies, included extra error handling, removed CDN dependencies, and here you go: image

Updated package: thenikhilk-sp-ig-feed.zip

Let me know if it works for you now, then I'll merge to master and create a new release changes in #5

thenikhilk commented 4 years ago

Fixed issue please refer to the release package for web part in v1.0.2 https://github.com/thenikhilk/sharepoint-instagram-feed/releases

@nschah @thijsvgils I hope your issue was solved I've tested them out on multiple tenants, they seem to be working now image

thijsvgils commented 4 years ago

Hi @thenikhilk, No errors on the page this time, but still not showing insta posts. This is the error i'm getting in my console: image

This is what i see on the page: image

thenikhilk commented 4 years ago

any way we could connect over chat or screen share?

thijsvgils commented 4 years ago

Sure, shall i send you a MS Teams call to your email address? I can meet in 1,5 hour, would that be ok?

thenikhilk commented 4 years ago

ok, or just mail me the invite link. I'll join there

manFER83 commented 4 years ago

I´ve been having the same problem.

nschah commented 4 years ago

@thenikhilk @thijsvgils any News to the issue? On my page its working sometimes, but mostly not.

Bildschirmfoto 2019-11-11 um 12 03 45
thijsvgils commented 4 years ago

@nschah @thenikhilk Same here, sometimes it works sometimes it doesnt. @thenikhilk is still looking into it.

thenikhilk commented 4 years ago

I have a fix for this, I'll be publishing it over the weekend

TAKSoftware commented 4 years ago

Hi Nikhil, Please can you fix the issue and update the repository, as i am not able to fix it. It would be great helpful, if you do so.

patrickb2012 commented 4 years ago

@thenikhilk Any update?

BennyD-Savaco commented 4 years ago

Hi, i've installed the spkkg from the repository but it still shows version 1.0.1.0, when will version 1.0.2 be available?

thenikhilk commented 4 years ago

Please try out this version, it should work: thenikhilk-sp-ig-feed.zip

The thing is even though I do acknowledge the issue exists, it has never been a repro in any of the environments I've used, but I have seen it repro in my sync up with @thijsvgils . SO it becomes hard debug it.

BennyD-Savaco commented 4 years ago

I've installed version 1.0.3, now the app shows 3 blank grey squares so no content from Instagram, when i inspect the webpart in chrome, it says "not-logged-in client-root"

thenikhilk commented 4 years ago

@BennyD-Savaco could you provide me some additional debugging info by

MattVandepitte commented 4 years ago

@thenikhilk FYI I'm a colleague of BennyD-Savaco The problem were having is that the webparts keeps sending requests. It looks like we are in an endless loop of requests: image We are always getting a response(statuscode 200) and the webpage is returned: image But we keep seeing the tree grey squares.

thenikhilk commented 4 years ago

Your analysis is correct, it is doing so to try out different proxy servers if one doesn't work. But if all fail for a long duration there is really nothing else i can do other that use access tokens. These proxies are what empower this web part