From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32801 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Morey Newsgroups: gmane.text.pandoc Subject: Re: Pandoc error 10 when compiling document and fetching from fonts.gstatic.com Date: Tue, 13 Jun 2023 13:06:18 -0700 (PDT) Message-ID: References: <336872A1-2E6F-4BCB-801B-1230E2455ED3@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_442_2116186902.1686686778392" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6089"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC33VNGTVQPRBPEYUOSAMGQE237T2QA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 13 22:06:24 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q9AHY-0001Mh-L8 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 13 Jun 2023 22:06:24 +0200 Original-Received: by mail-oo1-f59.google.com with SMTP id 006d021491bc7-55aefc322c8sf5262743eaf.2 for ; Tue, 13 Jun 2023 13:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686686783; x=1689278783; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=kyTZnEjsegqlFKlxyCgcC0f1mKE7R6HSowOITfZ8chM=; b=EgvNmd6nN/k8RxK5DBk/vAPaaqQ/VdjQcTxKWJk9hoQVVDWkCpOPnr8LhGQKOpPdyI qrHKsCo0wzBp+8zoSCkGy98H/GqjUUUtk3DJtwzkLvj2/uTrtw/cPq61KWsVtZjaCYJX hdFZAoVTjKexSowIL1xeFjDyAkJncD31yrXw0evRmdXP68mUZpCgygeoc3DfiFz1kT+u cG/U1rcdhlTJF5jNzn/rrD5X8szk4e/hJzAfzlU1e/9t4gkPNC0Eqa2xCTV32goWWLrg 7CzIrWtF+WJKrNmbVwLPOY7GCttGWBPhAXx8JP3Wjup9V1MpFSygGEwKst+yT/+wGBfs lI3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686686783; x=1689278783; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=kyTZnEjsegqlFKlxyCgcC0f1mKE7R6HSowOITfZ8chM=; b=cFhmlJNLG1I0Ws7IlMeb8S8QHz9iKC2O+ByzU010jaJGgQPPTHvH+tp3Qczqhu+X9l xJERwnHrOyQ8g9haQFDA1Fb2ussBe8QqSuUR2EKXiy30saRKxfHYEwpAb8U5Rf4pknsb 869VpXeE9Gckb4Pmn8NbH/IO654teqMe3w/PbSrKSGr3K0UuizdDKW+OCcFsk07BGFdZ qS+wPxiOOYWtGuj7hZJywT5mfUlf1G+mdrUtmaELvFFAU9Wjs/l9/20e+MmP6Ehi+jcT 7KVPRpvpzXt+BqvjF/2oQFbL7CyUVL5d45B5b50fpvB8kkGFlSgDyngZID4iAfYmnwX7 cu6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686686783; x=1689278783; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=kyTZnEjsegqlFKlxyCgcC0f1mKE7R6HSowOITfZ8chM=; b=Gm4Ff5Y2HtLe/bg2yjPjRPrN93p7Wcdvobv5I5ZqWmQKc2Tw6widtBYaIaOtTOl+zB gxn3kyHcZzqedq9Hp5v+tQDoDLGXLkkR+B6IpCC3VXNopr/8M2K9ZPcLz5UrAwpQMZQk eaf1fjHWbfU8G9VBaWM28e4z8hK77w97ZVy3G6qC/eGRi2aqpLsWtNydQGC38ixRg5ST c4kHLwi8R63Fsp5nSL8/hUMzN6JiqSjWmQrVT3sHr6xDXkYghvItYBVGSsOOt2WP8mT6 p1CcgXfG4FUcHNmrw+Yfq4qs+00Rc/Y5piaYtdQBGGIdMAHcNL Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxmxdWxYBxjduSw6SRW9ZTtWuxIQ/JAeosGsB6tAkQhViNJEZzT lucwYZqhxjZQ7zaD6Mhqhzk= X-Google-Smtp-Source: ACHHUZ6623rS05nuqhGdEebdji17rIiHE12UlrFwSgfwGWnnq+t66fIXUCEJstejHrhhTxevDRmnig== X-Received: by 2002:a05:6871:6b8f:b0:1a3:1cb3:37e9 with SMTP id zh15-20020a0568716b8f00b001a31cb337e9mr9382249oab.4.1686686783375; Tue, 13 Jun 2023 13:06:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:d694:0:b0:559:4225:eef0 with SMTP id i20-20020a4ad694000000b005594225eef0ls4924366oot.0.-pod-prod-01-us; Tue, 13 Jun 2023 13:06:19 -0700 (PDT) X-Received: by 2002:aca:b505:0:b0:390:7b13:f6c3 with SMTP id e5-20020acab505000000b003907b13f6c3mr2069238oif.6.1686686779304; Tue, 13 Jun 2023 13:06:19 -0700 (PDT) In-Reply-To: X-Original-Sender: richarddmorey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32801 Archived-At: ------=_Part_442_2116186902.1686686778392 Content-Type: multipart/alternative; boundary="----=_Part_443_785776098.1686686778392" ------=_Part_443_785776098.1686686778392 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, everyone, for your help. I've finally managed a (nearly) 100%=20 reproducible version that shows the mysterious "pandoc error 10" with=20 minimal code and posted an issue at rstudio/rmarkdown:=20 https://github.com/rstudio/rmarkdown/issues/2495 Best, Richard On Saturday, June 10, 2023 at 4:15:37=E2=80=AFPM UTC+1 John MacFarlane wrot= e: > I've searched the code base and there's nowhere we return a 10 error=20 > code... > > > On Jun 10, 2023, at 1:48 AM, Richard Morey wrote: > >=20 > > It is the output from an R system() call to pandoc, which returns the= =20 > pandoc error code. One thing I did check was that it wasn't a 1 with a 0= =20 > concatenated on the end through a missing \n or something silly like that= .=20 > It does seem to be a return code from pandoc, but I will check with=20 > rmarkdown too. It is frustrating because I can't reliably reproduce it,= =20 > probably because it something network-related. > >=20 > > On Friday, June 9, 2023 at 6:25:31=E2=80=AFPM UTC+1 BPJ wrote: > > It seems from the cited error message like it is rmarkdown (Rmarkdown)= =20 > which exits with code 10, so probably not a Pandoc issue at all. > >=20 > > Den fre 9 juni 2023 17:34John MacFarlane skrev: > > That's rather strange because we don't emit error code 10: > > https://pandoc.org/MANUAL.html#exit-codes > > But it's a bit hard to diagnose these issues that involve external code= .=20 > If you can reproduce the issue with pandoc by itself, that would be=20 > helpful. Also it could be useful to know what pandoc version is being use= d. > >=20 > >=20 > > > On Jun 9, 2023, at 1:41 AM, Richard Morey wrote= : > > >=20 > > > I've posted this on StackOverflow here but have not gotten any=20 > interest in several days, so I'm posting here. > > >=20 > > > I'm having trouble consistently compiling a particular document with= =20 > rmarkdown::render. I cannot reproduce the issue reliably, unfortunately (= it=20 > happens roughly 1/3 of the time; consostent with it being a network error= ,=20 > maybe?), but when it fails, I get the error:=20 > > >=20 > > > pandoc document conversion failed with error 10 > > > from rmarkdown. The "10" is the return code from the system command= =20 > that runs pandoc here. > > >=20 > > > When I set pandoc to give debugging information with --verbose the=20 > following lines are the last ones in stderr: > > >=20 > > > [INFO] Fetching=20 > https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbOb= j2OVTSKmu1aB.woff2...=20 > > > > [INFO] Fetching=20 > https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbOb= j2OVTSumu1aB.woff2...=20 > > > > [INFO] Fetching=20 > https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbOb= j2OVTSOmu1aB.woff2...=20 > > > > [INFO] Fetching=20 > https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbOb= j2OVTSymu1aB.woff2...=20 > > > > [INFO] Fetching=20 > https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbOb= j2OVTS2mu1aB.woff2...=20 > > > > [INFO] Fetching=20 > https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbOb= j2OVTSCmu1aB.woff2...=20 > > > > [INFO] Fetching=20 > https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbOb= j2OVTSGmu1aB.woff2...=20 > > > > Error : pandoc document conversion failed with error 10 > > > The last line varies, but it always seems to be one of these fonts=20 > that is the last thing pandoc reports before the error (there are 24 of= =20 > these font fetches in this particular document, as shown by the output in= a=20 > successful compile). > > >=20 > > > This leads me to believe that there is a problem in fetching one of= =20 > these fonts, but there's no output that says what the problem actually is= ,=20 > and Error 10 does not seem to be a valid error code from pandoc: pandoc= =20 > error codes. > > >=20 > > > I'm sort of stuck debugging until I figure this out. > > >=20 > > > I also note there is a similar issue here: NYTimes and 538 Themes Giv= e=20 > Pandoc Error 10 - as a bonus, it even seems to be related to=20 > fonts.gstatic.com, but that out seems to be more specific, including a=20 > [WARNING] that I don't see in mine. > > >=20 > > > In case they are helpful, I've put the logs of a failure and success= =20 > and the pandoc command that was run in a gist here: logs > > >=20 > > > I'd appreciate any insights into what could cause this and how to fix= =20 > it. > > >=20 > > > Best, > > > Richard > > >=20 > > >=20 > > > --=20 > > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails from it, sen= d=20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/ec43be1c-e46d-4323-a70e-= c97a90e670f0n%40googlegroups.com > . > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/336872A1-2E6F-4BCB-801B-= 1230E2455ED3%40gmail.com > . > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/d229eff4-6162-4a3b-9604-= 4361230cceabn%40googlegroups.com > . > > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/b009e279-b9b5-48bb-b44f-3f86686b91een%40googlegroups.com. ------=_Part_443_785776098.1686686778392 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, everyone, for your help. I've finally managed a (nearly) 100% = reproducible version that shows the mysterious "pandoc error 10" with minim= al code and posted an issue at rstudio/rmarkdown: https://github.com/rstudi= o/rmarkdown/issues/2495

Best,
Richard<= br />

On Saturday, June 10, 2023 at 4:15:37=E2=80=AFPM UTC+1 John MacFarl= ane wrote:
I&= #39;ve searched the code base and there's nowhere we return a 10 error = code...

> On Jun 10, 2023, at 1:48 AM, Richard Morey <richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
> It is the output from an R system() call to pandoc, which returns = the pandoc error code. One thing I did check was that it wasn't a 1 wit= h a 0 concatenated on the end through a missing \n or something silly like = that. It does seem to be a return code from pandoc, but I will check with r= markdown too. It is frustrating because I can't reliably reproduce it, = probably because it something network-related.
>=20
> On Friday, June 9, 2023 at 6:25:31=E2=80=AFPM UTC+1 BPJ wrote:
> It seems from the cited error message like it is rmarkdown (Rmarkd= own) which exits with code 10, so probably not a Pandoc issue at all.
>=20
> Den fre 9 juni 2023 17:34John MacFarlane <fiddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
> That's rather strange because we don't emit error code 10:
> https= ://pandoc.org/MANUAL.html#exit-codes
> But it's a bit hard to diagnose these issues that involve exte= rnal code. If you can reproduce the issue with pandoc by itself, that would= be helpful. Also it could be useful to know what pandoc version is being = used.
>=20
>=20
> > On Jun 9, 2023, at 1:41 AM, Richard Morey <richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >=20
> > I've posted this on StackOverflow here but have not gotte= n any interest in several days, so I'm posting here.
> >=20
> > I'm having trouble consistently compiling a particular do= cument with rmarkdown::render. I cannot reproduce the issue reliably, unfor= tunately (it happens roughly 1/3 of the time; consostent with it being a ne= twork error, maybe?), but when it fails, I get the error:=20
> >=20
> > pandoc document conversion failed with error 10
> > from rmarkdown. The "10" is the return code from th= e system command that runs pandoc here.
> >=20
> > When I set pandoc to give debugging information with --verbos= e the following lines are the last ones in stderr:
> >=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2...=20
> > Error : pandoc document conversion failed with error 10
> > The last line varies, but it always seems to be one of these = fonts that is the last thing pandoc reports before the error (there are 24 = of these font fetches in this particular document, as shown by the output i= n a successful compile).
> >=20
> > This leads me to believe that there is a problem in fetching = one of these fonts, but there's no output that says what the problem ac= tually is, and Error 10 does not seem to be a valid error code from pandoc:= pandoc error codes.
> >=20
> > I'm sort of stuck debugging until I figure this out.
> >=20
> > I also note there is a similar issue here: NYTimes and 538 Th= emes Give Pandoc Error 10 - as a bonus, it even seems to be related to fonts.gstatic.com, but that out seems to be more s= pecific, including a [WARNING] that I don't see in mine.
> >=20
> > In case they are helpful, I've put the logs of a failure = and success and the pandoc command that was run in a gist here: logs
> >=20
> > I'd appreciate any insights into what could cause this an= d how to fix it.
> >=20
> > Best,
> > Richard
> >=20
> >=20
> > --=20
> > You received this message because you are subscribed to the G= oogle Groups "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails from= it, send an email to pandoc-dis= cus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ec43be1= c-e46d-4323-a70e-c97a90e670f0n%40googlegroups.com.
>=20
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit ht= tps://groups.google.com/d/msgid/pandoc-discuss/336872A1-2E6F-4BCB-801B-1230= E2455ED3%40gmail.com.
>=20
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d229eff4-6= 162-4a3b-9604-4361230cceabn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/b009e279-b9b5-48bb-b44f-3f86686b91een%40googlegroups.= com.
------=_Part_443_785776098.1686686778392-- ------=_Part_442_2116186902.1686686778392--