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

Alfred Workflow已经很久不工作了 #301

Closed
xbot opened this issue Jul 3, 2018 · 5 comments
Closed

Alfred Workflow已经很久不工作了 #301

xbot opened this issue Jul 3, 2018 · 5 comments

Comments

@xbot
Copy link

xbot commented Jul 3, 2018

System (Mac, Windows 7/8/10, Linux) / 操作系统

Mac

SwitchHosts! Version / SwitchHosts! 版本

3.3.11

Description / 描述

切换hosts方案无效,alfred调试信息如下:

[2018-07-03 16:38:46][ERROR: action.script] % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (52) Empty reply from server

How to reproduce / 重现步骤

@oldj
Copy link
Owner

oldj commented Jul 4, 2018

SwitchHosts! 程序本身启动了吗?

@xbot
Copy link
Author

xbot commented Jul 4, 2018 via email

@oldj
Copy link
Owner

oldj commented Jul 26, 2019

是不是本地开启了代理,Alfred 无法访问 SwitchHosts! 的本地服务:http://127.0.0.1:50761/

@tangx
Copy link

tangx commented Feb 4, 2020

System (Mac, Windows 7/8/10, Linux) / 操作系统

Mac

SwitchHosts! Version / SwitchHosts! 版本

3.5.2(5504)

Alfred Version / Alfred 版本

4.0.6[1123]

Description / 描述

切换hosts方案无效,alfred调试信息如下:
image

How to reproduce / 重现步骤

python alfred.py
11:49:34 workflow.py:2243 ERROR    HTTP Error 503: Service Unavailable
Traceback (most recent call last):
  File "path/AlfredPreferences/Alfred.alfredpreferences/workflows/user.workflow.CFEDB384-D277-40BD-AC31-00308CC933E8/workflow/workflow.py", line 2236, in run
    func(self)
  File "alfred.py", line 20, in main
    r.raise_for_status()
  File "path/AlfredPreferences/Alfred.alfredpreferences/workflows/user.workflow.CFEDB384-D277-40BD-AC31-00308CC933E8/workflow/web.py", line 402, in raise_for_status
    raise self.error
HTTPError: HTTP Error 503: Service Unavailable

补充

  1. http://127.0.0.1:50761/api/list 可以访问,返回 json 结构体
  2. curl http://127.0.0.1:50761/api/toggle?id={query} 手动执行没问题

@xbot
Copy link
Author

xbot commented Sep 7, 2021

最新版本上测试可用。开启的选项需要滚动才显示,但是界面在静止状态并不显示滚动条,导致浪费了一些时间。

image

@xbot xbot closed this as completed Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants