Does not map api error

When calling one of my api in n8n it returns the expected error but when trying to catch the error in current error there is simply no option, it is just undefined, is there something that has to be passed to the weweb for it to identify?

  • name: “Error”

stack: “Error: Request failed with status code 400 at e.exports (https://editor-cdn.weweb.io/public/js/chunk-vendors.792b3bba.js:1:120680) at e.exports (https://editor-cdn.weweb.io/public/js/chunk-vendors.792b3bba.js:1:123139) at XMLHttpRequest.w (https://editor-cdn.weweb.io/public/js/chunk-vendors.792b3bba.js:1:115226)”

message: “Request failed with status code 400”

isAxiosError: true

toJSON: function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}

config

adapter: function(e){return new Promise((function(t,n){var p,g=e.data,f=e.headers,m=e.responseType;function A(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener(“abort”,p)}i.isFormData(g)&&delete f[“Content-Type”];var =new XMLHttpRequest;if(e.auth){var v=e.auth.username||“”,y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):“”;f.Authorization=“Basic “+btoa(v+”:”+y)}var b=a(e.baseURL,e.url);function w(){if(){var i="getAllResponseHeaders"in ?l(.getAllResponseHeaders()):null,s=m&&“text”!==m&&“json”!==m?.response:.responseText,o={data:s,status:.status,statusText:.statusText,headers:i,config:e,request:};r((function(e){t(e),A()}),(function(e){n(e),A()}),o),=null}}if(.open(e.method.toUpperCase(),o(b,e.params,e.paramsSerializer),!0),.timeout=e.timeout,"onloadend"in ?.onloadend=w:.onreadystatechange=function(){&&4===.readyState&&(0!==.status||.responseURL&&0===.responseURL.indexOf(“file:”))&&setTimeout(w)},.onabort=function(){&&(n(c(“Request aborted”,e,“ECONNABORTED”,)),=null)},.onerror=function(){n(c(“Network Error”,e,null,)),=null},.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+“ms exceeded”:“timeout exceeded”,i=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,i.clarifyTimeoutError?“ETIMEDOUT”:“ECONNABORTED”,)),=null},i.isStandardBrowserEnv()){var C=(e.withCredentials||u(b))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;C&&(f[e.xsrfHeaderName]=C)}"setRequestHeader"in &&i.forEach(f,(function(e,t){“undefined”===typeof g&&“content-type”===t.toLowerCase()?delete f[t]:.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(.withCredentials=!!e.withCredentials),m&&“json”!==m&&(.responseType=e.responseType),“function”===typeof e.onDownloadProgress&&.addEventListener(“progress”,e.onDownloadProgress),“function”===typeof e.onUploadProgress&&.upload&&.upload.addEventListener(“progress”,e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){&&(n(!e||e&&e.type?new h(“canceled”):e),.abort(),=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener(“abort”,p))),g||(g=null),_.send(g)}))}

timeout: 0

xsrfCookieName: “XSRF-TOKEN”

xsrfHeaderName: “X-XSRF-TOKEN”

maxContentLength: -1

maxBodyLength: -1

validateStatus: function(e){return e>=200&&e<300}

url: “my n8n”

method: “post”

data: “{“tipo”:“criar_cliente”,“nome”:“Hélio”,“email”:"teste2@teste.com”,“mobilePhone”:“11111111111”,“cpfCnpj”:“11111111111”}"

withCredentials: false

transitionalObject

transformRequestArray(1)

transformResponseArray(1)

headersObject

paramsObject

requestObject

response

status: 400

statusText: “”

data

erro: “O CPF ou CNPJ informado é inválido.”

headersObject

config

adapter: function(e){return new Promise((function(t,n){var p,g=e.data,f=e.headers,m=e.responseType;function A(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener(“abort”,p)}i.isFormData(g)&&delete f[“Content-Type”];var =new XMLHttpRequest;if(e.auth){var v=e.auth.username||“”,y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):“”;f.Authorization=“Basic “+btoa(v+”:”+y)}var b=a(e.baseURL,e.url);function w(){if(){var i="getAllResponseHeaders"in ?l(.getAllResponseHeaders()):null,s=m&&“text”!==m&&“json”!==m?.response:.responseText,o={data:s,status:.status,statusText:.statusText,headers:i,config:e,request:};r((function(e){t(e),A()}),(function(e){n(e),A()}),o),=null}}if(.open(e.method.toUpperCase(),o(b,e.params,e.paramsSerializer),!0),.timeout=e.timeout,"onloadend"in ?.onloadend=w:.onreadystatechange=function(){&&4===.readyState&&(0!==.status||.responseURL&&0===.responseURL.indexOf(“file:”))&&setTimeout(w)},.onabort=function(){&&(n(c(“Request aborted”,e,“ECONNABORTED”,)),=null)},.onerror=function(){n(c(“Network Error”,e,null,)),=null},.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+“ms exceeded”:“timeout exceeded”,i=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,i.clarifyTimeoutError?“ETIMEDOUT”:“ECONNABORTED”,)),=null},i.isStandardBrowserEnv()){var C=(e.withCredentials||u(b))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;C&&(f[e.xsrfHeaderName]=C)}"setRequestHeader"in &&i.forEach(f,(function(e,t){“undefined”===typeof g&&“content-type”===t.toLowerCase()?delete f[t]:.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(.withCredentials=!!e.withCredentials),m&&“json”!==m&&(.responseType=e.responseType),“function”===typeof e.onDownloadProgress&&.addEventListener(“progress”,e.onDownloadProgress),“function”===typeof e.onUploadProgress&&.upload&&.upload.addEventListener(“progress”,e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){&&(n(!e||e&&e.type?new h(“canceled”):e),.abort(),=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener(“abort”,p))),g||(g=null),_.send(g)}))}

timeout: 0

xsrfCookieName: “XSRF-TOKEN”

xsrfHeaderName: “X-XSRF-TOKEN”

maxContentLength: -1

maxBodyLength: -1

validateStatus: function(e){return e>=200&&e<300}

url: “my n8n”

method: “post”

data: “{“tipo”:“criar_cliente”,“nome”:“Hélio”,“email”:"teste2@teste.com”,“mobilePhone”:“11111111111”,“cpfCnpj”:“11111111111”}"

withCredentials: false

transitionalObject

transformRequestArray(1)

transformResponseArray(1)

headersObject

paramsObject

requestObject

17:17:56

  • Setting value for user

id: “85e1210e-8941-48e1-931a-be5e32bc1bef”

aud: “authenticated”

role: “authenticated”

email: “teste2@teste.com

email_confirmed_at: “2024-03-27T04:44:19.116131Z”

phone: “”

confirmed_at: “2024-03-27T04:44:19.116131Z”

last_sign_in_at: “2024-03-27T17:11:12.419778Z”

created_at: “2024-03-27T04:44:19.110983Z”

updated_at: “2024-03-28T19:36:45.927594Z”

app_metadataObject

user_metadataObject

identitiesArray(1)

rolesArray(1)

_sessionObject

postman:

Hi, even if it display undefined, could you try to log the error, it may contain something only when executed