Bug#928484: libgitlab-api-v4-perl: incorrect handling of non-json data

Dmitry Bogatov KAction at debian.org
Sun May 5 20:41:24 BST 2019


Package: libgitlab-api-v4-perl
Version: 0.16-1
Severity: important

Dear Maintainer,

I am trying to use gitlab-api-v4 tool to get CI job output, but get
following output:

	malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "\x{1b}[0KRunning wit...") at /usr/share/perl5/GitLab/API/v4/RESTClient.pm line 179.

It seems that library assumes,

        # JSON decoding may fail. Catch it and provide a more contextually rich
        # error message?
        return $self->json->decode( $res->{content} );

that data, returned by server is always valid JSON. In case of

	GET /projects/:id/jobs/:job_id/trace

endpoint, it is not the case.
-- 
        Note, that I send and fetch email in batch, once every 24 hours.
                 If matter is urgent, try https://t.me/kaction
                                                                             --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20190505/cb1712e4/attachment.sig>


More information about the pkg-perl-maintainers mailing list