fasheng / elfeed-protocol

Provide extra protocols to make like Fever, NewsBlur, Nextcloud/ownCloud News and Tiny Tiny RSS work with elfeed
GNU General Public License v3.0
100 stars 18 forks source link

URL malformed. The syntax was not correct." #45

Closed mrunhap closed 3 years ago

mrunhap commented 3 years ago

elfeed-log

Please collect logs in buffer *elfeed-log* with the following config before reporting issues:

[2021-03-30 20:30:11] [error]: ?api&feeds: "(3) URL malformed. The syntax was not correct."

(setq elfeed-log-level 'debug)
(toggle-debug-on-error)
[2021-03-30 20:34:56] [debug]: elfeed-protocol-fever: update feed list
[2021-03-30 20:34:56] [debug]: retrieve (?api&feeds)
[2021-03-30 20:34:56] [error]: ?api&feeds: "(3) URL malformed. The syntax was not correct."

Example config:

(leaf elfeed-protocol
  :straight t
  :after elfeed
  :init
  (setq elfeed-protocol-fever-maxsize 1000)
  (setq elfeed-use-curl t)
  (elfeed-set-timeout 36000)
  (setq elfeed-curl-extra-arguments '("--insecure"))
  (setq elfeed-feeds '("fever+https://miniflux:miniflux@example.com/fever/"))
  (elfeed-protocol-enable))
mrunhap commented 3 years ago

change config to :

 (setq elfeed-feeds (list
                      (list "fever+https://miniflux@example.com"
                            :api-url "https://example.com/fever/"
                            :password "miniflux"
                            :autotags '(("example.com" comic)))))
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  split-string(nil ",")
  elfeed-protocol-split-ids-sub-size("," nil 1000)
mrunhap commented 3 years ago

elfeed-log:

[2021-03-30 20:39:04] [debug]: elfeed-protocol-fever: update feed list
[2021-03-30 20:39:04] [debug]: retrieve (https://example.com/fever/?api&feeds)
[2021-03-30 20:39:05] [debug]: elfeed-protocol-fever: found 0 feeds
[2021-03-30 20:39:05] [debug]: elfeed-protocol-fever: update entries with action init, arg nil
[2021-03-30 20:39:05] [debug]: retrieve (https://example.com/fever/?api&saved_item_ids)
mrunhap commented 3 years ago

Don't know why it says found 0 feeds, I use reeder on my phone with fever and it's work perfect.

fasheng commented 3 years ago

I use miniflux+fever and similar config, too. Here is my environment:

Please check if you could fetch feeds correctly in bash shell:

curl -H'User-Agent: Emacs Elfeed 3.3.0' -XPOST -d api_key=$(echo -n 'user:pass' | md5sum | awk '{print $1}') 'https://example.com/fever/?api&feeds'
mrunhap commented 3 years ago

I use miniflux+fever and similar config, too. Here is my environment:

  • OS version: nixos linux 5.4.100
  • emacs version: 27.1
  • elfeed version: 3.3.0
  • elfeed-protocol version: 0.8.0
  • curl version: 7.74.0
  • server version: miniflux/miniflux:2.0.20 (docker image and tag)

Please check if you could fetch feeds correctly in bash shell:

curl -H'User-Agent: Emacs Elfeed 3.3.0' -XPOST -d api_key=$(echo -n 'user:pass' | md5sum | awk '{print $1}') 'https://example.com/fever/?api&feeds'

I fount it return auth:0, and yep, my username and password is wrong. Now it worked, sorry about mine... and thanks about your reply!

fasheng commented 3 years ago

Fine. Enjoy!