Skip Menu |
 

This queue is for tickets about the RPC-XML CPAN distribution.

Report information
The Basics
Id: 42033
Status: resolved
Priority: 0/
Queue: RPC-XML

People
Owner: rjray [...] blackperl.com
Requestors: rjray [...] blackperl.com
Cc: moseley [...] hank.org
AdminCc:

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

Attachments


CC: moseley [...] hank.org
Subject: Better context in XML error messages
Download (untitled) / with headers
text/plain 452b
See attached email from Bill Mosley. A small change to the construction of the XML::Parser object will allow the parse-error messages to report better context. Note that this may or may not carry over well when the switch to XML::LibXML is made. -- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Randy J. Ray Silicon Valley Scale Modelers: http://www.svsm.org rjray@blackperl.com randy.j.ray@gmail.com
Subject: Error logging in RPC::XML.eml
Hi Randy, I was getting errors like this in my logs: Jul 29 15:48:16 [ERROR] "Failed XMLRPC parsing: mismatched tag at line 1, column 597, byte 597 mismatched tag at line 1, column 615, byte 597 But no context. I'm parsing on-the-fly so I don't really have easy access to the XML to print it out. But, it seems if this is added to the parser creation: ErrorContext => 1 Then I get much nicer output: mismatched tag at line 1, column 44, byte 44: <?xml version="1.0" encoding="UTF-8"?><hi></lo> ===========================================^ Think that would be a good default?
Applied in git commit b7de3abbf95261716fdb7cd10c7b0714db17f67a. Will be released in 0.65.
Download (untitled) / with headers
text/plain 205b
-- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Randy J. Ray Silicon Valley Scale Modelers: http://www.svsm.org rjray@blackperl.com randy.j.ray@gmail.com


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.