Skip Menu |

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

Report information
The Basics
Id: 94355
Status: resolved
Priority: 0/
Queue: Net-STOMP-Client

People
Owner: Nobody in particular
Requestors: STEVENL [...] cpan.org
Cc:
AdminCc:

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



Subject: 'auth' parameter not accepted by constructor
I got the following error: The following parameter was passed in the call to Net::STOMP::Client::new but was not listed in the validation options: auth at C:/Perl/ActivePerl-5.16.3/site/lib/Net/STOMP/Client.pm line 256. Net::STOMP::Client::new(undef, 'uri', 'stomp://localhost:61613', 'auth', 'plain name=admin pass=password') called at publisher.pl line 37
The "auth" parameter is only available when the Authen::Credential module is available. Do you have this module installed?
Installing that module fixed the problem. Thanks! My suggestion is to make that explicit in the documentation or in the error message. Authen::Credential is not a mandatory dependency, so it is not installed along with Net::STOMP::Client by default.
Well, the documentation (http://search.cpan.org/perldoc?Net::STOMP::Client::Auth) already contains: If the optional Authen::Credential module is available, an additional auth attribute can be given to Net::STOMP::Client's new() method. If the module is not available, the auth attribute cannot be used. I'm glad the module now works as expected for you.
Sorry I didn't see that. However, I was thinking more to add something like that in https://metacpan.org/pod/Net::STOMP::Client under the `auth` constructor attribute.