dweb-mirror icon indicating copy to clipboard operation
dweb-mirror copied to clipboard

Crawl - server break on non int mtime

Open mitra42 opened this issue 6 years ago • 3 comments

e.g. https://dweb.me/arc/archive.org/metadata/howwethink01dewegoog

500: invalid literal for int() with base 10: '1180974425.0'

mitra42 avatar Jul 16 '19 22:07 mitra42

Note - this problem is in the python Also seen on astatementlette00cologoog markspotteryand00philgoog

mitra42 avatar Jul 16 '19 23:07 mitra42

127.0.0.1 - - [16/Jul/2019 23:20:20] "GET /info HTTP/1.0" 200 - DEBUG:urllib3.connectionpool:https://archive.org:443 "GET /metadata/howwethink01dewegoog HTTP/1.1" 200 None ERROR:root:Sending Unexpected Error 500: Traceback (most recent call last): File "/usr/local/dweb-gateway/python/ServerBase.py", line 132, in _dispatch res = func(*args, **kwargs) File "/usr/local/dweb-gateway/python/ServerBase.py", line 293, in wrapped result = func(*args, **kwargs) File "/usr/local/dweb-gateway/python/ServerGateway.py", line 225, in arc obj = ArchiveItem.new("archiveid", *args, **kwargs) File "/usr/local/dweb-gateway/python/Archive.py", line 207, in new verbose=verbose) for f in obj._metadata.get("files",[])] File "/usr/local/dweb-gateway/python/Archive.py", line 207, in verbose=verbose) for f in obj._metadata.get("files",[])] File "/usr/local/dweb-gateway/python/Archive.py", line 429, in new if obj.inTorrent() and obj.parent._metadata["metadata"].get("magnetlink"): File "/usr/local/dweb-gateway/python/Archive.py", line 500, in inTorrent if (not self._metadata.get("mtime")) or (self.parent.torrenttime() < int(self._metadata["mtime"])): ValueError: invalid literal for int() with base 10: '1180974425.0' 127.0.0.1 - - [16/Jul/2019 23:20:20] code 500, message invalid literal for int() with base 10: '1180974425.0

mitra42 avatar Jul 16 '19 23:07 mitra42

Fix this when remove dependency on dweb.me and fetch metadata independently. #242

mitra42 avatar Sep 07 '19 02:09 mitra42