Listing all project releases via the API #24472
-
Hello I am trying to list all releases from a private repo, and I just keep seeing 404 errors. (Private Repo) https://github.com/runtman/testy-mctesttest This has two releases: According to this documentation: https://developer.github.com/v3/repos/releases/ It says I need to use the following:
However, when I use this syntax:
I get a 404 returned from the API.
What am I doing wrong? I have tried with the id’s instead of names and that didn’t work either, I am definitley authing fine as if I remove that then I get a access denied error instead. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi @runtman I believe the answer to this may be as easy as removing the trailing slash from the URL you are trying to get. Using the node Repository as an example, I am able to fetch:
But, when I try to fetch
I get a 404. Let me know if this works! |
Beta Was this translation helpful? Give feedback.
-
That’s embararsing, I do get results but not what I would expect:
Is this because it’s private? I see no download urls etc |
Beta Was this translation helpful? Give feedback.
-
So that’s dumping info and output of the curl request, I don’t see anything useful here |
Beta Was this translation helpful? Give feedback.
-
I need to get good, thanks :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Hey @runtman! I believe the issue here is that you’re creating releases via Git Tags, and not actually creating releases. If you want to be able to list them via this API, you’ll have to do a bit more! Otherwise, you should be able to use the tag list API to see the information on that page. |
Beta Was this translation helpful? Give feedback.
-
Aha! Thanks sir. |
Beta Was this translation helpful? Give feedback.
Hi @runtman
I believe the answer to this may be as easy as removing the trailing slash from the URL you are trying to get. Using the node Repository as an example, I am able to fetch:
But, when I try to fetch
I get a 404.
Let me know if this works!