What the hell

One minute my Rails app is working and the next I get the error when trying to rak db:migrate the database from scratch:

JSON::ParserError: Caught Encoding::CompatibilityError at ‘[{“content-type”:”ap’: incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)

And the accompanying stack trace doesn’t mention any of my files. How the hell am I supposed to troubleshoot this rubbish. I have to spend hours trying to figure out what on earth might be wrong.

Fortunately, I have some version control in place but I’m going to have trash my local copy. pull from git and attempt to recreate all teh work I’ve lost over the past few days.

However, in glorious Rails style and comparing the bundled gems against another working application, it turns out that downgrading to 4.1.0 (from4.1.6) fixes the problem. Still anotehr two hours lost for a non-coding fault that I could not have prevented.

Advertisements

One thought on “What the hell

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s