From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32435 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mails.lists.2012-1-rRloVJBGZzogAv4oPwG0Al6hYfS7NtTn@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Unexpected behaviour with pandoc-server Date: Sat, 1 Apr 2023 23:27:01 +0200 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17405"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDBMTHOB3MPBBKGDUKQQMGQE2WU6ZFI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Apr 01 23:27:09 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f58.google.com ([209.85.167.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1piike-0004N1-PS for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 01 Apr 2023 23:27:08 +0200 Original-Received: by mail-lf1-f58.google.com with SMTP id z20-20020a195e54000000b004e9609a300csf10007368lfi.2 for ; Sat, 01 Apr 2023 14:27:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680384428; cv=pass; d=google.com; s=arc-20160816; b=URdtT2+1knUjMzFy1ePOD3nG5N7ctaxhGJW/TGJe30MOtSDgkmJzkDNE1g2LWYnQ9c lN/kojMcUBn+5f2Irc4Ai0lcQ8vq1AEJRtgKUtY+vWkHz/Bz4SMiPX1pFTybnqQAJiXj Pro4x4HkKTZLPP4P42reC1zaZKQKtNAp0Tfj5Dr8qfZuHR7n7upiKqyHgfzi2CtcpPrZ 0YgMkbqAB2JV73ULnOr4WWseMTdKsG1a+/4gXeNde3RqId4EkIMYmpxFbBledDBbTThU QPOf2icTHesJmAzDKaGAny7SArTvqLmeUIZ2J07vTeQQB5QiYUtEOC1KfZJVhdPNZekY 71cQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:subject :content-transfer-encoding:from:to:content-language:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=xwxO0ICSM1FLCn0FrprxDGfsVCKHkMR9T6SNgDr/FDE=; b=GEOJVcHtlpN95Y+gJ0/NT1mGrsLyJZ61WAKnXxFgtwC7XqWgCNCXiB7joYxr0N4+0a GwfDD3xNn54MV4MBWfMNymeuklgMrcGw5MzpgPGN2FaIBOlE+RtsvF8mtSxgL1her1xn eRx5l4tgkQfvOFexyJs9EBEazZ82dFfEAVbGiw2kdoE37kyMU3zmDHI5z1keGuu/0PA4 sJgl13sCMAwtygeF8gky1lpUsKQ8A+eu1c1z8ryRKKzrUWSEBkGiPpHbP6twZ+RzntF2 OvjdcVGrC8hPVV6K5b8hyIOiylfro0g1wb1UmvyJ50ncalKmRMUQkeqdUi8vUEryomz/ ptWg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=none (google.com: gunter.ohrner.net does not designate permitted sender hosts) smtp.mailfrom=mails.lists.2012-1-rRloVJBGZzogAv4oPwG0Al6hYfS7NtTn@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680384428; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:subject :content-transfer-encoding:from:to:content-language:user-agent :mime-version:date:message-id:sender:from:to:cc:subject:date :message-id:reply-to; bh=xwxO0ICSM1FLCn0FrprxDGfsVCKHkMR9T6SNgDr/FDE=; b=F3OHbxz/zUTrJDJy0mynfh2EccHxnEv7TH6rSnlqw5okeJ2gBUnRGnx56FE/tky19U AKjihyecym8HkHVMPpdpp0+1q3GQJJIP0KhVJQoLvR3ihKMcqxYD9RYrM9Cx0QJJzJzm 8HhZC5gRioA+ksRRuXPAFzd3L4x7RCpN+KHRGHVTuLKv0FspAh36+oXMiWeVMfe3nTL4 hz9HvZH0iOfw2pPFso+Du5oKz7P8dWNpi82PUTvz0LjiB2OAVfWICLienlpY6TBpZH2W fLuqxgUwpW43YVxx2JgPCY9LlLVCRl6gli591iUtlPWBzl X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680384428; 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-authentication-results:x-original-sender:subject :content-transfer-encoding:from:to:content-language:user-agent :mime-version:date:message-id:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=xwxO0ICSM1FLCn0FrprxDGfsVCKHkMR9T6SNgDr/FDE=; b=2lMfKjrjNpw4jCRuSNrT6ik/eDWvXNyq1L5tFIlm7OBxaOg8Ho1wO8mPhimnXWLABN nJNCBd0PpTXQWoKEihOL9d4BpgZ7VICNc7MbhkVJCeZEYNUVezuCFANUXG8vFID3mUWD rX6PAaWFZVkpnCnZhdSV8GhDJ7sQFod2/T/ennZz77YIOfbd82fcQ0cmyG7wmNZZ3/C7 rcTqIGNaHkt5w94lbdqxGv/kFmjG9m6YqEOIMU49gG/SPvW+D9+Me/25MtAw2aV0AYKo a Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9dPW2T4vpDcPuqN2BOGm5baG9zUEq0M8KvXkN4/LbApW0AalV6g USFZRrJmc3HMz0MMEpZqvEk= X-Google-Smtp-Source: AKy350abrEsLSGCmH0foNTKlvH8lrYVr8sb+OoSHVrxPSZgjKai0BSHuSyuUkHZzoFdRVF3J8ORwkw== X-Received: by 2002:ac2:5d6d:0:b0:4eb:f3d:94b3 with SMTP id h13-20020ac25d6d000000b004eb0f3d94b3mr6845651lft.6.1680384428256; Sat, 01 Apr 2023 14:27:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:b11:b0:4e8:c8b4:347a with SMTP id w17-20020a0565120b1100b004e8c8b4347als4206009lfu.1.-pod-prod-gmail; Sat, 01 Apr 2023 14:27:03 -0700 (PDT) X-Received: by 2002:ac2:4824:0:b0:4e8:487a:7c2e with SMTP id 4-20020ac24824000000b004e8487a7c2emr3920392lft.14.1680384423044; Sat, 01 Apr 2023 14:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680384423; cv=none; d=google.com; s=arc-20160816; b=khNDqCQjAKXZl5tbV55UlbYqQGym8E2S179RqX07+3vCaQiZlH5vwdLbsMkqPxgVt2 UbMFoB5HU3qhBUX8nZOsSHIzD31+IkxXniBRKYIEo7S1rs/SWP9N3UNZvw4MbQv+WCHG hr3Ig9f2GhjYtXv7Nxxb1isCICms0jo9Gd5etIFlzg0nkelOq0e7PRkiGSQowKzUw/T2 31oP20TKGl8FeSUCfzpWMnFYoyDX+QBsdvFYT2U2LbTulEs0dzcrLHo0vVZGeJYsSlcK 3YoR1lOAgCFzO/R/H8SBYtR9UwOl01Er1geQSTNoqo3WFDEdTMNYCcaoUefuI/fYnvYb cJ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:from:to:content-language :user-agent:mime-version:date:message-id; bh=G2ePwhCrRC0LOeHfMMEHEeyVJ2EwdOcqQ+VOT9BMB/Q=; b=NRy82NTFEkrx3VTty2a5qRjp8Ucns96+bNqORguikbXN11Xt1itXRvWXqSetNTZTfN d8wJnMEmr7tjouxER+WnFUq2dP4r9j7zNeNnXU9WlzGeswWWuwcXfVR0NO+gL2psURN7 HpZThe3uLSCpM3gQy9xVeCA7QGNIFJzcQHdlpkzqeDrTwIWUXQfqKsEzg9olB3fKO7J/ wmwt9jIyWyCiigw//SMSIC8PEmC/O2raO+TDTJeTAxj2OKJGPqd/eeqCVmR+l21rHbt7 +5lvqXbYVm/2yoeqNaLMvx1HcDRaB5hL7pZVbpJm9g3pyswaD6UF9ioNWpN5pfcA1Ns3 b1+w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=none (google.com: gunter.ohrner.net does not designate permitted sender hosts) smtp.mailfrom=mails.lists.2012-1-rRloVJBGZzogAv4oPwG0Al6hYfS7NtTn@public.gmane.org Original-Received: from luggage.ohrner.net (luggage.ohrner.net. [2a00:fe0:1:27:4711:815:42:1000]) by gmr-mx.google.com with ESMTPS id j10-20020a056512108a00b004dcbff74a12si261998lfg.8.2023.04.01.14.27.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Apr 2023 14:27:02 -0700 (PDT) Received-SPF: none (google.com: gunter.ohrner.net does not designate permitted sender hosts) client-ip=2a00:fe0:1:27:4711:815:42:1000; Original-Received: from [2a00:fe0:2:b01::1000] by luggage.ohrner.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1piikX-00Cgoo-5q for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sat, 01 Apr 2023 23:27:01 +0200 Content-Language: en-US X-Orig-fvyLszf-Subject: Unexpected behaviour with pandoc-server X-Original-Sender: mails.lists.2012-1-rRloVJBGZzogAv4oPwG0Al6hYfS7NtTn@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=none (google.com: gunter.ohrner.net does not designate permitted sender hosts) smtp.mailfrom=mails.lists.2012-1-rRloVJBGZzogAv4oPwG0Al6hYfS7NtTn@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:32435 Archived-At: Hi all, I tried out pandoc 3.1.2 server, installed as a CGI script for Apache on=20 Debian 11 "Bullseye" x64. (I first planned to run pandoc-server in actual server mode to avoid the=20 CGI start overhead, but could not figure out how to configure it to=20 listen to localhost only - is this possible?) I used it for Jira Markup -> gfm conversion, and it worked quite fine,=20 except for one specific jira rich text content I encountered. This content formats just fine without any noticeable delay with pandoc -f jira -t gfm --sandbox --wrap=3Dpreserve < in.jira > out.md on my local machine. The server with its default settings first (reproducibly) returned 503=20 errors for this content, though. When I increased the timeout to 10 seconds, a successful reply was=20 returned - after a considerable delay - but the text was basically=20 unconverted. Markdown specific special chars were escaped actually, but=20 Jira formatting like {code} was left unmodified in the text. This completely differs from CLI pandoc invocation, which properly=20 converts these formattings immediately, without any noticable delay. Is this to be expected and what's the background? Or am I encountering a possible bug I should try to analyze further (at=20 least the behaviour, probably not the pandoc code...)? Unfortunately, I cannot simply share the Jira snipped here, so if it's=20 of interest I need to try to condense it into a minimal test case. Of course I may also be doing wrong when sending the request (I'm=20 sending all arguments as JSON as documented, and only accept JSON for a=20 reply - this works fine in all other cases I tested, though, and=20 conversion is much quicker than for this single "strange" Jira field). My intermediate solution was to just build a minimal CGI shell script=20 which in turn just uses pandoc in command line pipe mode - this also=20 works fine and fast, so it's unrelated to the server machine and the=20 pandoc binary installed on it. Best regards, =C2=A0 Gunter --=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/a84dc893-f23f-8468-5d3a-4af15d73ac2c%40ohrner.net.