Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

用不了,报错,请帮忙看看 #449

Open
zhangsl16 opened this issue Jan 19, 2016 · 2 comments
Open

用不了,报错,请帮忙看看 #449

zhangsl16 opened this issue Jan 19, 2016 · 2 comments

Comments

@zhangsl16
Copy link

ShuanglongdeMacBook-Pro:xunlei-lixian zhangsl16$ ./lixian_cli.py list
Traceback (most recent call last):
File "./lixian_cli.py", line 63, in
execute_command()
File "./lixian_cli.py", line 60, in execute_command
commandscommand
File "/Users/zhangsl16/xunlei-lixian/lixian_cli_parser.py", line 165, in parse
return f(parser(args_list, _args, *_kwargs))
File "/Users/zhangsl16/xunlei-lixian/lixian_commands/list.py", line 50, in list_task
tasks = lixian_query.search_tasks(client, args)
File "/Users/zhangsl16/xunlei-lixian/lixian_query.py", line 439, in search_tasks
base.query_search()
File "/Users/zhangsl16/xunlei-lixian/lixian_query.py", line 161, in query_search
self.download_jobs += query.query_search()
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 193, in len
self.touch()
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 117, in touch
self.hit_page(0)
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 122, in hit_page
info = self.fetch_page(page, self.page_size)
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 491, in
fetch_page = lambda page_index, page_size: self.read_task_page_info_by_page_index(type_id, page_index, page_size)
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 449, in read_task_page_info_by_page_index
return self.read_task_page_info_by_url(self.to_page_url(type_id, page_index, page_size))
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 22, in withretry
return f(_args, *_kwargs)
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 434, in read_task_page_info_by_url
data = parse_json_response(page)
File "/Users/zhangsl16/xunlei-lixian/lixian.py", line 891, in parse_json_response
raise RuntimeError('Invalid response')
RuntimeError: Invalid response

@sinofool
Copy link

同样的问题,返回的是迅雷首页的HTML代码。看来是改了接口。

@sinofool
Copy link

同一个地址dynamic.cloud.vip.xunlei.com根据不同来源IP返回了不同的功能,看来是屏蔽了一部分国外的IP提示只为国内用户服务。但是有一些误判。
找了个不同的代理暂时绕过了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants