-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
Expected behavior
Missing data/field should be handled gracefully.
Actual behavior
Random error is being logged in Sentry:
/main.cb1dc01e74604a8bb36f.js in t.value at line 294:6456
/main.cb1dc01e74604a8bb36f.js in Object.i at line 33:4576
/main.cb1dc01e74604a8bb36f.js in s at line 33:2777
/main.cb1dc01e74604a8bb36f.js in Object.executeDispatchesInOrder at line 33:3506
/main.cb1dc01e74604a8bb36f.js in d at line 28:113858
/main.cb1dc01e74604a8bb36f.js in f at line 28:113984
<anonymous> in Array.forEach
/main.cb1dc01e74604a8bb36f.js in e.exports at line 77:295485
/main.cb1dc01e74604a8bb36f.js in Object.processEventQueue at line 28:115388
/main.cb1dc01e74604a8bb36f.js at line 114:27795
/main.cb1dc01e74604a8bb36f.js in Object.handleTopLevel [as _handleTopLevel] at line 114:27817
/main.cb1dc01e74604a8bb36f.js in f at line 114:49978
/main.cb1dc01e74604a8bb36f.js in c.perform at line 28:167821
/main.cb1dc01e74604a8bb36f.js in Object.batchedUpdates at line 114:49458
/main.cb1dc01e74604a8bb36f.js in Object.batchedUpdates at line 28:13803
/main.cb1dc01e74604a8bb36f.js in dispatchEvent at line 114:50759
Called from: raven.js in HTMLDocument.d
Exact code snippet from Sentry log details:
{snip} Id:r},i=3);var a=this.getRefCodeFromURL();a&&(o.details.utm={code:a}),this.setState({project:(0,d.default)({},o),dirtyProject:(0,d.default)( {snip}
User action breadcrumb from Sentry:
navigation
to /new-project/xxxxxxx/incomplete?refCode=xxxxx
from /new-project/xxxxxx?refCode=xxxxx
13:32:52
xhr
GET https://api.topcoder.com/v4/projects/metadata/orgConfig?filter=orgId=in(2xxxxx5,2xxxxxx1) [200]
13:32:55
ui.click
div.actions > button.tc-btn.tc-btn-default.tc-btn-md
13:32:56
exception
TypeError: Cannot set property 'utm' of undefined
--
Environment
- OS: Windows 7
- Browser (w/version): Chrome 72.0.3626
- User role (client, copilot or manager): Customer
- Account used: N/A