Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `[]' for false:FalseClass in yomu.rb:119 #11

Open
stephan-nordnes-eriksen opened this issue Apr 11, 2014 · 4 comments
Open

Comments

@stephan-nordnes-eriksen
Copy link
Contributor

I am getting this error from time to time (running many files through this). Have not caught the guilty file yet.

"path_to_gem/yomu-0.1.10/lib/yomu.rb:119:in `method_missing'", 
"path_to_gem/yomu-0.1.10/lib/yomu.rb:119:in `mimetype'"

The line in my code which causes this:

#running many files through this procedure.
yomu = Yomu.new(file_path)
....
case yomu.mimetype

Using Ruby 1.8.7, if it matters.

@Erol
Copy link
Member

Erol commented Apr 12, 2014

Looks like Tika is returning false when looking up the metadata. If you get to find the file which is causing this, would you mind sharing it to me? I can do a sanity check when parsing it, but I feel it's only a partial fix.

@stephan-nordnes-eriksen
Copy link
Contributor Author

I will try to catch this later tonight :)

@Erol
Copy link
Member

Erol commented May 7, 2014

Hi @stephan-nordnes-eriksen, can you try running this with the latest version?

@stephan-nordnes-eriksen
Copy link
Contributor Author

Totally forgot about this..

Haven't had the time to test the latest yet unfortunately. Too much stuff going on these days. You could try to reproduce this yourself by pushing a bunch of files through yomu, and log the errors :) This is essentially what I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants