circleci-docs icon indicating copy to clipboard operation
circleci-docs copied to clipboard

Get all Pipelines sometimes gives an invalid next-page-token

Open Snarik opened this issue 3 years ago • 5 comments

Description

Im writing a script to parse a pipeline and get all instances of it. I'm looking for specific tags. Occasionally, the script encounters a next-page-token that simply returns {u'message': u'Not Found'} and the linked list ends. Would be nice if we could get some guarantees on next-page-tokens being valid.

Location

Circle CI v2 API

Steps to Reproduce

Im querying the GET /project/slug/pipeline endpoint. Note I am explicitly not including a branch, as I am interested in tags, which seems to be precluded if you specify a specific branch. Most requests give a valid page, but occasionally I get an invalid one. Not entirely sure why that would happen.

Snarik avatar Mar 05 '22 01:03 Snarik

Hi @Snarik , thank you for reaching out. We're looking into this and will get back to you when we have further info available!

kbatuigas avatar Mar 14 '22 21:03 kbatuigas

Hi @Snarik I just wanted to give you an update that our engineers will be taking a look and have created an internal ticket for this as well. Thanks for your patience.

kbatuigas avatar Mar 25 '22 19:03 kbatuigas

Were they able to replicate?

Snarik avatar Mar 25 '22 23:03 Snarik

Were they able to replicate?

Sent via Superhuman ( @.*** )

On Fri, Mar 25, 2022 at 12:44 PM, kbatuigas < @.*** > wrote:

Hi @ Snarik ( https://github.com/Snarik ) I just wanted to give you an update that our engineers will be taking a look and have created an internal ticket for this as well. Thanks for your patience.

— Reply to this email directly, view it on GitHub ( https://github.com/circleci/circleci-docs/issues/6472#issuecomment-1079379673 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/ABGHYQF3GLBUBCKXQNN6IBLVBYJR3ANCNFSM5P67RQAQ ). You are receiving this because you were mentioned. Message ID: <circleci/circleci-docs/issues/6472/1079379673 @ github. com>

Snarik avatar Mar 25 '22 23:03 Snarik

Description

Im writing a script to parse a pipeline and get all instances of it. I'm looking for specific tags. Occasionally, the script encounters a next-page-token that simply returns {u'message': u'Not Found'} and the linked list ends. Would be nice if we could get some guarantees on next-page-tokens being valid.

Location

Circle CI v2 API

Steps to Reproduce

Im querying the GET /project/slug/pipeline endpoint. Note I am explicitly not including a branch, as I am interested in tags, which seems to be precluded if you specify a specific branch. Most requests give a valid page, but occasionally I get an invalid one. Not entirely sure why that would happen.

Blineberger avatar Jul 10 '22 08:07 Blineberger

Hi @Snarik , thank you very much for your patience. Our engineers were not able to replicate -- are you still experiencing this? I'd recommend opening a ticket with our Support team to look more closely at your pipeline/script.

kbatuigas avatar Aug 23 '22 19:08 kbatuigas

Hi @Snarik , we'll go ahead and close this issue for now, but definitely reach back out and also get in touch with our Support team if you need any more help.

kbatuigas avatar Sep 02 '22 19:09 kbatuigas