-
Type:
Bug
-
Status:
Done
-
Priority:
Medium
-
Resolution:
Done
-
Affects Version/s:
None
-
-
-
Company:
All Clients/Multiple Clients
-
Sprint:
DMS - Gap Fall & Win Sprint 3
API:
/api/documents/sendBulk
/api/documents/
{documentTemplateId}
/
{personId}
/send
API not working giving error on run.
{"report":{"apdex":1,"isInitial":true,"journeyId":"6f8ac6df-7cb2-4a11-b406-b8b6385ef1b9","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":856.2999997138977,"redirectCount":0,"resourceLoadedEnd":1316.4000000953674,"resourceLoadedStart":243.5,"resourceTiming":[{"duration":189.2999997138977,"initiatorType":"link","name":"https://jira.workterra.net/s/3003653444a1e1a85555cab7dcfb3a21-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/css/_super/batch.css","startTime":243.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":432.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":189.30000019073486,"initiatorType":"link","name":"https://jira.workterra.net/s/dd6a0911920485696ac20493290df627-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/css/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true","startTime":243.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":433.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":189.2999997138977,"initiatorType":"link","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.css","startTime":244,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":433.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":189.19999980926514,"initiatorType":"link","name":"https://jira.workterra.net/s/bd548f27bbf8f278bd83b60dd3284ed8-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static-adgs/jira.webresources:global-static-adgs.css","startTime":244.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":433.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":189.10000038146973,"initiatorType":"link","name":"https://jira.workterra.net/s/70725731a158a7140f19ddbd4201ba27-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static/jira.webresources:global-static.css","startTime":244.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":433.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":197.59999990463257,"initiatorType":"script","name":"https://jira.workterra.net/s/f2623af22c15df767ec6ff268ae0b8bd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":244.5,"connectEnd":244.5,"connectStart":244.5,"domainLookupEnd":244.5,"domainLookupStart":244.5,"fetchStart":244.5,"redirectEnd":0,"redirectStart":0,"requestStart":244.5,"responseEnd":442.09999990463257,"responseStart":442.09999990463257,"secureConnectionStart":244.5},{"duration":248.30000019073486,"initiatorType":"script","name":"https://jira.workterra.net/s/6ce676f2a5bcc9651cef6e7956f05def-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/js/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":244.59999990463257,"connectEnd":244.59999990463257,"connectStart":244.59999990463257,"domainLookupEnd":244.59999990463257,"domainLookupStart":244.59999990463257,"fetchStart":244.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":244.59999990463257,"responseEnd":492.90000009536743,"responseStart":492.90000009536743,"secureConnectionStart":244.59999990463257},{"duration":251.5,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/4.1.5/_/download/resources/com.atlassian.plugins.atlassian-chaperone:hotspot-tour/hotspot-tour.js?batch=false&locale=en-US","startTime":244.7999997138977,"connectEnd":244.7999997138977,"connectStart":244.7999997138977,"domainLookupEnd":244.7999997138977,"domainLookupStart":244.7999997138977,"fetchStart":244.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":244.7999997138977,"responseEnd":496.2999997138977,"responseStart":496.2999997138977,"secureConnectionStart":244.7999997138977},{"duration":251.59999990463257,"initiatorType":"script","name":"https://jira.workterra.net/s/6aa3fcf1fac5fd551eee0b69077524e6-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":245,"connectEnd":245,"connectStart":245,"domainLookupEnd":245,"domainLookupStart":245,"fetchStart":245,"redirectEnd":0,"redirectStart":0,"requestStart":245,"responseEnd":496.59999990463257,"responseStart":496.59999990463257,"secureConnectionStart":245},{"duration":251.90000009536743,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":245.19999980926514,"connectEnd":245.19999980926514,"connectStart":245.19999980926514,"domainLookupEnd":245.19999980926514,"domainLookupStart":245.19999980926514,"fetchStart":245.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":245.19999980926514,"responseEnd":497.09999990463257,"responseStart":497.09999990463257,"secureConnectionStart":245.19999980926514},{"duration":252.2000002861023,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":245.2999997138977,"connectEnd":245.2999997138977,"connectStart":245.2999997138977,"domainLookupEnd":245.2999997138977,"domainLookupStart":245.2999997138977,"fetchStart":245.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":245.2999997138977,"responseEnd":497.5,"responseStart":497.5,"secureConnectionStart":245.2999997138977},{"duration":252.2999997138977,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.js?locale=en-US","startTime":245.5,"connectEnd":245.5,"connectStart":245.5,"domainLookupEnd":245.5,"domainLookupStart":245.5,"fetchStart":245.5,"redirectEnd":0,"redirectStart":0,"requestStart":245.5,"responseEnd":497.7999997138977,"responseStart":497.7999997138977,"secureConnectionStart":245.5},{"duration":340.40000009536743,"initiatorType":"link","name":"https://jira.workterra.net/s/05c862146699bb029ceb0a489075e63b-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/bcd66e9a133a1b9f5fd14b56841e1c5b/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":245.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":252.5,"initiatorType":"script","name":"https://jira.workterra.net/rest/api/1.0/shortcuts/805012/9b4bc78b7cc5c86b31ff012e5c329c28/shortcuts.js?context=issuenavigation&context=issueaction","startTime":245.7999997138977,"connectEnd":245.7999997138977,"connectStart":245.7999997138977,"domainLookupEnd":245.7999997138977,"domainLookupStart":245.7999997138977,"fetchStart":245.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":245.7999997138977,"responseEnd":498.2999997138977,"responseStart":498.2999997138977,"secureConnectionStart":245.7999997138977},{"duration":340.19999980926514,"initiatorType":"link","name":"https://jira.workterra.net/s/9095228fa10daa2d3e3d7d5760c95e91-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":246.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":252.80000019073486,"initiatorType":"script","name":"https://jira.workterra.net/s/c19a1b46e985d7fb85efaf27c8febfdd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":246.19999980926514,"connectEnd":246.19999980926514,"connectStart":246.19999980926514,"domainLookupEnd":246.19999980926514,"domainLookupStart":246.19999980926514,"fetchStart":246.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":246.19999980926514,"responseEnd":499,"responseStart":499,"secureConnectionStart":246.19999980926514},{"duration":119.5,"initiatorType":"xmlhttprequest","name":"https://jira.workterra.net/rest/webResources/1.0/resources","startTime":613.1999998092651,"connectEnd":613.1999998092651,"connectStart":613.1999998092651,"domainLookupEnd":613.1999998092651,"domainLookupStart":613.1999998092651,"fetchStart":613.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":613.1999998092651,"responseEnd":732.6999998092651,"responseStart":732.6999998092651,"secureConnectionStart":613.1999998092651}],"threshold":1000,"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":147,"responseStart":237,"responseEnd":239,"domLoading":241,"domInteractive":1325,"domContentLoadedEventStart":1325,"domContentLoadedEventEnd":1380,"domComplete":1539,"loadEventStart":1539,"loadEventEnd":1544,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"aeb3a028d66a0d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":62,"dbReadsTimeInMs":9,"dbConnsTimeInMs":10,"applicationHash":"156decd7d2b4272533aa6cefc8294af635e1da97","experiments":[]}}
Below are 3C's
Concern: Error in send bulk API
Cause: Previously we are creating new DbContext object in each code file. Now same object is getting shared across site in single request. Send bulk calling same DbContext object in async loop.
Correction: For each loop created new DbContext Object.
CC – Samir