question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: infrequent exception during invitation a new user to board via mail - TypeError: Cannot read property 'title' of undefined

See original GitHub issue

Hi,

I’m using wekan 0.10.1 (mongodb: v2.4.14 / node: v0.10.40). While I’m trying to add a new user -by typing a mail-address- to an existing board, I’m getting frequently:

Exception while invoking method 'inviteUserToBoard' TypeError: Cannot read property 'title' of undefined
    at Object.<anonymous> (models/activities.js:69:27)
    at packages/matb33_collection-hooks/insert.js:35:1
    at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1)
    at Function._.each._.forEach (packages/underscore/underscore.js:105:1)
    at after (packages/matb33_collection-hooks/insert.js:34:1)
    at Object.CollectionHooks.defineAdvice.self (packages/matb33_collection-hooks/insert.js:49:1)
    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks/collection-hooks.js:117:1)
    at [object Object].Mongo.Collection.(anonymous function) (packages/mongo/collection.js:590:1)
    at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core/lib/collection2.js:101:1)
    at Object.Lists.after.update.Activities.insert.userId (models/lists.js:90:16)
    at packages/matb33_collection-hooks/insert.js:35:1
    at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1)
    at Function._.each._.forEach (packages/underscore/underscore.js:105:1)
    at after (packages/matb33_collection-hooks/insert.js:34:1)
    at Object.CollectionHooks.defineAdvice.self (packages/matb33_collection-hooks/insert.js:49:1)
    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks/collection-hooks.js:117:1)

On UI side I can see “500” within a yellow box.

From my testing I would say, it’s a timing issue: If I’m entering the address and click on “Invite via Email” really fast, I can see the Exception. If I wait a small amount of time (e.g. 2 sec) and then clicking on “Invite via Email” the mail is sent successfully.

I’m using a gmail-account on this installation along following parameter: MAIL_URL='smtp://address@gmail.com:pwd@smtp.gmail.com:465/' (fyi)

Please advise, if you need more information from my side. It’s my 1st post on github 😉

Thanks a lot - It’s a great project! Robert

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexanderScommented, Jun 30, 2016

This should be fixed with #616.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix 'TypeError: Cannot read property 'title' of undefined ...
I got this error, but I solved it. If someone has the same issue here is the solution. Error: Most middleware (like bodyParser)...
Read more >
Uncaught TypeError: Cannot read property 'regionKey' of ...
Accessing Jira Agile Board Configuration throws Exception: Uncaught TypeError: Cannot read property 'regionKey' of undefined · Problem · Diagnosis.
Read more >
Testing - Release Notes - Liferay Issues
[LPS-124867] - The Localizable field is missing in new Data Engine Editor ... TypeError: Cannot read property 'AssetEntry' of undefined - when using...
Read more >
Use Safe Mode to troubleshoot issues with themes and plugins
Discourse has a “JavaScript Safe Mode” any user can use to isolate the root cause of a JavaScript issue caused by plugins, themes...
Read more >
ERROR TypeError: Cannot read property title of undefined
JavaScript Optional Chaining in 5 Minutes ( No more " cannot read property of undefined "!) · Top 5 Excel Functions for Finance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found