circleci-docs
circleci-docs copied to clipboard
Get all Pipelines sometimes gives an invalid next-page-token
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.
Hi @Snarik , thank you for reaching out. We're looking into this and will get back to you when we have further info available!
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.
Were they able to replicate?
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>
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.
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.
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.