zencoder/assistly — Issue #3: 401 "Unauthorised" on all requests.
Author: shaneshort
Created: 2011-10-31 11:58:18+00:00
State: open

Hi Guys,
Every time I try and access the assitly API through the gem, it throws me out with a 401 unauthorised.
I wrote a small script to test with, to ensure OAuth itself was working. I assume there's something perhaps not working 100% when it gets through to faraday, but I can't be sure.

Test Code:

http://pastie.org/private/yhbgdqfgpgxutbmjwm2pqw

Output:

$ ../script/runner -f assitly_gem_test.rb

ERROR: HTTP 401 thrown
--
#

Installed gems:

# gem list --local

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.9, 2.3.14, 2.3.8)
actionpack (3.0.9, 2.3.14, 2.3.8)
activemodel (3.0.9)
activerecord (3.0.9, 2.3.14, 2.3.8)
activeresource (3.0.9, 2.3.14, 2.3.8)
activesupport (3.0.9, 2.3.14, 2.3.8)
addressable (2.2.6)
adzap-ar_mailer (2.1.5)
archive-tar-minitar (0.5.2)
arel (2.0.10)
assistly (0.2.6, 0.2.4)
builder (2.1.2)
bundler (1.0.17)
calendar_date_select (1.15)
daemon_controller (0.2.6)
erubis (2.6.6)
faraday (0.7.5, 0.6.1)
faraday_middleware (0.7.0, 0.6.5)
fastercsv (1.5.3)
fastthread (1.0.7)
file-tail (1.0.4)
gemcutter (0.4.1)
hashie (1.1.0, 1.0.0)
hoe (2.5.0)
hpricot (0.8.2)
i18n (0.5.0, 0.4.1)
json_pure (1.5.3, 1.2.2)
mail (2.2.19)
mime-types (1.16)
mini_magick (1.2.5)
multi_json (1.0.3, 0.0.5)
multi_xml (0.4.1, 0.2.2)
multipart-post (1.1.3)
mysql (2.8.1)
nokogiri (1.4.1, 1.3.3)
oauth (0.4.5)
passenger (3.0.8, 2.2.5)
pg (0.8.0)
polyglot (0.3.2)
pony (1.3)
rack (1.3.2, 1.2.3, 1.1.2)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9, 2.3.14, 2.3.8)
railties (3.0.9)
rake (0.9.2, 0.8.7)
rash (0.3.0)
rcov (0.9.8)
rdoc (3.9.1)
redbox (1.0.4)
rest-client (1.4.0)
rt-client (0.2.2)
ruby-ldap (0.9.11)
ruby-net-ldap (0.0.4)
rubyforge (2.0.4, 2.0.3)
simple_oauth (0.1.5)
snmp (1.0.3)
sqlite3-ruby (1.2.5)
thor (0.14.6)
tmail (1.2.7.1)
treetop (1.4.10)
tzinfo (0.3.29)
validates_timeliness (2.3.1)
xeroizer (0.3.5)
xml-simple (1.0.12)
yajl-ruby (1.0.0)