Twitter gem issue Ruby on Rails

If you are searching for solution of Twitter::Error: 399 unexpected token at Rails issue then we have it for you.

We were using twitter 5.5 gem in our ror project, we were searching for mentions in twitter api when we encountered error ‘Twitter::Error: 399’. It can be fixed in 2 ways:

1. You can use Yajl parser i.e Rails gem yajl-ruby.
2. Upgrade your twitter Rails gem to latest version. Twitter gem 5.11 is the latest gem for Rails at the time of this post.

You may also like...