PageSourceSearch

http://app.onomondo.com/errorLog.746569c678b6ed97b2ce.js

js onomondo.com collected 2026-10-02 02:52:35 UTC 11,291 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkonomondo_app=self.webpackChunkonomondo_app||[]).push([[6039],{57215(e,r,n){n.d(r,{Bj:()=>w,C$:()=>A,Fz:()=>f,Gl:()=>_,Ll:()=>L,P0:()=>T,Sy:()=>j,YQ:()=>y,cy:()=>C,ji:()=>v,uB:()=>b});var t=n(67294),o=n(85532),s=n(16726),i=n(89057),a=n(92160),l=n(49130),c=n(3198),d=n(38364),u=n(5556),h=n.n(u),g=(n(96540),n(38267)),p=n(74848),m=function(e){return(0,g.keyframes)(["0%{background-color:var(--neutral-1);}1%{background-color:",";}100%{background-color:var(--neutral-3);}"],e.theme.copperLight)},x=(g.default.div.withConfig({displayName:"Log__Column",componentId:"sc-12cv4um-0"})(["width:50%;"]),(0,g.default)(c.E).withConfig({displayName:"Log__SystemMessageText",componentId:"sc-12cv4um-1"})(["color:var(--neutral-9);line-height:20px;"]));function f(e){var r="backwards"===e.direction?"end of the logs":"newest logs";return(0,p.jsxs)(x,{size:"1",children:["You have reached the ",r]})}function v(e){var r=e.direction,n=e.time,o="backwards"===r?"older":"newer",s=n?" than ".concat((0,d.Ay)(new Date(n),"yyyy-MM-dd HH:mm",{in:t.n$})):"";return(0,p.jsxs)(i.s,{align:"center",children:[(0,p.jsx)(l.y,{size:"1",mr:"2"}),(0,p.jsxs)(x,{size:"1",children:["Loading ",o,s," logs..."]})]})}function y(e){var r=e.height,n=e.children,t=void 0===n?"No data the last three months":n;return(0,p.jsx)(i.s,{height:"".concat(r,"px"),align:"center",justify:"center",children:(0,p.jsx)(x,{size:"1",align:"center",children:t})})}f.propTypes={direction:h().string},v.propTypes={direction:h().string,time:h().string},y.propTypes={height:h().number,children:h().node};var j=(0,g.default)(s.$).withConfig({displayName:"Log__StyledFilterButton",componentId:"sc-12cv4um-2"})(["color:var(--neutral-11);:hover,:active,:focus,:target,&[data-state='open']{background-color:var(--neutral-a4);}"]),b=(0,g.default)(s.$).withConfig({displayName:"Log__StyledFilterActionButton",componentId:"sc-12cv4um-3"})(["color:",";:hover{background-color:var(--neutral-a3);}:active{background-color:var(--neutral-a4);}"],function(e){return e.isSubmitButton?"var(--neutral-12)":"var(--neutral-11)"}),w=(0,g.default)(a.K).withConfig({displayName:"Log__StyledIconButton",componentId:"sc-12cv4um-4"})(["position:absolute;top:12px;right:12px;:hover,:active,:focus,:target,&[data-state='open']{background-color:var(--neutral-3);}"]),k=(0,g.default)(o.a).withConfig({displayName:"Log__StyledBox",componentId:"sc-12cv4um-5"})(["background-color:var(--neutral-3);border:1px solid var(--neutral-a4);border-radius:var(--radius-3);",""],function(e){return e.scroll&&(0,g.css)(["overflow-y:auto;max-height:106px;"])});function C(e){var r=e.children,n=e.scroll;return(0,p.jsx)(k,{m:"2",p:"3",position:"relative",scroll:n,children:(0,p.jsx)(i.s,{justify:"between",children:r})})}C.propTypes={children:h().node,scroll:h().boolean};var T=(0,g.default)(i.s).withConfig({displayName:"Log__LogLine",componentId:"sc-12cv4um-6"})(["white-space:nowrap;"]),A=(0,g.default)(o.a).withConfig({displayName:"Log__StyledBoxWrapper",componentId:"sc-12cv4um-7"})(["width:100%;background-color:",";border-radius:var(--radius-3);"," &:hover{cursor:",";background-color:var(--neutral-3);}font-family:",";"],function(e){return e.toggled?"var(--neutral-3)":"var(--color-panel)"},function(e){return e.playAnimation&&(0,g.css)(["animation:"," 2.5s 1 ease-in;"],m)},function(e){return e.toggled?"default":"pointer"},function(e){return e.theme.font.code}),_=(0,g.default)(c.E).withConfig({displayName:"Log__StyledGrayText",componentId:"sc-12cv4um-8"})(["color:var(--neutral-11);"]);function L(e){var r=e.header,n=e.value;return(0,p.jsxs)(i.s,{gap:"2",children:[(0,p.jsxs)(_,{size:"1",children:[r,":"]}),(0,p.jsx)(c.E,{size:"1",children:n||"N/A"})]})}L.propTypes={header:h().string,value:h().string}},77870(e,r,n){var t=n(89057),o=n(3198),s=n(5556),i=n.n(s),a=(n(96540),n(38267)),l=n(74848),c=(0,a.default)(t.s).withConfig({displayName:"UTCTimeDisclaimerBar__StyledFlex",componentId:"sc-a39izt-0"})(["background-color:var(--neutral-a2);color:var(--neutral-10);border-radius:var(--radius-2);"]);function d(e){var r=e.headerText,n=e.spacing;return(0,l.jsxs)(c,{gap:"".concat(n,"px"),align:"center",px:"2",height:"36px",children:[(0,l.jsx)(o.E,{size:"1",children:"Time stamp (UTC+0)"}),(0,l.jsx)(o.E,{size:"1",children:r})]})}
1d.propTypes={headerText:i().string,tooltipText:i().string,spacing:i().number};const u=d;n.d(r,["A",0,u])},60884(e,r,n){n.r(r),n.d(r,{default:()=>Q});var t=n(89057),o=n(3198),s=n(16726),i=n(86924),a=n(96540),l=n(37283),c=n(60436),d=n(5544),u=n(85532),h=n(66732),g=n(70229),p=n(76318),m=n(58747),x=n(76751),f=n(5556),v=n.n(f),y=n(5373),j=n(31848),b=n(11783),w=n(57215),k=n(77870),C=n(10467),T=n(54756),A=n.n(T),_=n(16654),L=n(67467);function I(e){return{id:e.id,createdAt:e.created_at,message:e.message,body:e.body,simId:e.sim_id,simLabel:e.sim_label,sourceType:e.source_type,sourceName:e.source_name,sourceId:e.source_id}}var z=["connectors","webhooks","messages-to-devices"];var S=n(81645),N=n(80045),E=n(38267),B=n(63603),M=n(43370),D=n(74848),G=(0,E.default)(B.A).withConfig({displayName:"ErrorLog__MessageText",componentId:"sc-k599gb-0"})(["min-width:110px;display:inline-block;"]),F=(0,E.default)(i.N).withConfig({displayName:"ErrorLog__StyledLink",componentId:"sc-k599gb-1"})(["color:var(--neutral-12);cursor:pointer;text-decoration:none;"]);function $(e){var r=e.item,n=e.toggled,o=e.onClick,s=e.playAnimation,i=r.id,a=r.createdAt,l=r.message,c=r.body,d=r.simId,u=r.simLabel,h=r.sourceType,g=r.sourceName,p="webhooks"===h||"connectors"===h,m="messages-to-devices"===h,x=(0,M.My)(a);return(0,D.jsxs)(w.C$,{toggled:n,playAnimation:s,pb:n?"5px":"0px",children:[(0,D.jsxs)(w.P0,{overflowY:"hidden",height:n?"24px":"20px",py:"2px",my:"1",mx:"2",align:n?"baseline":"center",onClick:o,toggled:n,children:[(0,D.jsx)(w.Gl,{size:"1",children:x}),(0,D.jsx)(G,{size:"1",weight:"bold",ml:"3",maxWidth:"125px",children:{webhooks:"Webhooks",connectors:"Connectors","messages-to-devices":"POST /messages"}[h]}),(0,D.jsx)(B.A,{size:"1",ml:"3",maxWidth:"100%",children:l})]}),n&&(0,D.jsxs)(w.cy,{scroll:!0,children:[(0,D.jsx)(w.Bj,{variant:"ghost",onClick:o,children:(0,D.jsx)(j.A,{name:"close",onClick:o,height:16,width:16,color:"var(--neutral-10)"})}),(0,D.jsxs)(t.s,{direction:"column",width:"50%",children:[(0,D.jsx)(w.Ll,{header:"Time",value:x}),(0,D.jsxs)(t.s,{gap:"2",children:[(0,D.jsx)(w.Gl,{size:"1",children:"SIM ID:"}),(0,D.jsx)(F,{size:"1",href:"/sims/".concat(d),children:d})]}),(0,D.jsx)(w.Ll,{header:"SIM Label",value:u||"N/A"}),(0,D.jsx)(w.Ll,{header:"Source",value:h}),p&&(0,D.jsx)(w.Ll,{header:"".concat("webhooks"===h?"Webhook":"Connector"," Name"),value:g||"N/A"}),m&&(0,D.jsx)(w.Ll,{header:"Request ID",value:i||"N/A"})]}),(0,D.jsxs)(t.s,{direction:"column",width:"50%",children:[(0,D.jsx)(w.Ll,{header:"Message",value:l}),(0,D.jsx)(w.Ll,{header:"Body",value:c||"N/A"})]})]})]})}$.propTypes={item:v().object,toggled:v().bool,onClick:v().func,playAnimation:v().bool};const W=$;var H=["logType"];function Y(e){var r=e.doc,n=e.onClick,t=e.toggled,o=e.height,s=r.logType,i=(0,N.A)(r,H);return"empty"===s?(0,D.jsx)(w.YQ,{height:o,children:"There haven't been any errors yet."}):(0,D.jsx)(W,{item:i,onClick:n,toggled:t})}Y.propTypes={doc:v().object,onClick:v().func,toggled:v().bool,height:v().number};const O=Y;function P(){var e=function(){var e=(0,_.default)(),r=e.isLoggedIn,n=e.assumedOrganizationId,t=(0,a.useState)(!0),o=(0,d.A)(t,2),s=o[0],i=o[1],l=(0,a.useState)([]),c=(0,d.A)(l,2),u=c[0],h=c[1],g=(0,a.useState)(null),p=(0,d.A)(g,2),m=p[0],x=p[1],f=(0,a.useState)(z),v=(0,d.A)(f,2),y=v[0],j=v[1],b=(0,L.useConfig)(n),w=(0,a.useCallback)((0,C.A)(A().mark(function e(){var n,t,o,s;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=1;break}return e.abrupt("return");case 1:return e.prev=1,n=b({params:{types:y}}),e.next=2,L.default.get("/error-logs",n);case 2:t=e.sent,o=t.data.map(I),h(o.length?o.reverse():[{logType:"empty"}]),i(!1),e.next=4;break;case 3:e.prev=3,s=e.catch(1),x(s),i(!1);case 4:case"end":return e.stop()}},e,null,[[1,3]])})),[r,b,y]);return(0,a.useEffect)(function(){w()},[w,r,n,y]),{loading:s,error:m,data:u,types:y,setTypes:j}}(),r=e.loading,n=e.data,s=e.types,i=e.setTypes,l=(0,a.useState)(s),f=(0,d.A)(l,2),v=f[0],T=f[1],N=(0,a.useState)([]),E=(0,d.A)(N,2),B=E[0],M=E[1],G=(0,a.useRef)();return(0,a.useEffect)(function(){n.length>0&&G.current.scrollToItem(n.length,"end")},[n]),(0,D.jsx)(u.a,{p:"4",asChild:!0,children:(0,D.jsx)(h.Z,{children:(0,D.jsxs)(t.s,{direction:"column",gap:"3",children:[(0,D.jsxs)(t.s,{justify:"between",align:"center",mb:"1",children:[(0,D.jsx)(w.Gl,{size:"2",children:"Errors from the Onomondo platform will be shown here"}),(0,D.jsxs)(g.bL,{children:[(0,D.jsx)(g.l9,{children:(0,D.jsxs)(w.Sy,{variant:"ghost",children:[(0,D.jsx)(j.A,{name:"filter-lines",width:16,height:16,color:"var(--neutral-11)"}),(0,D.jsx)(o.E,{weight:"bold",children:"Filters"})]})}),(0,D.jsx)(g.UC,{width:"240px",align:"end",children:(0,D.jsxs)(t.s,{gap:"3",direction:"column",children:[(0,D.jsx)(o.E,{size:"1",children:"Show errors from"}),(0,D.jsx)(p.b,{children:z.map(function(e){return(0,D.jsx)(p.q,{value:e,checked:v.includes(e),onClick:function(){v.includes(e)?T(v.filter(function(r){return r!==e})):T([].concat((0,c.A)(v),[e]))},children:(0,D.jsx)(o.E,{size:"1",children:(0,S.ZH)(e)})},e)})}),(0,D.jsx)(m.w,{size:"4",color:"var(--neutral-4)"}),(0,D.jsx)(g.bm,{children:(0,D.jsxs)(t.s,{children:[(0,D.jsx)(t.s,{flexGrow:"1",justify:"center",children:(0,D.jsx)(w.uB,{variant:"ghost",radius:"full",onClick:function(){T(s)},children:(0,D.jsx)(o.E,{size:"1",weight:"bold",children:"Cancel"})})}),(0,D.jsx)(t.s,{flexGrow:"1",justify:"center",children:(0,D.jsx)(w.uB,{variant:"ghost",radius:"full",onClick:function(){x.A.track("Filter error logs by type",{Types:v}),i(v)},isSubmitButton:!0,children:(0,D.jsx)(o.E,{size:"1",weight:"bold",children:"Apply"})})})]})})]})})]})]}),(0,D.jsx)(k.A,{headerText:"Error Log Message",spacing:156}),(0,D.jsx)(y._m,{height:450,overscanCount:5,itemCount:n.length,itemSize:function(e){return B.includes(e)||"empty"===n[e].logType?160:20},ref:G,itemData:{data:n,onToggleDetails:function(e){B.includes(e)?M(B.filter(function(r){return r!==e})):M([].concat((0,c.A)(B),[e])),G.current.resetAfterIndex(e)},toggledIndices:B},children:R}),r&&(0,D.jsx)(b.A,{})]})})})}function R(e){var r=e.index,n=e.style,t=e.data,o=t.data,s=t.onToggleDetails,i=t.toggledIndices;return(0,D.jsx)("div",{style:n,children:(0,D.jsx)(O,{doc:o[r],onClick:function(){x.A.track("Click error log event"),s(r)},toggled:i.includes(r),height:450})})}R.propTypes={index:v().number,style:v().object,data:v().shape({data:v().array,onToggleDetails:v().func,toggledIndices:v().array,animateItemsRef:v().object})}
1,P.propTypes={organizationId:v().number};const U=P;var q=n(6395);const Q=function(){return(0,q.A)("Error Logs"),(0,D.jsxs)(l.A,{children:[(0,D.jsxs)(t.s,{mb:"5",align:"center",gap:"4",children:[(0,D.jsx)(o.E,{size:"6",weight:"bold",children:"Error Log"}),(0,D.jsx)(s.$,{asChild:!0,radius:"full",variant:"ghost",children:(0,D.jsx)(i.N,{underline:"none",href:"https://help.onomondo.com/en/articles/189784-what-are-error-logs",target:"_blank",children:"How to use error log?"})})]}),(0,D.jsx)(U,{})]})}}}]);
2//# sourceMappingURL=errorLog.746569c678b6ed97b2ce.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.