Skip to content
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

Fail to fetch pull requests due to IP restriction #5998

Closed
eml-c2829 opened this issue May 11, 2024 · 4 comments
Closed

Fail to fetch pull requests due to IP restriction #5998

eml-c2829 opened this issue May 11, 2024 · 4 comments

Comments

@eml-c2829
Copy link

eml-c2829 commented May 11, 2024

Steps to Reproduce:

  1. All VSCode source control features are working well e.g. sync, push,.. are good.
  2. Install the extension Github Pull Request
  3. Select the tab Github Pull Request and take a look at the window Output. The same error keeps throwing.

2024-05-11 21:51:43.044 [debug] VariableSubstitution> ${user} -> ${user}
2024-05-11 21:51:43.045 [debug] GitHubRepository> Fetch pull request category is:open author:${user} - enter
2024-05-11 21:51:43.045 [debug] GitHubRepository> Fetch metadata - enter
2024-05-11 21:51:43.045 [debug] GitHubRepository> Fetch metadata for repo - enter
2024-05-11 21:51:43.045 [debug] RateLimit> Extension rate limit remaining: 139, /repos/{owner}/{repo}
2024-05-11 21:51:43.208 [error] GitHubRepository> Fetching all pull requests failed: HttpError: Although you appear to have the correct authorization credentials, the EMLTeams organization has an IP allow list enabled, and your IP address is not permitted to access this resource.

I did try:

  1. Remove and install Github Pull Request extension.
  2. Some actions mentioned here Unable to login to github  github/vscode-github-actions#77

Nothing works.

@alexr00
Copy link
Member

alexr00 commented May 13, 2024

Have you tried adding your IP to the allow list?

@alexr00 alexr00 added the info-needed Issue requires more information from poster label May 13, 2024
@eml-c2829
Copy link
Author

It would be impossible to ask the IT department to whitelist my home's IP address. However, my point is that the Pull Request extension does not work, meanwhile, others work.

My account belongs to an organization, that has enabled the IP whitelist feature, that's why I have to enable my VPN when I need to access some organization-owned repositories on GitHub.com or push my codes to Github.com. Once the VPN is enabled, everything works perfectly.

However, somehow the Pull Request extension did not work. I kept receiving the error of IP restriction.

That's why I think there's something wrong with the Pull Request itself. Maybe I am wrong !?

@eml-c2829
Copy link
Author

Just realized that the Pull Request extension worked when I was in the company office but not at my home. It's obviously about IP thing.

However, I would like to emphasize again that the Pull Request extension itself has the problem. :(

@alexr00
Copy link
Member

alexr00 commented May 21, 2024

Just realized that the Pull Request extension worked when I was in the company office but not at my home. It's obviously about IP thing.

However, I would like to emphasize again that the Pull Request extension itself has the problem. :(

It sounds like GitHub is intentionally limiting the IPs that can use GitHub API base on your org's settings. I don't think there's anything that this extension can do to change this.

@alexr00 alexr00 closed this as completed May 21, 2024
@alexr00 alexr00 added as-designed and removed info-needed Issue requires more information from poster labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants