From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32785 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: Sat, 10 Jun 2023 01:48:31 -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_8755_1902309828.1686386911896" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15480"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC33VNGTVQPRBYPRSCSAMGQETYCFJ2Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jun 10 10:48:37 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f62.google.com ([209.85.161.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q7uGz-0003nh-2D for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 10 Jun 2023 10:48:37 +0200 Original-Received: by mail-oo1-f62.google.com with SMTP id 006d021491bc7-5556fbf5225sf2207927eaf.1 for ; Sat, 10 Jun 2023 01:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686386916; x=1688978916; 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=KXRMssFXYBSPxjWdAW+chqRqK22O6CBjJjCajcUlDgM=; b=kVjwY1kFYqA/YfVnwfgLVCo2K9nDS1C1YAyu9peWFe8C5vDfTdgFeDss+3Nh5+toA2 9f1F+4vtOOMRNKZUp7l9wb7Gbfkov32NMGqh0knh4bK2uTgX0GWvTWp2s0zjz0vsMRSc fth1You9+qrnUNtsuvx2ROnk4kpvmG5h4Z9lWuaPsfj50Fr3tX5bffApp2pbJriWepbx Pf0S7jjDURebz7pww2IAL+T+x+GdyU38C8RGClW18+zaa/upPO1SiKiNPc3c949MesWD hNPeaZayxHLIBLJfb7NoVJaDKwERLZjLxQlXd2cOnFOldoGZWDjUl9b8vQwTqXiwSEso y3sA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686386916; x=1688978916; 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=KXRMssFXYBSPxjWdAW+chqRqK22O6CBjJjCajcUlDgM=; b=oK9DSkMul/ZawtxnnUNt+gzwPyKEkRwAdaIt1PiPYnIPt9tacZ6JX3JNqin+zoURGk Eq8/l+enqV/O2ktIFaXCqLro+OK/WJKhmAL+OjV4r+qJsSZgxQtQyff9VygxAFcq3XKi xXdLzWLqtQobfRAIg/29NagFiQVvkcHccU+t0QjDm43ZB3/AX2xnfWZVGf72uAbCMDhG ceCH+bj//yzeEscT/FZhML8gi+FN94rFdyziLFPPlhj3vbQs9KBS9F0Qw+BZDGZxOMRD ozXI9anEAQfQdSNlNwx3bris6Wt25zBmNIvO6nSmsz7HwmuOr0zkMvTBhT28ZccNEc+T 5m/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686386916; x=1688978916; 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=KXRMssFXYBSPxjWdAW+chqRqK22O6CBjJjCajcUlDgM=; b=jekKNsIB8oTBWX7p+pYKL+r2xyvT7yFcoBn56frpeMZn5unRrRvRIqazYcfiWzIfk4 b4hIw/oUGJMhIGQYnG3DwLutwmsc6JFZ5NZ6Na6aKCyOsQ3jkl0kXVHT9T0EnspPscth b2cDSBh80Ni1TuY51Erwzu+q+KhG/FAxfbJns5HuYsWqiudZJjn+cO7zOybSGThG3UrT 4vNcGkP2OGp0zSKqTFX+TEjnwOtvLhAABa4LDlDyYRUb6oPUbT1Fd4YBfYRatWKBsxU7 GYpx0K5ipwl2QT3DKUdc5YnGNSqMp84LmOzwPi9FXR3Udkismm Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxFnS1DSaNXjtep+zWBmkEfI+RSqPAT6MAog1D+CLgsr8HTPLoQ /aH1Gb4T635nhh/Mxjjkxtk= X-Google-Smtp-Source: ACHHUZ55JyJ9yBi6zhvxXM0d7zQAT97qb0k1QYleqcT6q/QlnUiCyKR4zYAvyIH/qRqUFyRoB+ffcg== X-Received: by 2002:a05:6870:52c1:b0:19a:6209:e164 with SMTP id p1-20020a05687052c100b0019a6209e164mr2766010oak.26.1686386915925; Sat, 10 Jun 2023 01:48:35 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:c98c:0:b0:558:123e:e59a with SMTP id u12-20020a4ac98c000000b00558123ee59als45154ooq.0.-pod-prod-02-us; Sat, 10 Jun 2023 01:48:32 -0700 (PDT) X-Received: by 2002:aca:c043:0:b0:39c:a4da:5de1 with SMTP id q64-20020acac043000000b0039ca4da5de1mr139975oif.11.1686386912640; Sat, 10 Jun 2023 01:48:32 -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:32785 Archived-At: ------=_Part_8755_1902309828.1686386911896 Content-Type: multipart/alternative; boundary="----=_Part_8756_440990456.1686386911896" ------=_Part_8756_440990456.1686386911896 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. 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. > > 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 u= sed. >> >> >> > On Jun 9, 2023, at 1:41 AM, Richard Morey wrote: >> >=20 >> > I've posted this on StackOverflow here but have not gotten any interes= t=20 >> 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 erro= r,=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-UvWbX2vVnXBbO= bj2OVTSKmu1aB.woff2...=20 >> >> > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSumu1aB.woff2...=20 >> >> > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSOmu1aB.woff2...=20 >> >> > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSymu1aB.woff2...=20 >> >> > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTS2mu1aB.woff2...=20 >> >> > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSCmu1aB.woff2...=20 >> >> > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSGmu1aB.woff2...=20 >> >> > Error : pandoc document conversion failed with error 10 >> > The last line varies, but it always seems to be one of these fonts tha= t=20 >> is the last thing pandoc reports before the error (there are 24 of these= =20 >> 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 i= s,=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 Give= =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, 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/ec43be1c-e46d-4323-a70e= -c97a90e670f0n%40googlegroups.com >> . >> >> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> 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 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/d229eff4-6162-4a3b-9604-4361230cceabn%40googlegroups.com. ------=_Part_8756_440990456.1686386911896 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It is the output from an R system() call to pandoc, which returns the pando= c error code. One thing I did check was that it wasn't a 1 with a 0 concate= nated 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 rmarkdown too.= It is frustrating because I can't reliably reproduce it, probably because = it something network-related.

On Friday, June 9, 2023 at 6:25:31=E2=80=AF= PM UTC+1 BPJ wrote:
It seems from the cited error message like it is r= markdown (Rmarkdown) which exits with code 10, so probably not a Pandoc iss= ue at all.

Den fre 9 juni 2023 17:34John Ma= cFarlane <fiddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= > skrev:
That's rather strange because we don't emit error cod= e 10:
https://pandoc.org/MANUAL.html#exit-codes
But it's a bit hard to diagnose these issues that involve external code= . If you can reproduce the issue with pandoc by itself, that would be helpf= ul.=C2=A0 Also it could be useful to know what pandoc version is being used= .


> On Jun 9, 2023, at 1:41 AM, Richard Morey <richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> I've posted this on StackOverflow here but have not gotten any int= erest in several days, so I'm posting here.
>
> I'm having trouble consistently compiling a particular document wi= th rmarkdown::render. I cannot reproduce the issue reliably, unfortunately = (it happens roughly 1/3 of the time; consostent with it being a network err= or, maybe?), but when it fails, I get the error:
>
> pandoc document conversion failed with error 10
> from rmarkdown. The "10" is the return code from the system = command that runs pandoc here.
>
> When I set pandoc to give debugging information with --verbose the fol= lowing lines are the last ones in stderr:
>
> [INFO] Fetching https://fonts.gstatic= .com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2.= ..
> [INFO] Fetching https://fonts.gstatic= .com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2.= ..
> [INFO] Fetching https://fonts.gstatic= .com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2.= ..
> [INFO] Fetching https://fonts.gstatic= .com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2.= ..
> [INFO] Fetching https://fonts.gstatic= .com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2.= ..
> [INFO] Fetching https://fonts.gstatic= .com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2.= ..
> [INFO] Fetching https://fonts.gstatic= .com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2.= ..
> Error : pandoc document conversion failed with error 10
> The last line varies, but it always seems to be one of these fonts tha= t 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 in a succe= ssful compile).
>
> This leads me to believe that there is a problem in fetching one of th= ese fonts, but there's no output that says what the problem actually is= , and Error 10 does not seem to be a valid error code from pandoc: pandoc e= rror codes.
>
> I'm sort of stuck debugging until I figure this out.
>
> I also note there is a similar issue here: NYTimes and 538 Themes Give= Pandoc Error 10 - as a bonus, it even seems to be related to fonts.gstatic.com, but that out seems= to be more specific, including a [WARNING] that I don't see in mine. >
> In case they are helpful, I've put the logs of a failure and succe= ss and the pandoc command that was run in a gist here: logs
>
> I'd appreciate any insights into what could cause this and how to = fix it.
>
> Best,
> Richard
>
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-d= iscus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/ec43be1c-e46d-4323-a70e-c97a90e670f0n%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 pandoc-discus= ...@googlegroups.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/d229eff4-6162-4a3b-9604-4361230cceabn%40googlegroups.= com.
------=_Part_8756_440990456.1686386911896-- ------=_Part_8755_1902309828.1686386911896--