ruhoh / ruhoh.rb

http://ruhoh.com
616 stars 69 forks source link

Invalid byte sequence in UTF-8 trying to read meta-data from [...]/twitter/media/glyphicons-halflings.png #293

Open ameuret opened 10 years ago

ameuret commented 10 years ago
/home/arnaud/.rvm/gems/ruby-2.0.0-p353/gems/ruhoh-2.6/lib/ruhoh/parse.rb:28:in
`rescue in page_file': Error trying to read meta-data from /home/arnaud/projects/dio
/twitter/media/glyphicons-halflings.png. Check your folder configuration.
Error details: invalid byte sequence in UTF-8 (RuntimeError)

And the config.yml file has:

# Tell ruhoh which folder will model the "theme"
twitter :
  # Tells ruhoh which collection class to use for this folder.
  # Here we use "theme" which makes this folder the theme.
  use : "theme"

This is with a vanilla blog scaffolding, straight after running:

ruhoh new dio
cd dio
bundle update
bundle exec rackup -p 8989
ameuret commented 10 years ago

This issue has the same origin as #281 so it is fixed by 1c7df99. This breaks every Ruhoh release at least as far back as 2.1. I think it deserves to be released as a hotfix or even backported.

If you do not want to use a non-tagged release, simply rename the config.ru to something else.

plusjade commented 10 years ago

You are right, I will give this some attention tomorrow.

On Tue, Jun 17, 2014 at 4:51 AM, Arnaud Meuret notifications@github.com wrote:

This issue has the same origin as #281 https://github.com/ruhoh/ruhoh.rb/pull/281 so it is fixed by 1c7df99 https://github.com/ruhoh/ruhoh.rb/commit/1c7df99. This breaks every Ruhoh release at least as far back as 2.1. I think it deserves to be released as a hotfix or even backported.

If you do not want to use a non-tagged release, simply rename the config.ru to something else.

— Reply to this email directly or view it on GitHub https://github.com/ruhoh/ruhoh.rb/issues/293#issuecomment-46296980.

purefan commented 9 years ago

I was able to move past this error by renaming the config.yml to rackup.ru and running the server with this command bundle exec rackup -p 9292 rackup.ru

ameuret commented 8 years ago

@purefan To clear up confusion, I think you renamed config.ru as I said above. Passing the YAML file to rackup makes no sense.