***IGNORE*** Little Snitch was blocking the traffic
Just found this workflow and was geeked about it. However, it is not working for me as the queries are timing out without returning any results:
OS: 11.6.8
Alfred: 5.0.2 [2073]
Python3 version: 3.10.5
Python2 version: Python 2.7.18
Error:
Debug:
[19:42:57.536] ERROR: Word Search[Script Filter] Code 1: .
19:40:26 workflow.py:2093 DEBUG ---------- Word Search (2.0.2) ----------
19:42:57 workflow.py:2114 ERROR <urlopen error [Errno 60] Operation timed out>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 941, in connect
self.sock = self._create_connection(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/socket.py", line 845, in create_connection
raise err
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/socket.py", line 833, in create_connection
sock.connect(sa)
TimeoutError: [Errno 60] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/workflow/workflow.py", line 2107, in run
func(self)
File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/similar.py", line 16, in main
words = wf.cached_data(args[0] + "_" + args[1], cacheSearch, max_age=60)
File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/workflow/workflow3.py", line 690, in cached_data
return super(Workflow3, self).cached_data(name, data_func, max_age)
File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/workflow/workflow.py", line 1723, in cached_data
data = data_func()
File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/similar.py", line 14, in cacheSearch
return getSimilar(args[0], args[1])
File "/Users/nspasov/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.20AD3DCC-BC9D-423C-A9DA-3694ED1E53DB/similar.py", line 29, in getSimilar
dict = urllib2.urlopen(api_url).read()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1377, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 60] Operation timed out>
19:42:57 workflow.py:2136 DEBUG ---------- finished in 151.045s ----------
[19:42:57.541] Word Search[Script Filter] {
"items": [
{
"title": "Error in workflow 'Word Search'",
"subtitle": "<urlopen error [Errno 60] Operation timed out>",
"valid": false,
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}