Sounds like the library of whatever you're using is broken. Maybe you
should contact the library author.

On Fri, Jan 23, 2009 at 7:34 AM, joe <[email protected]> wrote:
>
> Need help asap
>
> I am getting this error in my application.
>
> Code not working in the application
>  client = Twitter::Client.new( :login=> "askgram" , :password=>
> "joenayyar")
> => #<Twitter::Client:0xb664cf60 @password="joenayyar",
> @login="askgram">
>>> client.authenticate?("askgram","joenayyar")
> => true
>>> client.status(:post,"follow delbius")
> JSON::ParserError: unexpected token at 'Error: you are requesting an
> invalid URL.'
>       from /usr/local/lib/ruby/gems/1.8/gems/json-1.1.2/lib/json/
> common.rb:122:in `parse'
>       from /usr/local/lib/ruby/gems/1.8/gems/json-1.1.2/lib/json/
> common.rb:122:in `parse'
>       from /usr/local/lib/ruby/gems/1.8/gems/twitter4r-0.3.0/lib/
> twitter/model.rb:33:in `unmarshal'
>       from /usr/local/lib/ruby/gems/1.8/gems/twitter4r-0.3.0/lib/
> twitter/client/status.rb:43:in `status'
>       from (irb):3
>
>
> Working code in the same application
>>> client = Twitter::Client.new( :login=> "christy24" , :password=> 
>>> "christy24")=> #<Twitter::Client:0xb663e30c @password="christy2", 
>>> @login="christy24">
>>> client.authenticate?("christy24","christy2")
> => true
>>> client.status(:post,"follow delbius")
> => #<Twitter::Status:0xb6633d94 @client=#<Twitter::Client:0xb663e30c
> @password="christy2", @login="christy24">, @id=1136581018,
> @user=#<Twitter::User:0xb6633c40 @screen_name="christy24", @url=nil,
> @description=nil, @id=16040188, @name="christy24", @protected=false,
> @profile_image_url="http://static.twitter.com/images/
> default_profile_normal.png", @location=nil>, @text="@delbius Need
> Help.Twitter account @askgram doesn't work n console but @christy24
> works using twitter4r API  while doing 'follow username\".",
> @created_at=Wed Jan 21 21:54:30 +0530 2009>
>>>
>



-- 
Julio Biason <[email protected]>
Twitter: http://twitter.com/juliobiason

Reply via email to