I have a task that fills(Ideally) my database with fresh data every day from the web. I have successfully been running the script from Files (normal console), but when i schedule it it crashes. Are there any restrictions for scheduled task (Firewalls etc.)?
This is my call: /usr/bin/python2.7 -i /home/imlercj/Beta/FillDB.py
This is my error:
0 https://www.yr.no�/�s�t�e�d�/�N�o�r�g�e�/���s�t�f�o�l�d�/�H�a�l�d�e�n�/�B�e�r�g�_�k�i�r�k�e�/� �varsel_time_for_time.xml Traceback (most recent call last): File "/home/imlercj/Beta/FillDB.py", line 39, in <module> forcast = Yr(tmp[i][3],i) File "/home/imlercj/Beta/Yr.py", line 31, in Yr data = xmltodict.parse(response) File "/home/imlercj/.local/lib/python2.7/site-packages/xmltodict.py", line 328, in parse parser.ParseFile(xml_input) xml.parsers.expat.ExpatError: mismatched tag: line 7, column 2
How can this be debuged when it runns perfectly in the normal console?