Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteFailure: portTested: http error 400: Bad Request #101

Closed
hyy34 opened this issue Jan 29, 2021 · 10 comments
Closed

RemoteFailure: portTested: http error 400: Bad Request #101

hyy34 opened this issue Jan 29, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@hyy34
Copy link

hyy34 commented Jan 29, 2021

Sat, 30 Jan 2021 03:01:07 autoremovetorrents.main INFO: Auto Remove Torrents 1.5.3
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.main INFO: Loading configurations...
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.task INFO: Running task 'MTeam'...
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.task INFO: Logging in...
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.task INFO: Login successfully. The client is Transmission 2.94 (d8e60ee44f).
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.task INFO: WebUI API version: 15
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.main ERROR: RemoteFailure: portTested: http error 400: Bad Request
Sat, 30 Jan 2021 03:01:07 autoremovetorrents.main ERROR: Task MTeam fails.

为什么显示错误???

@livingli
Copy link

同问,一样的问题

1 similar comment
@xyxu1024
Copy link

同问,一样的问题

@xyxu1024
Copy link

我补充一下我的配置@jerrymakesjelly

autoremove_autorss:
  client: Transmission
  host: http://localhost:9091
  username: admin
  password: admin
  strategies:
    ifseeding14days:
      categories:
        - AutoRSS
      status:
        - uploading
      seeding_time: 1209600
  delete_data: true

事实上,首次autoremove-torrents -v -c config.yml是能够成功运行的,输出:

Thu, 22 Apr 2021 23:56:06 autoremovetorrents.main INFO: Auto Remove Torrents 1.5.3
Thu, 22 Apr 2021 23:56:06 autoremovetorrents.main INFO: Loading configurations...
Thu, 22 Apr 2021 23:56:06 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Thu, 22 Apr 2021 23:56:06 autoremovetorrents.task INFO: Running task 'autoremove_autorss'...
Thu, 22 Apr 2021 23:56:06 autoremovetorrents.task INFO: Logging in...
Thu, 22 Apr 2021 23:56:06 autoremovetorrents.task INFO: Login successfully. The client is Transmission 3.00 (bb6b5a062e).
Thu, 22 Apr 2021 23:56:06 autoremovetorrents.task INFO: WebUI API version: 16
Thu, 22 Apr 2021 23:56:08 autoremovetorrents.task INFO: Status reported by the client: 
	Download Speed: 0.00B/s	Total: 0.00B
	Upload Speed: 0.00B/s	Total: 14.27GiB
	Outgoing Port Status: Open
Thu, 22 Apr 2021 23:56:08 autoremovetorrents.task INFO: Getting all the torrents...
Thu, 22 Apr 2021 23:56:09 autoremovetorrents.task INFO: Found 46 torrent(s) in the client.

但之后的运行就都不成功了,已经尝试了,重启transmission,问题依旧,debug输出:

Fri, 23 Apr 2021 09:20:07 autoremovetorrents.main INFO: Auto Remove Torrents 1.5.3
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.main INFO: Loading configurations...
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.main INFO: Found 1 task(s) in the file.
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task DEBUG: Configuration of task 'autoremove_autorss':
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task DEBUG: Client: Transmission, Host: http://localhost:9091, Username: admin, Password: admin
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task DEBUG: Remove Torrents: False, Remove Torrents and Data: True
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task DEBUG: Strategies: ifseeding14days
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task INFO: Running task 'autoremove_autorss'...
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task INFO: Logging in...
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task INFO: Login successfully. The client is Transmission 3.00 (bb6b5a062e).
Fri, 23 Apr 2021 09:20:07 autoremovetorrents.task INFO: WebUI API version: 16
Fri, 23 Apr 2021 09:20:11 autoremovetorrents.main ERROR: autoremovetorrents.exception.remotefailure.RemoteFailure: portTested: http error 400: Bad Request
Fri, 23 Apr 2021 09:20:11 autoremovetorrents.main ERROR: Task autoremove_autorss fails. 
Fri, 23 Apr 2021 09:20:11 autoremovetorrents.main DEBUG: Exception Logged
Traceback (most recent call last):
  File "/home/pi/autoremove-torrents/lib/python3.7/site-packages/autoremovetorrents/main.py", line 62, in pre_processor
    Task(task_name, result[task_name], not view_mode).execute()
  File "/home/pi/autoremove-torrents/lib/python3.7/site-packages/autoremovetorrents/task.py", line 139, in execute
    self._login()
  File "/home/pi/autoremove-torrents/lib/python3.7/site-packages/autoremovetorrents/task.py", line 91, in _login
    self._client_status = self._client.client_status()
  File "/home/pi/autoremove-torrents/lib/python3.7/site-packages/autoremovetorrents/client/transmission.py", line 73, in client_status
    port_is_open = self._make_transmission_request('port-test')
  File "/home/pi/autoremove-torrents/lib/python3.7/site-packages/autoremovetorrents/client/transmission.py", line 53, in _make_transmission_request
    raise RemoteFailure(result['result'])
autoremovetorrents.exception.remotefailure.RemoteFailure: portTested: http error 400: Bad Request

@LaierX
Copy link

LaierX commented Jun 4, 2021

兄弟 解决了吗...我也是这样 tr3.0

@LaierX
Copy link

LaierX commented Jun 4, 2021

安装 1.5.2 版本 可以运行 不报 400 错误
但是只会删除种子,并不删除硬盘数据,(1.5.0也试了不行..其它版本没试)
需要修改和ransmission.py 中最下面 一个值为 True 才行

这个大佬作者是弃更了吗?????

@jerrymakesjelly
Copy link
Owner

这个大佬作者是弃更了吗?????

没……在忙实习和秋招,有空的时候我会看一下

@livingli
Copy link

这个大佬作者是弃更了吗?????

没……在忙实习和秋招,有空的时候我会看一下

大佬,忙完了抽空测试下哦,辛苦了

@livingli
Copy link

现在是没有响应了

autoremove-torrents --view

Sat, 27 Nov 2021 06:45:30 autoremovetorrents.main INFO: Auto Remove Torrents 1.7.1
Sat, 27 Nov 2021 06:45:30 autoremovetorrents.main INFO: Loading configurations...
Sat, 27 Nov 2021 06:45:30 autoremovetorrents.main INFO: Found 2 task(s) in the file.
Sat, 27 Nov 2021 06:45:30 autoremovetorrents.task INFO: Running task 'my_task1'...
Sat, 27 Nov 2021 06:45:30 autoremovetorrents.task INFO: Logging in...
Sat, 27 Nov 2021 06:45:30 autoremovetorrents.task INFO: Login successfully. The client is Transmission 3.00 (bb6b5a062e).
Sat, 27 Nov 2021 06:45:30 autoremovetorrents.task INFO: WebUI API version: 16
Sat, 27 Nov 2021 06:45:31 autoremovetorrents.main ERROR: autoremovetorrents.exception.remotefailure.RemoteFailure: portTested: http error 0: No Response
Sat, 27 Nov 2021 06:45:31 autoremovetorrents.main ERROR: Task my_task1 fails.
大佬有空看下哦,感觉对tr的支持不行

@livingli
Copy link

autoremovetorrents.exception.remotefailure.RemoteFailure: portTested: http error 0: No Response

@jerrymakesjelly
Copy link
Owner

这个 portTested 的错误信息由 Transmission 产生,实际上 autoremove-torrents 已经成功请求到了 Transmission,因此我们这边暂时不会去处理此问题,建议向 Transmission 反馈。

一些细节可以去 #135 查看

@jerrymakesjelly jerrymakesjelly added the wontfix This will not be worked on label Jun 15, 2022
jerrymakesjelly added a commit that referenced this issue Jun 18, 2022
We have confirmed a bug, which is, the Outgoing Port Status checker will fail and report 'portTested: http error 400: Bad
Request' when we are using Transmission and check the outgoing port status in IPv6 Network.

This bug will make the task failed, however, there are no removing
conditions relying on this status. Therefore we remove it.

Closes #101, #135.

This bug is in Transmission, which can be referred to transmission/transmission#3102, not in our software.
@jerrymakesjelly jerrymakesjelly added bug Something isn't working and removed wontfix This will not be worked on labels Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants