-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NetworkException during extension load #266
Comments
Same here |
Hello all, thanks for reaching out. Would you mind to check on the developer tools console if there is any error? If so, if you could share the details would be helpful to understand what's happening. I am able to access the extension normally on my account, therefore, I suspect it can be any type of content blockage or corporate proxy. |
In addition to the type of error listed in the original post above (there are multiple occurrences of it listed), I see multiple errors like this one: But accessing that URL (and the URL in the original message) directly in a browser returns a JSON response successfully, so I do not think the errors are because the URL's are inaccessible. No other parts of DevOps are seeing these kinds of errors. @bergamin @quasarea @Lariel Can I ask how many repositories you have in the project you are seeing this issue in? We have >600. |
It seems an error from the Azure DevOps SDK because I don't have any Fetch.js file from my side. It might be related to the number of repos. Do you have any other azure org/project with less repos that can be tested? Many thanks |
I am having the same issue running Chrome 119.0.6045.105 in Linux (Ubuntu 22.04). The interesting part is if I switch to using Firefox 119.0.1 in Linux (Ubuntu 22.04), the issue is not present. With Firefox I can load the same DevOps URL with no issue and see the list of PRs. |
We have about ~470 repos in this project. Created a study environment in my personal Azure Devops account, with one single project and one repo. There the Pull Request Manager Hub works fine 😅 Back to my work environment, I switched to another project, it has 4 repos, and PRMH works fine too. @cribeiro84 for me the issue shows up, inside or outside the corporate network, it seems to be about the number of repos or something. |
For me we have 356 repos in the project showing this issue. This issue occurs inside and outside of the corporate network. |
I have seen instances where DevOps will throttle high-volume API traffic, so that could be a possible cause here. According to Chrome dev tools, the hub is making >650 API requests on load. The first ~220 are successful, then ~80 fail, then the remainder are mostly successful with some scattered failures. This page suggests there is a 300 call limit with a 60 second renewal: https://learn.microsoft.com/en-us/connectors/visualstudioteamservices/#limits That's not exactly the behavior I have seen, since the page loads in seconds and refreshing immediately still has some successes, but a limit might be a factor. The extension appears to make all the API requests in less than a 1 second period. Maybe a short delay between batches of requests when there are >200 repositories would help. But it also looks like there is an API method that will retrieve pull requests by project rather than by individual repository -- that would eliminate hundreds of API requests and possibly eliminate the issue altogether for any number of repositories. Currently this API method returns 12 pull requests for my project from 9 different repositories. |
I'm experiencing this problem since we have a total of more than 100 open Pull Requests. Either the list completely fails to load or takes a very long time. It would be a huge improvement if the list only loaded PRs included in the saved filters initially and then loaded the rest as needed. |
Same thing happening here - Windows 10, Edge and Chrome browser, but primarily Edge. In addition to this, I have been seeing two other issues:
When I click the X to dismiss this error message: I get this exception in the console: Which corresponds to this code:
There's a 302 request to a URL like this: that has a location like this: The subsequent redirect request results in a 203 Non-Authoritative Information. Each of the 4 response Set-Cookie headers has a red triangle with exclamation point by it with this message on hover: This attempt to set a cookie via a Set-Cookie header was blocked due to user preferences. I was able to resolve this 2nd issue as follows. I'm leaving it here in case someone (probably my future self) runs into this again. In Edge Settings, navigate to Cookies and site permissions, then to Manage and delete cookies and site data. Then Add the following two patterns to the Allow list: That pattern could probably be more narrowly scoped, but frankly I'm tired of dinking with it and just glad it works. |
Found another issue and the reason for it, so adding it here to help anyone else. I use the AdGuard extension in Edge, and in Options -> Stealth Mode, the Hide Referrer from third parties option was enabled. If I disable this option, the error goes away and the page loads normally. This is repeatable. Solution / work around is to disable this option. If anyone knows a better solution, please let me know. |
Hello, thanks for the information. |
Let me provide you the HAR file.
…________________________________
From: Carlos Alessandro Ribeiro ***@***.***>
Sent: Thursday, March 14, 2024 4:23 PM
To: cribeiro84/azure-devops-pull-request-hub ***@***.***>
Cc: Nirav Mistry ***@***.***>; Comment ***@***.***>
Subject: Re: [cribeiro84/azure-devops-pull-request-hub] NetworkException during extension load (Issue #266)
Hello, thanks for the information.
Did you check on your Developer tools console of your browser what is the error that's being raised? It might be many possibilities. Websocket being blocked, cookies, so on. Have you checked your corporate internet policies?
—
Reply to this email directly, view it on GitHub<#266 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BF6C3TNPZ3I6K2FW2JSHMATYYF6Q3AVCNFSM6AAAAAA6S5MMCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXGE3DIMBRGM>.
You are receiving this because you commented.Message ID: ***@***.***>
|
When loading the Pull Request Manager Hub page, no content is loaded and this error displays: "There was an error during the extension load: NetworkException: TF400893: Unable to contact the server. Please check your network connection and try again." This has been happening for several days and for multiple users. Multiple javascript errors like this are also reported in the console:
Fetch.js:122 Unhandled exception in fetch for https://dev.azure.com/xxxx/_apis/git/repositories/xxxx/pullRequests?searchCriteria.repositoryId=&searchCriteria.creatorId=&searchCriteria.includeLinks=true&searchCriteria.reviewerId=&searchCriteria.sourceRefName=&searchCriteria.sourceRepositoryId=&searchCriteria.status=1&searchCriteria.targetRefName=&maxCommentLength=10&%24top=0: TypeError: Failed to fetch
PullRequestsTab.tsx:362 NetworkException: TF400893: Unable to contact the server. Please check your network connection and try again.
at Object. (https://caribeiro84.gallerycdn.vsassets.io/extensions/caribeiro84/pull-request-manager-hub/2.20221212.1/1670855740161/build/static/js/main.ce4e535b.js:2:4088)
at https://caribeiro84.gallerycdn.vsassets.io/extensions/caribeiro84/pull-request-manager-hub/2.20221212.1/1670855740161/build/static/js/main.ce4e535b.js:2:2877
at Object.throw (https://caribeiro84.gallerycdn.vsassets.io/extensions/caribeiro84/pull-request-manager-hub/2.20221212.1/1670855740161/build/static/js/main.ce4e535b.js:2:2982)
at s (https://caribeiro84.gallerycdn.vsassets.io/extensions/caribeiro84/pull-request-manager-hub/2.20221212.1/1670855740161/build/static/js/main.ce4e535b.js:2:1775)
Steps to reproduce the behavior:
Expected behavior
Should load the list of active pull requests.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: