Open marnen opened 14 years ago
BTW, post is no problem when called from User. Go figure.
No, I spoke too soon. Post has the same problem.
This is apparently not a TwitterAuth issue. I'll be darned if I can figure out what's causing it, because I have two apparently identical commits, of which one always causes the error and the other never does, but TwitterAuth is off the hook.
Trying to close issue.
Grrr. Comment and Close is not working. Would someone put this ticket out of its misery? :)
I'm having a strange problem. If I call current_user.twitter.get('statuses/friends_timeline') from a controller, it works as expected. However, if I do this:
controller
User
...I get a NoMethodError: can't call downcase on NilClass. After a bit of debugging, it seems that when the OAuth module generates a signature, for some reason, it's not setting the hostname properly (so it's still nil, so it doesn't respond to downcase), with the result that request-uri is something like http::80/statuses/friends_timeline.
But it's baffling to me that it works in one case and not in the other, because I don't see any functional difference in how the methods are being called in the two cases. This is particularly frustrating since I'm trying to put logic in the model, not the controller, and TwitterAuth is preventing me from doing so.
Please help.