geirawsm / sausage_bot

Another Discord-bot
1 stars 0 forks source link

Error when parsing tv2 #64

Open geirawsm opened 2 months ago

geirawsm commented 2 months ago
[ 09.09.2024 08.00.50 ] [  VERBOSE  ] [ net_io.parse (433) ] Got parser `tv2livesport`
[ 09.09.2024 08.00.50 ] [ DATABASES ] [ net_io.get_link (37) ] Found scheme in url
[ 09.09.2024 08.00.50 ] [ DATABASES ] [ net_io.get_link (42) ] Trying `url`: https://tv2-sport-backend.sumo.tv2.no/football/matches/f28d8bb9-0aa1-4783-8849-cc705fe91c3a/facts
[ 09.09.2024 08.00.51 ] [ DATABASES ] [ net_io.get_link (46) ] Got status: 404
[ 09.09.2024 08.00.51 ] [ DATABASES ] [ net_io.get_link (48) ] Got content_out: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /football/matches/f28d8bb9-0aa1-4783-8849-cc705fe91c3a/facts</pre>
</body>
</html>
...
[ 09.09.2024 08.00.51 ] [   ERROR   ] [ net_io.get_link (54) ] Got error code 404
[ 09.09.2024 08.00.51 ] [   ERROR   ] [ net_io.parse (482) ] Klarte ikke parsing av https://www.tv2.no/livesport/fotball/kamper/man-city-vs-brentford/f28d8bb9-0aa1-4783-8849-cc705fe91c3a/oversikt - fikk følgende feil:
the JSON object must be str, bytes or bytearray, not int
[ 09.09.2024 08.00.51 ] [ DATABASES ] [ autoevent.event_add (94) ] scrape is NOT ok