Unhandled error causes other error later (update docs)
See original GitHub issueAfter 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:
- Created 7 years ago
- Comments:13 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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?
Good point- just updated it