Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST API doesn't work in TeamCity build

So here's the problem:

I try to get some info from confluence page using python requests.

The code looks something like this

auth=(USER, PWD),
params={'expand': 'version,'})


I can access the page locally and it works just fine, even with the basic auth.

But when I try to run TC build that executes this code (using the same credentials) I get the following error:

{"statusCode":404,"data":{"authorized":false,"valid":true,"allowedInReadOnlyMode":true,"errors":[],"successful":false},"message":"No content found with id: ContentId{id=(page_id))}","reason":"Not Found"}

Although this page exists and judging by log, URL is not modified in any way.

This TC build also uses other Atlassian rest apis (jira, bitbucket) and there are no errors.

1 answer

0 votes
Fabian Lim Community Leader Dec 24, 2021

HI @rezeda,

Try the recommendations posted in here and see if they resolve your issue:


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

987 views 7 42
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you