fastmail / authentication_milter

Email Authentication by SPF/DKIM/DMARC etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't call method "set" on an undefined value at Authentication/Metric.pm line 50.

freddieleeman opened this issue · comments

Building with cpanm results in the following error:

Can't call method "set" on an undefined value at /usr/local/share/perl/5.28.1/Mail/Milter/Authentication/Metric.pm line 50. ...propagated at /usr/local/share/perl/5.28.1/Mail/Milter/Authentication.pm line 774.

Not only with Buster, but also with Bullseye (perl 5.30):

Can't call method "set" on an undefined value at /usr/local/share/perl/5.30.0/Mail/Milter/Authentication/Metric.pm line 50. ...propagated at /usr/local/share/perl/5.30.0/Mail/Milter/Authentication.pm line 774.

I see the problem, the prometheus object is only created if a metric_port or metric_connection are defined, but later the code which sets up versioning metrics assumes there will always be a metrics object.
Will be fixed in next release.

Fixed in latest build!