Page MenuHomePhabricator

weblinkchecker_tests.TestMementoWebCite fails due to MementoClientException
Closed, ResolvedPublic

Description

4705 ======================================================================
4706 ERROR: test_newest (tests.weblinkchecker_tests.TestMementoWebCite)
4707 Test WebCite for newest https://google.com.
4708 ----------------------------------------------------------------------
4709 Traceback (most recent call last):
4710   File "c:\projects\pywikibot-g4xqx\tests\weblinkchecker_tests.py", line 69, in test_newest
4711     archivedversion = self._get_archive_url('https://google.com')
4712   File "c:\projects\pywikibot-g4xqx\tests\weblinkchecker_tests.py", line 37, in _get_archive_url
4713     url, when, self.timegate_uri)
4714   File "c:\projects\pywikibot-g4xqx\scripts\weblinkchecker.py", line 200, in _get_closest_memento_url
4715     memento_info = mc.get_memento_info(url, when)
4716   File "c:\projects\pywikibot-g4xqx\.eggs\memento_client-0.6.1-py2.7.egg\memento_client\memento_client.py", line 216, in get_memento_info
4717     "status_code": str(response.status_code)})
4718 MementoClientException: The TimeGate (http://timetravel.mementoweb.org/webcite/timegate/https://google.com) returned with HTTP status 504 and did not redirect to a Memento.
4719
4720 ----------------------------------------------------------------------
4721 Ran 1669 tests in 552.181s
4722

Event Timeline

Xqt triaged this task as High priority.May 5 2018, 8:08 AM

Change 431084 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [test] skip test when MementoClientException occurs

https://gerrit.wikimedia.org/r/431084

Change 431084 merged by jenkins-bot:
[pywikibot/core@master] [test] skip test when MementoClientException occurs

https://gerrit.wikimedia.org/r/431084

Xqt reopened this task as Open.EditedMay 5 2018, 10:41 AM

4723 ImportError: cannot import name MementoClientException

https://travis-ci.org/wikimedia/pywikibot/jobs/375211410

Change 431087 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] Fix MementoClientException import

https://gerrit.wikimedia.org/r/431087

Change 431087 merged by jenkins-bot:
[pywikibot/core@master] Fix MementoClientException import

https://gerrit.wikimedia.org/r/431087

Xqt reassigned this task from Xqt to Dalba.
Vvjjkkii renamed this task from weblinkchecker_tests.TestMementoWebCite fails due to MementoClientException to jkdaaaaaaa.Jul 1 2018, 1:11 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed Dalba as the assignee of this task.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.
CommunityTechBot renamed this task from jkdaaaaaaa to weblinkchecker_tests.TestMementoWebCite fails due to MementoClientException.Jul 2 2018, 6:25 AM
CommunityTechBot closed this task as Resolved.
CommunityTechBot assigned this task to Dalba.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added subscribers: gerritbot, Aklapper.

This isn't solved, the exception still occurres but the test is just skipped currently due to CheckHostnameMixin mixin when using hostname. The status is 502 now. Seems this URL does no longer exist.

Xqt removed Dalba as the assignee of this task.May 6 2022, 5:28 PM

Change 806865 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] Update TestMementoWebCite

https://gerrit.wikimedia.org/r/806865

Xqt claimed this task.

Change 806865 merged by jenkins-bot:

[pywikibot/core@master] [tests] Update TestMementoWebCite

https://gerrit.wikimedia.org/r/806865