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

I got 401 ERROR sometimes not always.

I create page and get attachment and upload attachment by REST. 

I send REST request page by page. so it's many request. (about 300 pages)

In processing, I got 401 Error. And log says like bottom. 

But, I send auth info in request header. So, It's not normal to get 401 error message. 

Is that possible that authentication is failed if previous rest request get exception? 


2018-10-24 15:44:18,096 WARN [catalina-exec-3514] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
[com.atlassian.confluence.api.impl.service.content.AttachmentServiceImpl.addAttachments]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #727416380)
[tx-metadata-provider]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly (Session #148361095)
->[tx-metadata-provider]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly (Session #564901555)
-- url: /main/rest/api/latest/content/895197353/child/attachment | traceId: cbe35945b54ac071 | userName:

2018-10-24 15:44:18,097 WARN [catalina-exec-3514] [service.content.factory.DefaultContentMetadataFactory] getAllMetadataFromProviders API metadata provider module threw an exception attempting to expand metadata. Class : com.atlassian.confluence.plugins.restapi.metadata.content.LabelsModelMetadataProvider provides properties [labels]. Exception org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
-- url: /main/rest/api/latest/content/895197353/child/attachment | traceId: cbe35945b54ac071 | userName:

2018-10-24 15:44:18,196 WARN [catalina-exec-3955] [confluence.util.profiling.DurationThresholdWarningTimingHelperFactory] logMessage Execution time for publishing event[context={},updateTrigger=UNKNOWN,page=page: 1주 (20XX.XX.XX ~ 20XX.XX.XX) v.1 (895197385),suppressNotifications=false,timestamp=1540363446540] took 11655 ms (warning threshold is 5000 ms)
-- url: /main/rest/api/latest/content | traceId: fcefaa5916edccc0 | userName:

2018-10-24 15:44:26,228 WARN [catalina-exec-3653] [atlassian.seraph.auth.DefaultAuthenticator] login login : `` tried to login but they do not have USE permission or weren`t found. Deleting remember me cookie.


1 answer

0 votes
Fabian Lim Community Leader Dec 23, 2021

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 ...

1,132 views 8 44
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