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 error causes other error later (update docs)

See original GitHub issue

After updating from previous versions, now the index is built, but when querying i was getting this error on file search-index-searcher/lib/ScoreTopScoringDocsTFIDF.js:30

/home/.../javascript/website/node_modules/search-index-searcher/lib/ScoreTopScoringDocsTFIDF.js:30
            vector[field + sep + token] = docVector[token]
                                                   ^
TypeError: Cannot read property 'fiscales' of undefined
    at /home/.../javascript/website/node_modules/search-index-searcher/lib/ScoreTopScoringDocsTFIDF.js:30:52
    at Array.forEach (native)
    at /home/.../javascript/website/node_modules/search-index-searcher/lib/ScoreTopScoringDocsTFIDF.js:29:41
    at dispatchError (/home/.../javascript/website/node_modules/levelup/lib/util.js:64:35)
    at /home/.../javascript/website/node_modules/levelup/lib/levelup.js:222:14

But this error comes because other previous unhandled error on line 27, which has a nice comment about that:

err // TODO something clever with err

The error is:

ERROR NotFoundError: Key not found in database [DOCUMENT-VECTOR○/book/impresoras-fiscales○title○]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
jacargentinacommented, Nov 29, 2016

@fergiemcdowall looking slowly to your code, i’ve found ’ ve missed the on('data', ...) handler on my code. Adding that solves my indexing problem!

So, i must note that the API docs are missing that required handler when feeding the streamer. Could u add that?

0reactions
fergiemcdowallcommented, Dec 1, 2016

Good point- just updated it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unhandled Exception Error: 5 Quick Fixes - Windows Report
The unhandled exception error arises when the software code can't manage exceptions. To fix things, use the dedicated .NET Framework repair tool ...
Read more >
Microsoft .Net Framework error "Unhandled exception has ...
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue.
Read more >
What is an Unhandled Exception, and How to Catch All C# ...
An exception is a known type of error. An unhandled exception occurs when the application code does not properly handle exceptions.
Read more >
How to Fix the 'Unhandled Exception Has Occurred' Error In ...
How to Fix the ' Unhandled Exception Has Occurred in Your Application' Error In Windows 10/8/7 [Tutorial] Unhandled exception has occurred in ...
Read more >
Fix "Aw, Snap!" page crashes and other page loading errors
Usually, you can reload the page to fix the error. Tap More More and then Reload Reload . If that didn't work... Step...
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