Hello Community,
I'm having the following. When requesting brands to
https://showsport.vtexcommercestable.com.br/api/catalog_system/pvt/brand/list
Sometimes it returns the brands and sometimes it returns this:
{
"error": {
"code": "1",
"message": "Acesso não autorizado",
"exception": {
"ClassName": "Vtex.Practices.ServiceModel.Client.Exceptions.UnauthorizedException",
"Message": "Acesso não autorizado",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Vtex.Practices.ServiceModel.ServiceAuthorizationFilterAttribute.OnAuthorization(HttpActionContext actionContext)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.OnAuthorizationAsync(HttpActionContext actionContext, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.Tracers.AuthorizationFilterAttributeTracer.<>c__DisplayClass4.<<OnAuthorizationSyncCore>b__1>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nOnAuthorization\nVtex.Practices.ServiceModel, Version=7.0.0.30, Culture=neutral, PublicKeyToken=null\nVtex.Practices.ServiceModel.ServiceAuthorizationFilterAttribute\nVoid OnAuthorization(System.Web.Http.Controllers.HttpActionContext)",
"HResult": -2146233088,
"Source": "Vtex.Practices.ServiceModel",
"WatsonBuckets": null
}
}
}
It's posible there is an authorization issue with my user on this store?
My regards,
Tomás