SIA feeds are down #96

Closed
opened 2022-04-14 07:46:08 +00:00 by lucidiot · 0 comments
Owner

When building the sia-en, sia-sv and sia-fi RSS feeds, an XML error occurs:

Traceback (most recent call last):                                                                                     
  File "/home/lucidiot/dev/itsb/bin/xml2json", line 39, in <module>
    main()                                                                                                             
  File "/home/lucidiot/dev/itsb/bin/xml2json", line 33, in main
    xmltodict.parse(args.infile.read()),                                                                               
  File "/home/lucidiot/.local/lib/python3.8/site-packages/xmltodict.py", line 327, in parse
    parser.Parse(xml_input, True)                                                                                      
xml.parsers.expat.ExpatError: syntax error: line 1, column 49
Traceback (most recent call last):                                                                                     
  File "/home/lucidiot/dev/itsb/bin/json2xml", line 60, in <module>
    main()                                                                                                             
  File "/home/lucidiot/dev/itsb/bin/json2xml", line 52, in main
    json.load(args.infile),                                                                                            
  File "/usr/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),                                                                                            
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)                                                                                  
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode    
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())                                                                  
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode   
    raise JSONDecodeError("Expecting value", s, err.value) from None        
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)  

curl -v shows that the request redirects to a strange URL:

< HTTP/1.1 301 Moved Permanently
< Date: Thu, 14 Apr 2022 07:44:17 GMT
< Server: Apache
< Location: https://sia.fi/en/index.htmlapi/oh-internet-sisallonhallinta/hae_nostolista.srv
< Content-Length: 287
< Content-Type: text/html; charset=iso-8859-1
< 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://sia.fi/en/index.htmlapi/oh-internet-sisallonhallinta/hae_nostolista.srv">here</a>.</p>
</body></html>

This issue seems to affect the entire SIA website: Opening https://sia.fi redirects to https://sia.fi/en/index.html, which redirects to https://sia.fi/en/index.htmlen/index.html, etc.

When building the `sia-en`, `sia-sv` and `sia-fi` RSS feeds, an XML error occurs: ```python Traceback (most recent call last): File "/home/lucidiot/dev/itsb/bin/xml2json", line 39, in <module> main() File "/home/lucidiot/dev/itsb/bin/xml2json", line 33, in main xmltodict.parse(args.infile.read()), File "/home/lucidiot/.local/lib/python3.8/site-packages/xmltodict.py", line 327, in parse parser.Parse(xml_input, True) xml.parsers.expat.ExpatError: syntax error: line 1, column 49 Traceback (most recent call last): File "/home/lucidiot/dev/itsb/bin/json2xml", line 60, in <module> main() File "/home/lucidiot/dev/itsb/bin/json2xml", line 52, in main json.load(args.infile), File "/usr/lib/python3.8/json/__init__.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ``` `curl -v` shows that the request redirects to a strange URL: ``` < HTTP/1.1 301 Moved Permanently < Date: Thu, 14 Apr 2022 07:44:17 GMT < Server: Apache < Location: https://sia.fi/en/index.htmlapi/oh-internet-sisallonhallinta/hae_nostolista.srv < Content-Length: 287 < Content-Type: text/html; charset=iso-8859-1 < <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://sia.fi/en/index.htmlapi/oh-internet-sisallonhallinta/hae_nostolista.srv">here</a>.</p> </body></html> ``` This issue seems to affect the entire SIA website: Opening https://sia.fi redirects to https://sia.fi/en/index.html, which redirects to https://sia.fi/en/index.htmlen/index.html, etc.
lucidiot added the
bug
feed
labels 2022-04-14 07:46:08 +00:00
lucidiot self-assigned this 2022-04-14 07:46:08 +00:00
lucidiot referenced this issue from a commit 2022-04-19 17:35:56 +00:00
Sign in to join this conversation.
No description provided.