ruby - Credentials issues using the rt-client rubygem (rest interface to request tracker ticket system) -


i having issues using rt-client gem(link), keeps returning "rt/4.0.8 401 credentials required". rest interface site working, have perl scripts working in similar fashion.

test.rb

#!/usr/bin/env ruby  require 'rt/client'  rt = rt_client.new id = rt.create( :queue => "general",                 :subject => "test",                 :requestor => "test@example.org",                                                                                                                                                                                                                                                :text => "ignore me"                )    

.rtclientrc

server=http://example.org/ user=exampleuser pass=examplepass cookies=tmp 

versions

gem version: rt-client-0.5.0 rt version: 4.0.8 ruby version: 1.9.3p327 

output

payload new ticket: ------xyzzy492386xyzzy content-disposition: form-data; name="content";  queue: general subject: test requestor: test@example.org text: ignore me id: ticket/new ------xyzzy492386xyzzy-- "rt/4.0.8 401 credentials required\n" 

i seeing error when "puts id.inspect" @ bottom of test.rb, ticket not getting created.

is perhaps issue handling of cookies? trying avoid writing custom solution in net::http if possible, go route if continues hassle.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -