rbren / rss-parser

A lightweight RSS parser, for Node and the browser
MIT License
1.38k stars 209 forks source link

ParseURL fails with ERR_ADDRESS_UNREACHABLE in Android Emulator using Ionic/Capacitor in Android #252

Closed ghost closed 1 year ago

ghost commented 1 year ago

Works in the browser, but once I sync to Android and run it, the ParseURL can't seem to access the public RSS feed. The mobile app can access the Internet no problem, it's just through ParseURL. Gets ERR_ADDRESS_UNREACHABLE.

ghost commented 1 year ago

Ok I noticed if I add the Cors Proxy from the example it works - I don't really understand why the error would be ERR_ADDRESS_UNREACHABLE for CORS, but at least I know it's CORS. Any tips? The rest of the app can access URL's just fine and there are no CORS requirements on the RSS feed.

rbren commented 1 year ago

I would try downloading the URL using fetch or another HTTP library, then using parseString. That might give you more debug info. This doesn't seem like an rss-parser issue though