Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Bug: New /project/project-slug/pipeline getting 404 #44

Open
eddiewebb opened this issue Aug 6, 2019 · 5 comments
Open

Bug: New /project/project-slug/pipeline getting 404 #44

eddiewebb opened this issue Aug 6, 2019 · 5 comments

Comments

@eddiewebb
Copy link

eddiewebb commented Aug 6, 2019

What is the Problem?

I am seeing 404 "project not found" messages on new API endpoint

What was expected behavior?

I expected a 200/202 and listing of recent pipelines

Can you recreate it?

Yes. Using the API url in these docs, or the generated openAPI schema |

Below is curl snippets that can be used.

# i can trigger pipelines (you can too if you want
curl --request POST   --url 'https://circleci.com/api/v2/project/gh%2Feddiewebb%2Fcircleci-queue/pipeline?circle-token=minenotyours'   --header 'accept: application/json'
{"number":34,"state":"pending","id":"1ca33a79-8711-40bd-999d-e4308bab1ed3","created_at":"2019-08-06T21:24:12.143Z"}

# but not list them
curl --request GET \
  --url 'https://circleci.com/api/v2/project/gh%2Feddiewebb%2Fcircleci-queue/pipeline?circle-token=minenotyours' \
  --header 'accept: application/json'
{"message":"Project not found"}

a few other v2 project APis like checkout keys work fine as well.

@eddiewebb eddiewebb changed the title Bug: New /poject-slug/pipeline API does not seem to function as documented Bug: New /project/project-slug/pipeline getting 404 Aug 6, 2019
@ilyapuchka
Copy link

I have error even on POST requests: curl -u ${CIRCLECI_TOKEN}: -X POST "Content-Type: application/json" -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{}' https://circleci.com/api/v2/project/github/Babylonpartners/Stevenson/pipeline

always results in project found message. The project is configured with pipelines.

@shroomist
Copy link

same here, opening URL in browser does yield the build history though.

@sulami
Copy link
Contributor

sulami commented Oct 16, 2019

This sounds like you might have the wrong token. If you open the URL in the browser, it will authenticate using your session cookie (assuming you're logged in), which is why it works. I'd recommend double-checking the token you're supplying if you're getting 404s for projects that should be working.

@shroomist
Copy link

My bad, I've been trying to use Project Api token not a Personal Api Token.

@airtonix
Copy link

airtonix commented Mar 9, 2021

switched to using a personal token and still getting this error.

this EXACT api call was working two days ago and now for no obvious reason it fails.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants