Thread 2fc4f978

After you made your modifications, what is on line 88?

Eric — Sep 29, 2011 11:51 pm

rnrse = CGI.escape(newres.match(/’_rnr_se’: ‘([^’]+)’/)[1])

Eric — Sep 29, 2011 11:53 pm

I also had added require ‘jcode’ if RUBY_VERSION < ‘1.9’ for the other fix.

Brett — Sep 29, 2011 11:58 pm

That means it’s not finding _rnr_se in the returned text, which probably means that the authentication process is failing at some point. That would take more debugging than I can offer on this one, but you might start by dissecting the various calls and spitting the results out to console to see if you’re getting expected responses.

Eric — Sep 30, 2011 12:15 am

Hehehe. I copied the fixed line from here. Didn’t work, as shown. I ran rdebug with it. Says something about invalid multibyte character. Turns out, the single quotes weren’t regular old single quotes, they were smart quotes. “’” instead of “’”. Works now! Thanks.