Ashinch / ReadYou

An Android RSS reader presented in Material You style.
GNU General Public License v3.0
5.11k stars 202 forks source link

Favicons not working: 503 Error from "besticon-demo.herokuapp.com" #806

Closed OrkoGrayskull closed 3 months ago

OrkoGrayskull commented 3 months ago

1. Environment

2. Describe the bug

Retrieving the favicons of the rss feed sources does not work. Tested with different feeds.

I have made a network recording.

Request:

GET /allicons.json?url=https://www.heise.de/rss/heise.rdf HTTP/1.1
Host: besticon-demo.herokuapp.com
Connection: Keep-Alive
Accept-Encoding: gzip
User-Agent: ReadYou/0.10.1(25)

Response:

HTTP/1.1 503 Service Unavailable
Cache-Control: no-cache, no-store
Content-Type: text/html; charset=utf-8
Nel: {"report_to":"heroku-nel","max_age":3600,"success_fraction":0.01,"failure_fraction":0.1,"response_headers":["Via"]}
Report-To: {"group":"heroku-nel","max_age":3600,"endpoints":[{"url":["https://nel.heroku.com/reports?s=L5Ul0YcUAzvlGXC9nT%2BYQfyhrVDo3CuqO7ifIzXeGcI%3D\u0026sid=c4c9725f-1ab0-44d8-820f-430df2718e11\u0026ts=1721994547"](https://nel.heroku.com/reports?s=L5Ul0YcUAzvlGXC9nT%2BYQfyhrVDo3CuqO7ifIzXeGcI%3D\u0026sid=c4c9725f-1ab0-44d8-820f-430df2718e11\u0026ts=1721994547)}]}
Reporting-Endpoints: heroku-nel=["https://nel.heroku.com/reports?s=L5Ul0YcUAzvlGXC9nT%2BYQfyhrVDo3CuqO7ifIzXeGcI%3D&sid=c4c9725f-1ab0-44d8-820f-430df2718e11&ts=1721994547"](https://nel.heroku.com/reports?s=L5Ul0YcUAzvlGXC9nT%2BYQfyhrVDo3CuqO7ifIzXeGcI%3D&sid=c4c9725f-1ab0-44d8-820f-430df2718e11&ts=1721994547)
Server: Heroku
Via: 1.1 heroku-router
Date: Fri, 26 Jul 2024 11:49:07 GMT
Content-Length: 567

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <title>Application Error</title>
    <style media="screen">
      html,body,iframe {
        margin: 0;
        padding: 0;
      }

      html,body {
        height: 100%;
        overflow: hidden;
      }

      iframe {
        width: 100%;
        height: 100%;
        border: 0;
      }
    </style>
  </head>
  <body>
    <iframe src=["https://www.herokucdn.com/error-pages/application-error.html"](https://www.herokucdn.com/error-pages/application-error.html)></iframe>
  </body>
</html>

Perhaps you should do without the service and implement it differently.

By the way: If you block the domain, no more feeds are updated at all.

HolgerHuo commented 3 months ago

I've also had this bug with queryRssIcon is failed: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ from adb logcat.

My backend is Miniflux with Greader's api, and Miniflux doesn't seem to sync with it under specific circumstances. Sometimes not working under mobile data, and sometimes with WiFi, and i don't seem to be able to find out the root cause. (I think it's related to the queryRssIcon method to some degree.)

This issue begins a few weeks ago.