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.

Unhandled rejection TypeError: Cannot read property 'output' of undefined

See original GitHub issue

Hello kengz,

Great work with the modules.

I am facing an error while following the steps in tutorial.

image

package json :

{ "name": "nlp-app", "version": "1.0.0", "description": "Sample app", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Test", "license": "ISC", "dependencies": { "poly-socketio": "1.1.4", "spacy-nlp": "^1.0.7" } }

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
swsridharcommented, Apr 20, 2017
screen shot 2017-04-20 at 10 18 24 am same error on mac as well....

Any update on solving this ?

1reaction
peterhuppertzcommented, Apr 25, 2017

I think you need to wait for the servers to be started. I had the same error, so I set a timeout:

setTimeout(() => {
	const nlp = spacyNLP.nlp
	nlp.parse('Bob Brought the pizza to Alice.')
	.then((output) => {
		console.log(output)
		console.log(JSON.stringify(output[0].parse_tree, null, 2))
	})
}, 5000)

Not very elegant.

However, I thought the spacyNLP.server should return a promise. I tried spacyNLP.server({ port: process.env.IOPORT }).then(...), but this does not work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unhandled Rejection (TypeError): Cannot read property of ...
To fix this, either make the initial state be something that works with your render method, or make your render method check for...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >
Unhandled Rejection (TypeError): Cannot read properties of ...
Hi Syncfusion, I have problem when using GridComponent inside a popup. After I insert 1 row and delete that row. When I hide...
Read more >
sfdx force:mdapi:deploy - unhandled rejection TypeError ...
... server for validation we receive after 20 minutes an error Unhandled rejection TypeError: Cannot read property 'result' of null 10:35:11 ...
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