in reply to Re^3: Problem with WWW::Mechanize::Chrome
in thread Problem with WWW::Mechanize::Chrome

I noticed, that there is almost always an error message:
2017/11/13 13:01:47 Too many arguments for subroutine at /usr/local/share/perl/5.22.1/AnyEvent/WebSocket/Connection.pm line 192 
This was pointing to me that there might be some issues with Anyevent, therefore I added a line: use Mojolicious; before loading WWW::Mechanize::Chrome. It was quite success, included examples mostly work with some error messages:
Use of uninitialized value $chunk in concatenation (.) or string at /usr/local/share/perl/5.22.1/Mojo/Asset/Memory.pm line 15.
Mojo::Transaction::WebSocket=HASH(0x5042538) at /usr/local/share/perl/5.22.1/Chrome/DevToolsProtocol/Transport/Mojo.pm line 57.
Ivar
  • Comment on Re^4: Problem with WWW::Mechanize::Chrome

Replies are listed 'Best First'.
Re^5: Problem with WWW::Mechanize::Chrome
by Corion (Patriarch) on Nov 13, 2017 at 11:32 UTC

    Thank you for pursuing this and keeping at this!

    The error message reminds me of a bugfix where the (number of) parameters given to a callback changed with some version of AnyEvent::WebSocket, which I think I fixed already, but it seems I haven't even published the change on Github yet. Update: Now the change has been pushed.

    In any case this sounds like a bug in my codebase to me, so I'll have to find out what callback is called at that place and whether my latest changes fix that. Having internal errors vanish silently is infuriating to me, and my codebase certainly shouldn't gobble up such errors.

    I've seen those other warnings, but I'm not familiar enough with Websockets to know what an empty message should be, and whether undef would be allowed there.

      Thank you! I downloaded latest version and it mostly works. However some probably minor errors on running testsuite:
      t/50-mech-forms.t ................ 7/14 # Failed test 'We found five forms' # at t/50-mech-forms.t line 61. # got: '6' # expected: '5' .. Many tests issue this warning: AnyEvent::Future=HASH(0x2ee1000) AnyEvent::Future=HASH(0x2ee1000) los +t a sequence Future at /home/ivar/WWW-Mechanize-Chrome-master/blib/li +b/Chrome/DevToolsProtocol.pm line 305. .. Test Summary Report ------------------- t/50-mech-forms.t (Wstat: 256 Tests: 14 Failed: 1) Failed test: 8 Non-zero exit status: 1 Files=32, Tests=227, 200 wallclock secs ( 0.13 usr 0.04 sys + 12.29 c +usr 3.20 csys = 15.66 CPU) Result: FAIL Failed 1/32 test programs. 1/227 subtests failed. Makefile:930: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255
      Thank you for your support! Despite of some glitches, I'm probably able to use the module and go forward with my task.. Anyway - I'm happy to support you in further testing if needed. Kind regards, Ivar