cancel
Showing results for 
Search instead for 
Did you mean: 

401- UNAUTHORIZED - Simulation error in commerce cloud

sharanabasappa01
Explorer
0 Kudos

Hi,

We are getting the below error while simulating the order:

{"instant":{"epochSecond":1699953622,"nanoOfSecond":247227520},"thread":"hybrisHTTP21","level":"INFO","loggerName":"com.siemensgamesa.shop.sgrecore.service.simulation.LoggingRequestInterceptor","message":"Response status: 401 UNAUTHORIZED","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","contextMap":{"RemoteAddr":"[13.81.80.128] ","Tenant":""},"threadId":129,"threadPriority":5,"origin":"PLATFORM"}

It is an intermittent issue not occurring regularly, we are using the basic creds and while simulation those are passing as expected but still, we are facing this issue/error.

If someone has experience with similar issues kindly help us with this.

Accepted Solutions (0)

Answers (3)

Answers (3)

Harish_Vatsa
Active Contributor

Dear sharanabasappa01,

If credentials used are correct, kindly make sure there is no network disruptions, and if tokens are being used, then please check they are not expired and have proper validity.

Thanks,

VinayKumarS
Active Contributor
0 Kudos

did you print the credentials when you got the 401?

sharanabasappa01
Explorer
0 Kudos

yes, we printed for both failure and success case, credentials are same.

VinayKumarS
Active Contributor
0 Kudos

Did you checked the credentials? is it adding any space or extra param due to any wierd condition or something. may be you can write some script and schedule it to access the url. then you will come to know.

sharanabasappa01
Explorer
0 Kudos

The credentials are passing correctly. For the same credentials we get successful simulations, the 401 error is intermittent.