rstedman / tfs-pullrequest-dashboard

tfs dashboard for pullrequests across all repos
MIT License
30 stars 29 forks source link

Widget Failed to Load #47

Open mattritchie opened 4 years ago

mattritchie commented 4 years ago

image

Hi,

I'm new to Azure DevOps and I've just installed this into my organisation getting the following errors.

image

Have i done something wrong? I didn't have the option to configure anything, so i'm not sure what to do? Is there any debugging logs anywhere?

mattritchie commented 4 years ago

Just looking around in other issues, noticed problems only affecting chrome. Loaded in IE and it has loaded successfully

furkick commented 4 years ago

Having the same issue on Chrome: Version 75.0.3770.142 (Official Build) (64-bit)

I can also confirm that IE 1: Version 11.885.17134.0 is working as intended.

Two HTTP GET errors:

https://scaniagb.extmgmt.visualstudio.com/_apis/ExtensionManagement/InstalledExtensions/ryanstedman/tfs-pullrequest-dashboard/Data/Scopes/User/Me/Collections/%24settings/Documents/dateFormat

message: "TF1590005: Document with id $settings does not exist in collection User for {GUID} = allProjects"

https://scaniagb.extmgmt.visualstudio.com/_apis/ExtensionManagement/InstalledExtensions/ryanstedman/tfs-pullrequest-dashboard/Data/Scopes/User/Me/Collections/%24settings/Documents/allProjects

"TF1590005: Document with id $settings does not exist in collection User for {GUID} = allProjects"

This does not occur all the time, seems to be random.

MikeWilliams-UK commented 4 years ago

It's happening to me as well [Chrome Version 75.0.3770.142 (Official Build) (64-bit)] However I find that if I refresh the screen it displays.

rstedman commented 4 years ago

this has been fixed in version 2.3.1

markshiffer commented 4 years ago

this has been fixed in version 2.3.1

Using version 2.3.1 on TFS on-prem and Chrome browser I am still seeing this issue. It will load once, but then all subsequent loads by any other user result in a failure to load. If there is any additional info or diagnostics I can provide for you, I would be happy to do so.

rstedman commented 4 years ago

What version of TFS on prem do you have? I only have access to a 2018.2 on-prem instance, which will make troubleshooting difficult if you are on a different version. I am not seeing the same issue on 2018.02.

When you have the dashboard widget open, could you open chrome developer tools and find appConfig.service.ts, and look for the following block of code: image

Does the code look the same for you? If not, try ctrl+f5 to force a cache refresh (TFS set a cache-control header of 1 year when fetching *.js files for extensions, which can cause you not to get updates unless you force a cache refresh).

If the code does look the same, are you able to set a breakpoint on the if (pageContext.navigation.routeId) { line, and let me know what the values of pageContext.navigation.routeId and pageContext.hubsContext.selectedHubId are.

markshiffer commented 4 years ago

I have on-prem 2018.2 as well: Version 16.131.27701.1, using Chrome. I must not be looking in the correct place. I am not able to find appConfig.service.ts in the code. What screen are you on when you are using CDT? I tried from a custom dashboard with the widget on it, again with the widget config open and then from the Pull Request Dashboard under the Code tab.

markshiffer commented 4 years ago

I do see the following error in CDT when the widget is not working. I did not notice this when it was working though:

 Content?bundle=vss-b…ZnasnpanuPQzGJ0=:15 Mixed Content: The page at 'https://tfs.[...].com/tfs/DefaultCollection/Marketing/_apps/hub/ryanstedman.tfs-pullrequest-dashboard.tfs-pullrequest-dashboard' was loaded over HTTPS, but requested an insecure resource 'http://tfsapplicationserver:8080/tfs/_apis/public/gallery/publisher/ryanstedman/extension/tfs-pullrequest-dashboard/2.3.1/assetbyname/index.html'. This request has been blocked; the content must be served over HTTPS.

rstedman commented 4 years ago

This seems like a server configuration issue. It looks like your tfs server is configured to use SSL but for some reason it's serving extensions over http, which the browser will refuse to load. This is not something I have any control over - maybe your server admin can look into it?