Jump to content

Recommended Posts

  • 4 weeks later...
  • 2 months later...
  • 1 year later...

Hello, this seemed to be working before, but now, when I find a movie and hit enter on the rotten tomatoes icon to open a browser window and search in rottentomatoes.com, I always get "no results found" and then I have to manually type in the movie again in the search bar. What I found was that in the url, the workflow adds a "+" between words, whereas in a regular site search, there are spaces. How can I fix this?

 

Thx!

 

383064622_Screenshot2020-02-11at15_00_48.thumb.png.844fb62696fce299e9250e7123e7e0a4.png172437455_Screenshot2020-02-11at15_01_01.thumb.png.13e1245087f0222718831ca5ac425f44.png

Link to comment
  • 11 months later...
  • 1 month later...

I recently updated this workflow and it stopped working. My internet connection is working fine, I also checked Little Snitch but Alfred is not blocked. Tried reinstalling it, but keep getting the same error.

 

 

[14:31:17.000] Movie and TV Show Search[Script Filter] Queuing argument ''
[14:31:17.109] Movie and TV Show Search[Script Filter] Script with argv '' finished
[14:31:22.255] Movie and TV Show Search[Script Filter] Queuing argument 'the good wife'
[14:31:23.023] Movie and TV Show Search[Script Filter] Script with argv '(null)' finished
[14:31:23.027] STDERR: Movie and TV Show Search[Script Filter] 14:31:22 workflow.py:2225 DEBUG    Workflow version : 2.8.0
14:31:22 workflow.py:1628 DEBUG    Reading settings from `/Users/XX/Library/Application Support/Alfred/Workflow Data/com.mcknight.movies/settings.json` ...
14:31:22 workflow.py:2423 DEBUG    Set last run version : 2.8.0
14:31:22 workflow.py:2267 DEBUG    Workflow finished in 0.502 seconds.
[14:31:23.027] Movie and TV Show Search[Script Filter] <?xml version="1.0" encoding="utf-8"?>
<items><item valid="no"><title>Uh oh... something went wrong</title><subtitle>Please check your internet connection.</subtitle></item></items>

Link to comment
20 hours ago, Southgirl said:

I recently updated this workflow and it stopped working. My internet connection is working fine, I also checked Little Snitch but Alfred is not blocked. Tried reinstalling it, but keep getting the same error.

Hi @Southgirl

To rule out a network issue, you could try going to https://api.themoviedb.org/3/. If you don't receive the following, it means something on your network is blocking communication:

{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}

 

If you are still having issues, you'll have to provide more details (version of Alfred, Mac OS, python, etc) and we can try to get to the bottom of it!

Link to comment
6 hours ago, tone said:

{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}

 

Hi @tone,

 

I got the same message.

 

I'm on 10.11.6 and Alfred version is 4.3.2. Now, the python version is 2.7.10 according to Terminal. But then I remembered I had updated it recently, so Alfred shows me the newer version. I thought updating Python automatically got rid of older versions? Let me know if you need more info. 

 

 

python.png

Link to comment

So, I clicked on that URL and both times (with and without Little Snitch) I got a page with all kinds of information about the show on my search. The worklfow still keeps giving me the same connection error though (both times as well).

 

It worked flawlessly with the version I had before (from 2016, if I'm not mistaken). Is there something in the latest update that might not work on 10.11? Tested it with the VPN off, but no luck.

 

Tested it on a MacBook Pro running on 10.13.6 as well, it works fine there.

Edited by Southgirl
Link to comment
On 3/4/2021 at 9:34 PM, Southgirl said:

I thought updating Python automatically got rid of older versions?

 

Only older versions you installed the same way. It never touches the system Python, which is what the workflow uses. Also, the system Python is Python 2. That isn't compatible with the Python 3 you've installed.

 

The problem you're having is almost certainly due to how old your OS is. It has an ancient version of OpenSSL that doesn't support the HTTPS encryption a lot of websites use. As Python uses OpenSSL, it can't connect to such websites.

 

You will have this issue with many workflows written in Python and probably other languages, too.

 

If you can't update to at least High Sierra, you could maybe get them to work by installing Python 2 with Homebrew and editing the workflows to use /usr/local/bin/python instead of /usr/bin/python.

 

Edited by deanishe
Link to comment

@Southgirl You could try running these commands in Terminal to see which error message(s) you get.

 

/usr/bin/python -c 'import urllib; urllib.urlopen("https://api.themoviedb.org/3/")'

 

and

 

/usr/bin/python -c 'import urllib; urllib.urlopen("https://github.com/")'

 

Then we'll know if you do actually need to update your OS.

Link to comment
On 3/7/2021 at 3:58 AM, deanishe said:

@deanishe Hello, this is what I got.

 


/usr/bin/python -c 'import urllib; urllib.urlopen("https://api.themoviedb.org/3/")'

/usr/bin/python -c 'import urllib; urllib.urlopen("https://api.themoviedb.org/3/")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 443, in open_https
    h.endheaders(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output
    self.send(msg)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 855, in send
    self.connect()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1274, in connect
    server_hostname=server_hostname)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 352, in wrap_socket
    _context=self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 579, in __init__
    self.do_handshake()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 808, in do_handshake
    self._sslobj.do_handshake()

IOError: [Errno socket error] [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)

 

 


/usr/bin/python -c 'import urllib; urllib.urlopen("https://github.com/")'

 

/usr/bin/python -c 'import urllib; urllib.urlopen("https://github.com/")'

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 443, in open_https
    h.endheaders(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output
    self.send(msg)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 855, in send
    self.connect()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1274, in connect
    server_hostname=server_hostname)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 352, in wrap_socket
    _context=self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 579, in __init__
    self.do_handshake()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 808, in do_handshake
    self._sslobj.do_handshake()
IOError: [Errno socket error] [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)

 

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...