From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: ChatGPT error (nil): Malformed JSON in response. Date: Sat, 20 May 2023 21:54:00 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24521"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 20 15:54:41 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q0N2f-00067t-6p for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 May 2023 15:54:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0N2H-0003XD-Bs; Sat, 20 May 2023 09:54:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0N2G-0003X3-8Z for help-gnu-emacs@gnu.org; Sat, 20 May 2023 09:54:16 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0N2E-0000Bs-GR for help-gnu-emacs@gnu.org; Sat, 20 May 2023 09:54:16 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-50be17a1eceso7573082a12.2 for ; Sat, 20 May 2023 06:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684590852; x=1687182852; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CwfryIwNsRjcXKCe5a/tx0H0S6cpxHamjv/nlzG8CBg=; b=TedNNb6cLWwcqjT4YQwoainbrrcff+eROGXHJhhhzFawq4q5HlfXtdq5FEWnyCZAj1 OjSkS8cnqSNbdPWuTB5Ybfp33t2be0wSzh0BS6ek5gJFWqQyJkVI5hCdw5YLBaPO7pS5 mjAsu3yVl16w8mFTiiDRdETSooMXPF1KYqZlmmkiY4/HoiZlBcJ94lVpLNVX8y6kkRYL cN9kCuZQpmynh6/D0Z9rA4AcNLT2KJr41EeDuCxKmnk4fkkIyGPGuTvyGlYLqj1jryO7 u3N0DqK1SjY0Gy6HmMXnNj2gu3jCmYkpOjAnIS5LwQbnzgODAhCLBjIQbUFLV0JFNRu0 PPXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684590852; x=1687182852; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CwfryIwNsRjcXKCe5a/tx0H0S6cpxHamjv/nlzG8CBg=; b=G8rR34O3a7FZxcLG/4pysI/3u27ObspQquELPNhkhCvzSKpTt2P2UXMTLwrVTRwurb s0bi5egzQS9mks0D+eQgNWTaocHrZQcB5SC/8pR05dR9SldGbLTsdVJB9C4gKp3qlJja imO32GVicdd6geC+G8bnSTf+3YAF769SgPtfiG1fN+vg01i04GIAMWl+9TX9mo7nMVym keV8z2BR1Ec7Ot/qXTrp8RcdeDGLqbrNL5o9kq1oS7swpJbDTTsRRTwfOrl5C/wTf5ge qjnRuV9ozfkA3nQZpmYgZWr7b4iSlHAFju2XMXNLU4wSqSsDd9yyAUvEfpjPaDzB1Y/c JAhQ== X-Gm-Message-State: AC+VfDzx1ygOkkE3MAlVbDUlugPjsbPVhTJBN+gun7030l/6dVPihpky wM5W7xX7OihBytO3jFqJoqGKuiM+DIQyLG8hqywH/rA6OGufgzyPFAM= X-Google-Smtp-Source: ACHHUZ7qT10kfQsAI4Q8Px+JGqWdbCSPWSahEpuxD7aXLutbYHIEHvYAzHbNgojy7xyeVndS6JQ/mlhssCXWTF3qdLQ= X-Received: by 2002:a17:907:7da7:b0:94e:fa56:a74f with SMTP id oz39-20020a1709077da700b0094efa56a74fmr5524902ejc.14.1684590852322; Sat, 20 May 2023 06:54:12 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=hongyi.zhao@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143670 Archived-At: On Sat, May 20, 2023 at 9:18=E2=80=AFAM Hongyi Zhao = wrote: > > Hi here, > > On Ubuntu 22.10, I updated my Emacs to its latest git master version, > but found that gptel doesn't work for this version, as shown in the > attached screenshot. > > Is this a bug of this package or Emacs itself? I see the reason. In fact, it's caused by proxychains-ng, as described here [1]. The simplest method would be commented out the culprit code line and re-compile proxychains-ng as commented here [2], but I wonder whether there is a more graceful solution from the Emacs side. [1] https://github.com/karthink/gptel/issues/60#issuecomment-1555443386 [2] https://github.com/rofl0r/proxychains-ng/issues/511#issuecomment-155572= 6372 > See https://github.com/karthink/gptel/issues/60 for the related discussio= n. > > Regards, > Zhao