astro / bitlove-ui

Bitlove.org on Yesod
http://bitlove.org/
Other
31 stars 8 forks source link

Don't choke on feeds with encoding errors #23

Closed zealot128 closed 6 years ago

zealot128 commented 9 years ago

Hey,

i just tried to fetch all Bitlove feeds to automatically import them into Podfilter :)

Then I noticed that some feeds produce 500 errors: http://bitlove.org/landfunker/landfunker/feed

cheers!

astro commented 9 years ago

Thank you for reporting. I sincerely hope you enjoyed the error page.

SqlError {
  seState = "22021"
, seNativeError = 7
, seErrorMsg = "execute: PGRES_FATAL_ERROR: ERROR:  invalid byte sequence for encoding \"UTF8\": 0xfc\n"
}

Looks like I should be more wary with input. Postponing this issue to another date... Of course, the correct fix would be in the source file itself. :-)

astro commented 6 years ago

This particular feed (which goes back to episode one) displays fine by now. In the meanwhile, I've swapped HDBC with postgresql-libpq.