iview DL fails, auth error?

Issue #114 resolved
Caiatris created an issue

From grabber.py, attempting to download any video from ABC iView results in an error like:

Choose> 1
Traceback (most recent call last):
  File "/home/user/dev/webdl/grabber.py", line 62, in <module>
    main()
  File "/home/user/dev/webdl/grabber.py", line 55, in main
    if not n.download():
  File "/home/user/dev/webdl/iview.py", line 60, in download
    token, token_hostname= self.get_auth_details()
  File "/home/user/dev/webdl/iview.py", line 44, in get_auth_details
    token = auth_doc.xpath("//auth:tokenhd/text()", namespaces=NS)[0]
  File "src/lxml/etree.pyx", line 2292, in lxml.etree._ElementTree.xpath
  File "src/lxml/etree.pyx", line 1870, in lxml.etree._ElementTree._assertHasRoot
AssertionError: ElementTree not initialized, missing root

This was working 2 days ago.

(.virtualenv) user@oz:~/dev/webdl$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
(.virtualenv) user@oz:~/dev/webdl$ date
Wed Sep 16 13:51:53 UTC 2020

Comments (6)

  1. Paul Wise

    I noticed this too, the issue seems to be that the auth URL is now 404:

    $ curl -s https://api.iview.abc.net.au/auth | jq
    {
      "status": "error",
      "code": 404,
      "message": "The requested resource could not be found"
    }
    
    $ wget https://api.iview.abc.net.au/auth 
    --2020-09-17 10:17:03--  https://api.iview.abc.net.au/auth
    Resolving api.iview.abc.net.au (api.iview.abc.net.au)... 23.32.52.182
    Connecting to api.iview.abc.net.au (api.iview.abc.net.au)|23.32.52.182|:443... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2020-09-17 10:17:04 ERROR 404: Not Found.
    

  2. Caiatris reporter

    Thanks for the quick fix!

    I wasn’t certain if I was supposed to open an Issue for this, but it worked out nicely.

  3. Log in to comment