tmcknight / Movie-and-TV-Show-Search-Alfred-Workflow

An Alfred workflow to search for a movie (or TV show) and get a few ratings
MIT License
95 stars 7 forks source link

Please Check Your Internet Connection #38

Closed tillemetry closed 9 months ago

tillemetry commented 1 year ago

I'm getting the error shown in the picture when I run the workflow for tv or movies. I'm running v2.16.1

Other workflows that rely on the Internet are fine. Any suggestions on what might be happening?

Movie Workflow

vitorgalvao commented 1 year ago

Open the debugger and try again, to see what’s happening.

RL66940 commented 10 months ago

I am having the same issue. Debugger shows:

[13:56:17.024] Movie and TV Show Search[Script Filter] Queuing argument 'Slow H' [13:56:17.584] Movie and TV Show Search[Script Filter] Script with argv 'Slow H' finished [13:56:17.588] STDERR: Movie and TV Show Search[Script Filter] https://api.themoviedb.org/3/search/tv?api_key=0ebad901a16d3bf7f947b0a8d1808c44&query=Slow+H&search_type=ngram&language=en <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> [13:56:17.589] Movie and TV Show Search[Script Filter] {"items": [{"title": "Uh oh... something went wrong", "subtitle": "Please check your internet connection."}]} [13:56:17.728] Movie and TV Show Search[Script Filter] Queuing argument 'Slow Hors' [13:56:18.154] Movie and TV Show Search[Script Filter] Queuing argument 'Slow Horse' [13:56:18.259] Movie and TV Show Search[Script Filter] Script with argv 'Slow Hors' finished [13:56:18.263] STDERR: Movie and TV Show Search[Script Filter] https://api.themoviedb.org/3/search/tv?api_key=0ebad901a16d3bf7f947b0a8d1808c44&query=Slow+Hors&search_type=ngram&language=en <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> [13:56:18.265] Movie and TV Show Search[Script Filter] {"items": [{"title": "Uh oh... something went wrong", "subtitle": "Please check your internet connection."}]} [13:56:18.709] Movie and TV Show Search[Script Filter] Script with argv 'Slow Horse' finished [13:56:18.713] STDERR: Movie and TV Show Search[Script Filter] https://api.themoviedb.org/3/search/tv?api_key=0ebad901a16d3bf7f947b0a8d1808c44&query=Slow+Horse&search_type=ngram&language=en <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> [13:56:18.715] Movie and TV Show Search[Script Filter] {"items": [{"title": "Uh oh... something went wrong", "subtitle": "Please check your internet connection."}]} [13:56:47.880] Movie and TV Show Search[Script Filter] Queuing argument 'oppenheimer' [13:56:48.427] Movie and TV Show Search[Script Filter] Script with argv 'oppenheimer' finished [13:56:48.434] STDERR: Movie and TV Show Search[Script Filter] https://api.themoviedb.org/3/search/movie?api_key=0ebad901a16d3bf7f947b0a8d1808c44&query=oppenheimer&search_type=ngram&language=en <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> [13:56:48.436] Movie and TV Show Search[Script Filter] {"items": [{"title": "Uh oh... something went wrong", "subtitle": "Please check your internet connection."}]}

tmcknight commented 10 months ago

Hi @RL66940, Please try the solution in the link below.

If you installed Python yourself, instead of using e.g. the Homebrew version, you may need to install the certificates yourself too.

Originally posted by @vitorgalvao in https://github.com/tmcknight/Movie-and-TV-Show-Search-Alfred-Workflow/issues/26#issuecomment-1267395824

RL66940 commented 10 months ago

Thank you, that worked perfectly. Afraid that I didn't looked for a solved issue as there was an open one on the exact topic.

drdannysands commented 9 months ago

Hi @RL66940. I'm having the same problem. I ran "Install Certificates.command" but I get this error message: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/certifi' Consider using the--useroption or check the permissions.

I am the administrator and only user of my Macbook, which is running 14.0 (23A344).

Could you give me a pointer on how to fix this?

Thanks.

tmcknight commented 9 months ago

@drdannysands Try using sudo in terminal...

cd "/Applications/Python 3.6/"
sudo "./Install Certificates.command"

Note: your Python version folder may differ.

drdannysands commented 9 months ago

Fantastic! That did the trick.

Thank you so much—now that it works, I see your workflow is really awesome.

From: Tom McKnight @.> Date: Wednesday, October 4, 2023 at 11:06 AM To: tmcknight/Movie-and-TV-Show-Search-Alfred-Workflow @.> Cc: Danny Sands @.>, Mention @.> Subject: Re: [tmcknight/Movie-and-TV-Show-Search-Alfred-Workflow] Please Check Your Internet Connection (Issue #38)

@drdannysandshttps://github.com/drdannysands Try using sudo in terminal...

cd "/Applications/Python 3.6/"

sudo "./Install Certificates.command"

Note: your Python version folder may differ.

— Reply to this email directly, view it on GitHubhttps://github.com/tmcknight/Movie-and-TV-Show-Search-Alfred-Workflow/issues/38#issuecomment-1747013673, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ4E7BDDB4Z6NEZ7IKFBIFLX5V3PRAVCNFSM6AAAAAAZQ2ZLBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGAYTGNRXGM. You are receiving this because you were mentioned.Message ID: @.***>

tmcknight commented 9 months ago

Glad you got it working!