meooow25 / cfspy

A simple Codeforces utility bot for Discord
MIT License
11 stars 1 forks source link

Error fetching blog - invalid character '<' looking for beginning of value #44

Closed osalbahr closed 2 years ago

osalbahr commented 2 years ago

Error message: Error fetching blog from https://codeforces.com/blog/entry/4088: invalid character '<' looking for beginning of value If this is a reproducible bug, please report it.

Reproducible? Yes. I tried multiple channels in the same server.

osalbahr commented 2 years ago

It's back up now. It seems that a better error message would be "API error" or something indicating that the issue is from Codeforces's side.

meooow25 commented 2 years ago

Thanks for reporting. Yes, I think it's likely that the Codeforces API responded with HTML instead of JSON, making the parser return that particular error. I agree that it would be a good idea to add some context to the error messages, will implement it 👍