{"action":"closed","issue":{"url":"https://api.github.com/repos/getnikola/nikola/issues/1695","labels_url":"https://api.github.com/repos/getnikola/nikola/issues/1695/labels{/name}","comments_url":"https://api.github.com/repos/getnikola/nikola/issues/1695/comments","events_url":"https://api.github.com/repos/getnikola/nikola/issues/1695/events","html_url":"https://github.com/getnikola/nikola/issues/1695","id":73677353,"number":1695,"title":"TypeError building a page with a link with an eD2k URI scheme","user":{"login":"chaghi","id":6282941,"avatar_url":"https://avatars.githubusercontent.com/u/6282941?v=3","gravatar_id":"","url":"https://api.github.com/users/chaghi","html_url":"https://github.com/chaghi","followers_url":"https://api.github.com/users/chaghi/followers","following_url":"https://api.github.com/users/chaghi/following{/other_user}","gists_url":"https://api.github.com/users/chaghi/gists{/gist_id}","starred_url":"https://api.github.com/users/chaghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaghi/subscriptions","organizations_url":"https://api.github.com/users/chaghi/orgs","repos_url":"https://api.github.com/users/chaghi/repos","events_url":"https://api.github.com/users/chaghi/events{/privacy}","received_events_url":"https://api.github.com/users/chaghi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getnikola/nikola/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/getnikola/nikola/labels/in%20progress","name":"in progress","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"ralsina","id":1579,"avatar_url":"https://avatars.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/getnikola/nikola/milestones/21","html_url":"https://github.com/getnikola/nikola/milestones/7.4.1","labels_url":"https://api.github.com/repos/getnikola/nikola/milestones/21/labels","id":1097046,"number":21,"title":"7.4.1","description":"","creator":{"login":"ralsina","id":1579,"avatar_url":"https://avatars.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2015-05-05T14:46:40Z","updated_at":"2015-05-08T15:55:28Z","due_on":"2015-05-08T03:00:00Z","closed_at":null},"comments":2,"created_at":"2015-05-06T16:56:15Z","updated_at":"2015-05-08T15:55:28Z","closed_at":"2015-05-08T15:55:28Z","body":"The following reST input:\r\n\r\n```rst\r\n.. title: eD2k Link Test\r\n.. slug: ed2k-link-test\r\n.. date: 2015-05-06 15:25:58 UTC\r\n.. tags:\r\n.. category:\r\n.. link:\r\n.. description:\r\n.. type: text\r\n\r\nHere is an `eD2k link`_\r\n\r\n.. _eD2k link: ed2k://|file|Audio Book - Orson Welles - War Of The Worlds, Original, Uncut.mp3|54878208|B7E6517C258F0062832629718E91FFBC|/\r\n```\r\n\r\nFails to build with this error:\r\n\r\n```pytb\r\nTaskError - taskid:render_indexes:output/index.html\r\nPythonAction Error\r\nTraceback (most recent call last):\r\n  File \"/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/action.py\", line 372, in execute\r\n    returned_value = self.py_callable(*self.args, **kwargs)\r\n  File \"/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/nikola/nikola.py\", line 968, in render_template\r\n    doc.rewrite_links(lambda dst: self.url_replacer(src, dst, context['lang']))\r\n  File \"/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/lxml/html/__init__.py\", line 483, in rewrite_links\r\n    new_link = link_repl_func(link.strip())\r\n  File \"/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/nikola/nikola.py\", line 968, in <lambda>\r\n    doc.rewrite_links(lambda dst: self.url_replacer(src, dst, context['lang']))\r\n  File \"/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/nikola/nikola.py\", line 1016, in url_replacer\r\n    dst_url.fragment))\r\n  File \"/usr/lib/python3.4/urllib/parse.py\", line 393, in urlunsplit\r\n    _coerce_args(*components))\r\n  File \"/usr/lib/python3.4/urllib/parse.py\", line 109, in _coerce_args\r\n    raise TypeError(\"Cannot mix str and non-str arguments\")\r\nTypeError: Cannot mix str and non-str arguments\r\n\r\nhttps://example.com/index.html\r\nhttps://example.com/\r\ned2k://%7Cfile%7CAudioBook-OrsonWelles-WarOfTheWorlds,Original,Uncut.mp3%7C54878208%7CB7E6517C258F0062832629718E91FFBC%7C/\r\n```\r\n\r\nThis is `Nikola 7.4.0`, on `Python 3.4.0`, `lxml 3.4.4`, `doit 0.28.0`, on a clean site initialized accepting all the defaults.\r\n"}}