Re: JSON API

Thomas Leonard <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy_qAT4X=+W=bm0=EGa3s_VET8AJK+86=pauDN0XT8D7BA@mail.gmail.com>
It means it's getting an empty string where it expected an integer
(the size of the next packet). Perhaps you're using a Windows-style
line terminator rather than just \n?

See:

https://github.com/0install/0install/blob/d9c8219d603176a77d2650322f7054463b1c58c6/ocaml/zeroinstall/json_connection.ml#L42

On 23 May 2015 at 15:47, Bastian Eicher <[email protected]> wrote:
> Hi Thomas,
>
> I'm almost finished implementing the JSON API usage in the C# version of
> Zero Install. I've run into the following issue:
> After sending the first response to a request the OCaml instance seemingly
> always prints "Invalid integer '' (int_of_string)" to stderr and then exits.
> Any ideas where this might be coming from and how I could go about debugging
> the issue?
>
> Regards
> Bastian
>



-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.