Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I got 401 ERROR sometimes not always.

JY 김 October 24, 2018

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: oasis.bot


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: oasis.bot

2018-10-24 15:44:18,196 WARN [catalina-exec-3955] [confluence.util.profiling.DurationThresholdWarningTimingHelperFactory] logMessage Execution time for publishing event com.atlassian.confluence.event.events.content.page.PageCreateEvent@5d8eed6a[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: oasis.bot

2018-10-24 15:44:26,228 WARN [catalina-exec-3653] [atlassian.seraph.auth.DefaultAuthenticator] login login : `oasis.bot` 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 Champion
December 23, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events