osiv
osiv

Reputation: 77

What code checks if LWP::UserAgent is ready to be used?

Is there a way I could check that LWP::UserAgent is ready to be used?

It is possible that the reponse code of, for instance a get request, may always return 500, and a message in status_line may be 500 HTML::Parser object version 3.35 does not match bootstrap parameter 3.72.

Upvotes: 1

Views: 172

Answers (1)

simbabque
simbabque

Reputation: 54381

It seems like your Perl installation is a bit broken. Retrying the request will not fix it.

This error message is from XSLoader. The ExtUtils::MakeMaker toolchain documentation explains this:

XS code is very sensitive to the module version number and will complain if the version number in your Perl module doesn't match. If you change your module's version # without rerunning Makefile.PL the old version number will remain in the Makefile, causing the XS code to be built with the wrong number.

The XSLoader distribution brings a unit test to assure that this is happening.

In your message

500 HTML::Parser object version 3.35 does not match bootstrap parameter 3.72

it says that your HTML::Parser Perl module has version 3.35, but it tries to load an XS library that is version 3.72 (which is the current version). In line 11 of HTML::Parser it does XSLoader::load('HTML::Parser', $VERSION), and right above it defined $VERSION as 3.72. So that should work.

It's not clear what you're doing exactly, and which modules you are using, but I suggest you reinstall HTML::Parser. I can't say more unless you add more information.


I found this by using grep.cpan.me, which allows you to grep in all files on CPAN. I searched for does not match bootstrap parameter.

Upvotes: 4

Related Questions