Jump to content

Notion.so Instant Search Workflow


Recommended Posts

Hi, having same issue as was mentioned before.

 

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

 

Tried different versions of python including 2.7. Tried 0.5 version of the workflow. Nothing helped. What can I do to fix this? (MacOS 12.4, Alfred 5)

Link to comment

Welcome @fonrims,

 

Just now, fonrims said:

Tried different versions of python including 2.7.

 

Tried how? Don’t change the Workflow itself, it picks its own Python (3) version. But that error is not related to the language. If you installed Python 3 yourself (instead of letting macOS do it for you) you may need to install the certificates yourself too.

 

8 minutes ago, fonrims said:

Tried 0.5 version of the workflow.

 

That version is still up for review. If you’re having an issue, use the one officially out.

Link to comment
  • 2 weeks later...

I just installed the workflow and everything seems to be working perfectly except I don't see the second line of text in my search results. It's just the page title (first line) with nothing beneath it. In published screenshots for this workflow I see that the results display a second line of text. Not sure if it's a breadcrumb or just content from the page itself. In any case, my search results aren't showing anything on the second line/subtitle.

Screen Shot 2022-07-29 at 7.45.52 AM.png

Link to comment
6 minutes ago, JaredTorres said:

I just installed the workflow and everything seems to be working perfectly except I don't see the second line of text in my search results. It's just the page title (first line) with nothing beneath it. In published screenshots for this workflow I see that the results display a second line of text. Not sure if it's a breadcrumb or just content from the page itself. In any case, my search results aren't showing anything on the second line/subtitle.

Screen Shot 2022-07-29 at 7.45.52 AM.png

I'm having the same issue, I suspect they've changed something on their side and I'll need to update the workflow appropriately 

Link to comment

Hey,

This stopped working for me after a while and now when I type NS it says "loading" and quickly stops

I tried re-installing and noticed that my cookie now looks like this:

 image.png.d9ecde606da2b5f7c740f3fded8cda5e.png
and doesn't say "notion_browser_id=... at the start.
What's the deal?

Link to comment
3 minutes ago, Hurzt said:

Hey,

This stopped working for me after a while and now when I type NS it says "loading" and quickly stops

I tried re-installing and noticed that my cookie now looks like this:

 image.png.d9ecde606da2b5f7c740f3fded8cda5e.png
and doesn't say "notion_browser_id=... at the start.
What's the deal?

I’m on holiday so can’t look at this for a week, but I reckon notion have changed their api so we’ll need to update our integration.

Link to comment

Hello, is this workflow still working?

I just downloaded it for Alfred 5. I updated the env variables for cookie and spaceId, but the notion search api looks a bit different than in the example. When I use notion search, it makes a call to https://www.notion.so/api/v3/teV1httphttps://www.notion.so/api/v3/teV1://www.notion.so/api/v3/teV1`

 

Here's the debugger output:

Quote

[10:04:11.365] Notion Search[Script Filter] Processing complete
[10:04:11.365] Notion Search[Script Filter] Passing output 'https://www.notion.so/' to Open URL
[10:04:11.365] Notion Search[Script Filter] Passing output 'https://www.notion.so/' to Run Script
[10:48:23.968] Notion Search[Script Filter] Queuing argument ''
[10:48:24.295] Notion Search[Script Filter] Script with argv '(null)' finished
[10:48:24.297] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "arg": "https://www.notion.so/"}]}
[10:48:24.490] Notion Search[Script Filter] Queuing argument 'a'
[10:48:24.613] Notion Search[Script Filter] Queuing argument 'al'
[10:48:24.734] Notion Search[Script Filter] Script with argv '(null)' finished
[10:48:24.761] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "arg": "https://www.notion.so/"}]}

No easily discernible error, so I'm stuck 😧

Link to comment

The issue reported above, relating to changes on Notions side with their API has been fixed with v0.4.2 @mwpark2014 @Hurzt

I also noticed that the subtitles in the search results do not appear now if you set isNavigableOnly to True, this is a change made on Notions side. For this reason I have set the parameter to default to False. You can still set this to True but you will lose subtitles in your Alfred search results. @JaredTorres

Link to comment
5 minutes ago, mwpark2014 said:

I've updated to v0.4.2 and still see the same issue resulting in only `"title": "Open Notion - No results, empty query, or error"` in the results 😢

Just to check, have you refreshed your cookie and space id? 
 

Has this workflow worked for you before? 

Link to comment
7 minutes ago, mwpark2014 said:

No, I have just installed this workflow for the first time. The cookie and space id should be from the new api since I just installed this workflow. I can try to refresh them again though

I’m not sure what you mean by the new api. This isn’t using the public api. 

Link to comment

I just meant that I followed the instructions to retrieve the cookie and space id very recently. I just did it again and it still doesn't work.

 

cookie retrieved from the request header from the api call to `https://www.notion.so/api/v3/teV1` (this call executes when using quick find on notion instead of the `search` call in the docs)

`space_id` taken from the request payload which appears in `e` within the formData

 

Link to comment
18 hours ago, mwpark2014 said:

I just meant that I followed the instructions to retrieve the cookie and space id very recently. I just did it again and it still doesn't work.

 

cookie retrieved from the request header from the api call to `https://www.notion.so/api/v3/teV1` (this call executes when using quick find on notion instead of the `search` call in the docs)

`space_id` taken from the request payload which appears in `e` within the formData

 

 

If you type something into the quick search bar, it triggers the "https://www.notion.so/api/v3/search" call where I get the cookie and space ID from. Rather than using the teV1 call which is triggered just from loading the quick search box. But I don't know if they yield different results at all in terms of the cookie or space id, wouldn't expect so.

Complete shot in the dark but other people have had issues with Python certificates when they've installed it manually and rectified it with the command in terminal: Install Certificates.command

Link to comment
  • 2 weeks later...

I've tried to install and run this workflow, adding the cookie and space id value per instructions but nothing works. The "ns" doesn't even seem to trigger anything. Is this still working or do I need to do something else to set it up. I ran the Alfred debugger and got this error:

 

[09:17:31.521] Logging Started.
[09:17:35.038] Notion Search[Script Filter] Queuing argument
[09:17:35.120] Notion Search[Script Filter] Script with argv
' (null)' finished
[09:17:35.123] ERROR: Notion Search[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/
CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

 

I could really use this workflow as it would make my life tons easier! Can anyone help!!!???

Link to comment
3 minutes ago, mboettger1 said:

I've tried to install and run this workflow, adding the cookie and space id value per instructions but nothing works. The "ns" doesn't even seem to trigger anything. Is this still working or do I need to do something else to set it up. I ran the Alfred debugger and got this error:

 

[09:17:31.521] Logging Started.
[09:17:35.038] Notion Search[Script Filter] Queuing argument
[09:17:35.120] Notion Search[Script Filter] Script with argv
' (null)' finished
[09:17:35.123] ERROR: Notion Search[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/
CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

 

I could really use this workflow as it would make my life tons easier! Can anyone help!!!???

Hello

 

There should have been a prompt but it may have been missed, you will need to install developer tools for it to work it seems.

let me know if this works for you..

 

run this in terminal: 

 

xcode-select --install
Link to comment
  • 2 weeks later...
  • 2 weeks later...

I keep getting 

 

[16:00:22.768] Notion Search[Script Filter] Script with argv '(null)' finished

[16:00:22.776] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "arg": "https://www.notion.so/"}]}

 

No further error mentioned in the debugger. Running Alfred 5 / MacOS 12.0.1 on M1 MacBook Air. Any idea where to look?

 

Thanks in advance!

Link to comment
19 hours ago, nebaon said:

I keep getting 

 

[16:00:22.768] Notion Search[Script Filter] Script with argv '(null)' finished

[16:00:22.776] Notion Search[Script Filter] {"items": [{"uid": 1, "type": "default", "title": "Open Notion - No results, empty query, or error", "arg": "https://www.notion.so/"}]}

 

No further error mentioned in the debugger. Running Alfred 5 / MacOS 12.0.1 on M1 MacBook Air. Any idea where to look?

 

Thanks in advance!

 

19 hours ago, vitor said:

@nebaon I don’t use Notion, but from the debugger it seems you might not have given an argument (something to search?) and that one is required.

 

I second what @vitor says, but also would suggest updating your cookie and space id, as per the instructions here

Link to comment

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...