Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,697
Community Members
 
Community Events
185
Community Groups

TypeError: Cannot read property 'stack' of undefined

Hello

When using atlassian-connect-express 7.4.5 the error sometimes appears: TypeError: Cannot read property 'stack' of undefined

at process. <anonymous> (/opt/app/node_modules/atlassian-connect-express/lib/index.js:36:44)

at processPromiseRejections (internal / process / promises.js: 245: 33)

npm ERR! errno 1

npm ERR! code ELIFECYCLE

npm ERR! teamlead-crm@1.0.0 start: `node -r esm app.js`

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! Exit status 1

npm ERR! Failed at the teamlead-crm@1.0.0 start script.

npm ERR!

npm ERR! /home/node/.npm/_logs/2021-09-06T08_06_50_275Z-debug.log

the intended code after which the error occurs

const getCompanyAutocomplete = new Promise((resolve, reject) => {
httpClient.get(`/rest/atlassian-connect/1/addons/${addonKey}/properties/tlCompanyAutocomplete`, (err, response, body) => {
try {
body = JSON.parse(body)
} catch (e) {
reject(undefined)
}

const companyAutocompleteSetting = body.value

if (companyAutocompleteSetting && companyAutocompleteSetting.value) {
resolve(companyAutocompleteSetting.value)
} else {
reject(undefined)
}
})
})


Tell me how you can handle this error?

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events