rust-syndication / rss

Library for serializing the RSS web content syndication format
https://crates.io/crates/rss
Apache License 2.0
419 stars 52 forks source link

Podcast rss feed returns EOF with rust-syndication crate #157

Closed SamTV12345 closed 11 months ago

SamTV12345 commented 12 months ago

Hi,

I have the problem that my app uses this crate to parse a byte response from an rss feed to a channel. I got a request from a user that has an rss feed which always returns EOF. It is a czech podcast rss feed with a lot of unicode characters.

SamTV12345 commented 12 months ago

This is the related issue: https://github.com/SamTV12345/PodFetch/issues/297

andy128k commented 12 months ago

@SamTV12345 This is non-actionable until you provide a way to reproduce a failure.

SamTV12345 commented 12 months ago

Yes. The problem is that it is a paid podcast and I am not the subscriber. @mrhackcz could you please send him the link via email to andy128k@gmail.com?

mrhackcz commented 12 months ago

Yep, I sent Andy rss link. Thanks

andy128k commented 12 months ago

Well, I've downloaded a file and tested it. It parsed without any issues and it contains 106 items. @SamTV12345 Could it be that the error you are talking about is caused by a network issue and a truncated download?

SamTV12345 commented 12 months ago

@andy128k I could also reproduce it on my local server. Could you please try it with this docker compose?

version: '3'
services:
  podfetch:
    image: samuel19982/podfetch:latest
    user: ${UID:-1000}:${GID:-1000}
    ports:
      - "80:8000"
    volumes:
      - podfetch-podcasts:/app/podcasts
      - podfetch-db:/app/db
    environment:
      - POLLING_INTERVAL=60
      - SERVER_URL=http://<your-ip>:<your-port>

volumes:
  podfetch-podcasts:
  podfetch-db:
SamTV12345 commented 11 months ago

@andy128k Any update?

SamTV12345 commented 11 months ago

Ah found the error. The provider wants to have a user agent in the request for whatever reason.