unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Brett Gilio <brettg@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: `url-insert-file-contents' not reliably connecting.
Date: Wed, 19 Aug 2020 21:04:21 -0500	[thread overview]
Message-ID: <87mu2qdqe2.fsf@gnu.org> (raw)

Hey all,

I am writing an elisp library for generating an RSS blog webring
integrated with org-mode. In order to fetch the RSS XML files we are
using `url-insert-file-contents' to connect to a list of URLs that
eventually get parsed out. There is a bizarre behavior with this
function, however, as it does not /always/ reliably connect to all of
the URLs in a given list. For example:

--8<---------------cut here---------------start------------->8---
(setq org-webring-urls 
      '("https://brettgilio.ml/rss.xml"
	"https://drewdevault.com/feed.xml" 
	"https://sourcehut.org/blog/index.xml"
	"https://kowainik.github.io/rss.xml"
	"http://www.weaselhat.com/feed"
	"https://sachachua.com/blog/feed/"))
--8<---------------cut here---------------end--------------->8---

When given this variable set, with 6 entries. There are times where it
will connect to 5, 6, 4, 2, 3... and terminate successfully without
producing any error message. There is not any suspected connectivity
issue, as when that occurs an error message DOES get raised. It just
seems to terminate whenever it thinks it is done, but never
consistently, and never in the same order.

Here is the complete file containing all of the current source code for
this library:
https://git.sr.ht/~brettgilio/org-webring/tree/master/org-webring.el

I hope somebody can help me figure out this mystery.

Brett Gilio



             reply	other threads:[~2020-08-20  2:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-20  2:04 Brett Gilio [this message]
2020-08-20  3:49 ` `url-insert-file-contents' not reliably connecting Brett Gilio
2020-08-20  6:14   ` Brett Gilio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mu2qdqe2.fsf@gnu.org \
    --to=brettg@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).