404 error during octokit pull request #2239
-
Hi @gr2m , I am using Octokit npm package to retrieve list of pull requests from an Enterprise Github account by passing my personal access token as an auth strategy. For some reason I have been getting 404 message in the status after running I have confirmed the url returned by the method is also correct and the token setting also include "repo" as enabled but still not luck. Please see message below:
Any help would be greatly appreciated to figure out why octokit returns 404 despite that I am able to log in from my browser. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Hi @abhimehta23! Thanks for reaching out. From the logs you've shared, it looks like your request is going to Can you share your code so we can help you debug? |
Beta Was this translation helpful? Give feedback.
-
@timrogers quick question - are these API's only applicable for Github or they can be used with GitLab? |
Beta Was this translation helpful? Give feedback.
Hi @abhimehta23! Thanks for reaching out.
From the logs you've shared, it looks like your request is going to
https://github.com/{owner}/{repo}/pulls?branch=abhi
- i.e.{owner}
and{repo}
are not getting replaced with the right values.Can you share your code so we can help you debug?