wrjlewis / notion-search-alfred-workflow

An Alfred workflow to search Notion with instant results
GNU General Public License v3.0
819 stars 43 forks source link

Not working in Alfred 5 Mac M1 #64

Closed protoEvangelion closed 1 year ago

protoEvangelion commented 1 year ago

Before reporting the issue, did you ?

Describe the bug

No results found when trying to search. I'm using the same exact configuration variables on two mac m1s same workflow version. One works the other doesn't.

image

image

To Reproduce

[19:32:09.471] Notion Search[Script Filter] Queuing argument ''
[19:32:09.625] Notion Search[Script Filter] Script with argv '(null)' finished
[19:32:09.628] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "subtitle": "Expecting value: line 1 column 1 (char 0)", "arg": "notion://www.notion.so/"}]}
[19:32:09.764] Notion Search[Script Filter] Queuing argument 'f'
[19:32:09.841] Notion Search[Script Filter] Queuing argument 'fo'
[19:32:09.955] Notion Search[Script Filter] Script with argv '(null)' finished
[19:32:09.957] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "subtitle": "Expecting value: line 1 column 1 (char 0)", "arg": "notion://www.notion.so/"}]}
[19:32:09.969] Notion Search[Script Filter] Queuing argument 'foo'
[19:32:10.062] Notion Search[Script Filter] Queuing argument 'food'
[19:32:10.090] Notion Search[Script Filter] Script with argv '(null)' finished
[19:32:10.091] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "subtitle": "Expecting value: line 1 column 1 (char 0)", "arg": "notion://www.notion.so/"}]}
[19:32:10.198] Notion Search[Script Filter] Script with argv '(null)' finished
[19:32:10.203] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "subtitle": "Expecting value: line 1 column 1 (char 0)", "arg": "notion://www.notion.so/"}]}
[19:32:10.998] Notion Search[Script Filter] Processing complete
[19:32:11.005] Notion Search[Script Filter] Passing output 'notion://www.notion.so/' to Open URL
[19:32:11.008] Notion Search[Script Filter] Passing output 'notion://www.notion.so/' to Run Script

Expected behaviour Results should pop up when I start typing: "ns food".

Screenshots If applicable, add screenshots to help explain your problem.

Workflow (please complete the following information):

Additional context

/usr/bin| => pip3 install --upgrade certifi    

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: certifi in /Users/blah/Library/Python/3.9/lib/python/site-packages (2022.9.24)
protoEvangelion commented 1 year ago

Narrowed this issue down to it's working in Alfred 4 but not Alfred 5.

wrjlewis commented 1 year ago

I'm not sure why it would be working in Alfred 4 but not Alfred 5 for you. Does it work in Alfred 5 on any of the macs you have, as you mentioned one was working previosuly?

attaboyBrad commented 1 year ago

Not sure if the root of the issue is the same, but I also have Alfred 5 and M1 and can't seem to get this Workflow working.

The error I get is:

[10:57:59.230] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "subtitle": "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)", "arg": "https://www.notion.so/"}]}

I have updated the Cookie and SpaceID variables and copy/pasted the values through Obsidian to address the 'Known Issue' with direct copy/paste. I've also tried it with 'useDesktopClient' set to both True and False. No joy so far. Screenshot 2022-10-26 at 11 04 50

Screenshot 2022-10-26 at 11 02 04

wrjlewis commented 1 year ago

@attaboyBrad have you tried what's suggested here? I think it will help https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify

attaboyBrad commented 1 year ago

@attaboyBrad have you tried what's suggested here? I think it will help https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify

smack forehead That did it. Seems like my Googling should have been able to find that. Thanks!

wrjlewis commented 1 year ago

Yeah a few people have had this issue but it's not obvious! Really caused by the changes Apple recently made to the included software with Mac OSX.

protoEvangelion commented 1 year ago

@wrjlewis unfortunately that does not work for me because that was not the error I was getting & python3 does not have that install file. I search my whole filesystem for it and it doesn't exist.

Also I updated the computer that was working to alfred 5 and it still works. I even copied over the alfred preferences folder including all the workflows + settings to the not working computer and it still doesn't work. The only thing I can think of is this is my work mac and there is some IT policy preventing some communication required by your plugin.

Not sure if there is anymore debug info I can get you?

I'm still seeing the same error in the debugger:

script with argv 'null' finished
Tommybro commented 1 year ago

@protoEvangelion I had the same issue as you, but I updated my cookie value in Alfred Settings and it resolved the issue.