Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-Twitter CPAN distribution.

Report information
The Basics
Id: 42678
Status: resolved
Priority: 0/
Queue: Net-Twitter

People
Owner: cthom [...] cpan.org
Requestors: david [...] axiombox.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: destroy_status method not working anymore
Date: Thu, 22 Jan 2009 11:05:08 -0500
To: bug-Net-Twitter [...] rt.cpan.org
From: David Moreno <david [...] axiombox.com>
Since I upgraded to Net::Twitter 2.01, the destroy_status() method stopped working. I have a script that removes some tweets on a profile given a certain set of rules. However, this: use Net::Twitter; my $t = Net::Twitter->new(username => "damog", password => "whatever"); $t->destroy_status(1134869571); Now returns: Argument is not a HASHREF. Discarding request at script.pl line 12 However, that's the way it' documented on the destroy_status(). It's not specified to pass a different argument to the method. Trying to pass a hashref: $t->destroy_status(id => 1134869571); also fails with the previous request. I believe this is a bug on Net::Twitter or I'm doing something very wrong and I don't see it. D.
This was a bug in the argument validation handling in 2.00 and 2.01 that somehow I completely missed. I sent 2.02 to CPAN about half an hour ago with a revamped arg validation section, and a set of regression tests for preventing it from happening in the future. Sorry about the mixup, I'll leave this ticket open for now. When 2.02 makes its way to your CPAN mirror if you could try it and reply back here, I'd appreciate it. If you're in an extreme hurry, setting "skip_validation" to a true value in new() will bypass ALL validtion and let it work.
I'm closing this as I assume you have upgraded to 2.06 by now.