Getting Error While trying to fetch the pipeline configurations

Prabir Kumar Biswas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2023

HI Bitbucket Team, 

I want to get the pipeline configurations for the repository I created. I am trying to use the pipeline_config REST API endpoint. I have provided all the parameters correctly, but I am getting errors as shown below - 

The Rest call - 

--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [redacted]'
This is the response I am getting - 
{
    "error": {
        "message": "Not found",
        "detail": "Repository {5bd42b85-5c49-4b15-bd6b-ee462fec8b21} does not exist for account {7572e98b-412d-40e1-ba99-7a5921188479}.",
        "data": {
            "key": "account-service.repository.not-found",
            "arguments": {
                "uuid": "{5bd42b85-5c49-4b15-bd6b-ee462fec8b21}"
            }
        }
    }
}

Here Workspace - prabirws and Repository - prabirproject both are valid. I can confirm this with the below call - 

--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [redacted]''
I am getting proper details of the repository "prabirproject"
Please let me know what I am missing here. 

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 14, 2023

G'day @Prabir Kumar Biswas 

This error typically happens if no pipelines are enabled on the repository, so can you verify that the pipeline has been enabled on that specific repository?

You can do so by navigating to repository setting > pipeline > settings, and if not, please enable it first and let me know if that works.

Thanks,
Syahrul

Mateusz Kyc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 26, 2023

@Syahrul there is issue if you enable pipelines via API (https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-put) you can use other elements (ie.: environments) via API but you'd still need to click over UI to see those in UI. Is that known issue? 

Like Sabine Mayer likes this
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2023

Hey @Mateusz Kyc 

Can you create a new community thread? We can look into it, as it's a different issue from this original post.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events