API error {"type": "error", "error": {"message": "target_user"}}

Issue #16424 new
Chris Stryczynski
created an issue

https://api.bitbucket.org/2.0/repositories/blissappnorway/infrastructure-staging/pipelines_config/variables/?pagelen=200&page=1

{"type": "error", "error": {"message": "target_user"}}

What does this error mean? This has worked in the past...

Comments (7)

  1. Jesse Yowell staff

    Chris,

    Thanks for the information -- seems there might be something wrong with the API. I am also getting this error, so I've brought it up with the API/Pipelines team.

    Jesse

  2. Bhavik Shah

    I am getting same error. Strange part is same request runs perfect with Postman, but when I ran this inside piepline it is throwing above error.

    curl -X POST -is -H 'Authorization:Basic XXXX' -H 'Content-Type:application/json' https://api.bitbucket.org/2.0/repositories/{xxxxx}/xxxx/pipelines/ -d '{"target":{"ref_type":"branch","type":"pipeline_ref_target","ref_name":"master"}}'
    

    Error : {"type": "error", "error": {"message": "target_user"}}

  3. Log in to comment