Jump to content

wrjlewis

Member
  • Posts

    100
  • Joined

  • Last visited

Everything posted by wrjlewis

  1. Yeah indeed. They’ve been playing around in the search api area for a while by the looks of it. I’m actually half expecting some breaking changes soon but so far we’ve been lucky..
  2. I had the same issue just now, updated my cookie value with a fresh copy/paste and it now works.
  3. Check out the solution here https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error and update the command it recommends to match your python version number. That might help.
  4. New release day 🥳 v0.6 Type ‘nsn’ for the option to quickly open a new page in Notion. Very handy! (Only supports the web app currently) #83 - Fixed a bug that would cause an error and no more results to be displayed, relating to new Notion projects and icons. Update readme with: 'new notion page' functionality new cairo instructions for those on apple silicon, use at your own risk but they work for me and svg icons now appear in search results. Still supporting both Alfred4 and Alfred5: Alfred 5 version Latest Download Alfred 4 version Latest Download Either download with the above links or as usual the workflow will update automatically the next time you use it to open a page, within max one day from now.
  5. Yeah almost as if an extension or something in Chrome is causing the cookie to be deleted which perhaps forces Notion to re-auth which gives a new token. Glad it's working now though! 🙌
  6. Hmmm, we know that there is nothing in the code that could change the cookie and space id that you provide to Alfred. Which leaves the unlikely possibility that Notion is changing your session token for some reason very frequently. When you notice search results stop working in Alfred, and you recopy the cookie from notion, is the token_v2 value within the cookie, different?
  7. Weird! so for that 1 minute, you can search and everything is functioning correctly?
  8. To be honest I don't fully understand where this error comes from, and how its evolved over different mac versions. Perhaps someone on this forum with more expertise with this could assist. It seems some people have experienced the same issue here, again I don't understand the solutions but if you have time to read through it perhaps there is somethere here that can help. https://stackoverflow.com/questions/40684543/how-to-make-python-use-ca-certificates-from-mac-os-truststore
  9. Try sudo '/Applications/Python 3.9.6/Install Certificates.command'
  10. This has been fixed in the latest release, and was caused by a breaking change on Notion's side. To update, please open any page in the notion alfred workflow as you would normally, or go to the corresponding release page for your Alfred version: https://github.com/wrjlewis/notion-search-alfred-workflow - Alfred4 https://github.com/wrjlewis/notion-search-alfred5-workflow - Alfred5 Thanks, Will
  11. Same error that others are experiencing due to a breaking internal api change on Notions side. I haven't had a chance to test the following suggestion and I'll update the workflow at the weekend. For anyone wanting to get the workflow working in the meantime they can search for their notion.py file, stored within Alfred's workflow directory, and make the following change: In notion.py, change line 68 with query["sort"] = {"field":"relevance"}
  12. Yeah this has been reported several times today, looks like there’s been a breaking change of some sort on notions side. Im on holiday at the moment, so can’t debug it further until next weekend. bad timing I’m afraid! If anyone wants to figure it out in the meantime, I would start with printing the raw search response from notion, convert to json to pull it apart easily, and seeing where it doesn’t match with what the code is expecting / trying to parse.
  13. This is now in the latest update as well, if you wouldn't mind confirming its working for you? CMD+Enter on a search result
  14. I've included this fix in the latest update 👍
  15. Ah thats strange, I was almost sure I was able to do that at some point. Either way, I've found how to do it and will add it to the next release. I'm not sure when that will be, I tend to add a few features then go through the process of releasing a new version of the workflow. But you can track that here https://github.com/wrjlewis/notion-search-alfred5-workflow/issues/6 Thanks for the suggestion
  16. Specifically the token_v2 bit, but as long as that’s in your cookie somewhere, it should be fine
  17. This is actually already possible I think! Try the Mac key (cmd) and enter, it should copy to the clipboard? Glad it’s been really helpful
  18. Hi, just to check because it’s surprising how often this fixes this issue, have you tried re obtaining your cookie and space id? Thanks
  19. Have you tried running the command with the quotes? sudo '/Applications/Python 3.9/Install Certificates.command' The single quotes are required. If this file doesn't exist, run "python --version" to find out what version you have and update command accordingly. If you installed python homebrew it might be that you don't have the Install Certificates script, you might want to try running: pip install certifi However, the error message you're getting doesn't show the certificate error. So I'd suggest refreshing your notion cookie and space id, in addition to the above steps.
  20. Thanks @Pirat Yeah the second issue you notice is one we're aware of: https://github.com/wrjlewis/notion-search-alfred-workflow/issues/73 It's frustrating, I think it's related to the notion app rather than the alfred workflow. Is there any other way you can trigger the desktop app to open a page, and does it exhibit the same behaviour?
  21. Ah thanks, yes the right one is notion_user_id. This could be related to a bug that I haven't released a fix to in relation to the way python handles cookies. Basically if there is a curly brace '{' or a '}' in the cookie somewhere, the code will not read anything after this point. Could you check if there is a curly brace in your cookie somewhere, and if so delete that whole part of the cookie. Most likely you will need to delete everything from and including 'notion_cookie_consent'= to and including the next semi colon ';' . That should cover removing all values that have a curly braces. Try again with you have left, and I wonder if that will work for you now.
  22. Pleased to hear it's working (mostly) well! For the "Show Recently Viewed" function to work, you need to make sure that in your cookie you have a user id value. This will be the case if you have copied the whole cookie value from your browser rather than just the token_v2. Have you got user_id in your cookie? (don't paste your cookie here because the information is sensitive)
  23. Awesome! Really glad to hear it helps. I find it so useful personally!
  24. Hi! Thats correct, you need to paste the whole thing into 'cookie'. You are also pasting the wrong thing into space id, you need to get the 'spaceId', not the browser id. The readme on the github page should give you everything you need to know on where to find this value, the pictures are particularly good.
×
×
  • Create New...