wrjlewis / notion-search-alfred-workflow

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

Cookie doesn’t seem to work for me #2

Closed mvdesign closed 4 years ago

mvdesign commented 4 years ago

Hi there,

This seems like a handy idea. I’ve just spent a significant amount of time trying to get it to work, and I still have yet to get more than "No results - go to Notion homepage."

I really feel like I'm using the proper "search" cookie (See below... I cropped it to a point where I don't think there's anything personally identifiable, but you get the point):

Cookie?

I've tried grabbing it from Safari and Chrome and Firefox (my default browser). And none of them work.

So I'm a little stumped. Any ideas about what I might be doing wrong?

Thanks for your work on this and for making it available.

FelixLisczyk commented 4 years ago

Yes, this is the correct value. Although my cookie contains a parameter _ga before ajs_anonymous_id.

pbajaria commented 4 years ago

If you look at the cookie it has many items that are separated by ";". The only item that you need from the cookie is the following: token_v2=XXXXXXXX

Copy this value in the "cookie" workflow parameter

mvdesign commented 4 years ago

Thanks for your responses and for trying to think through this with me.

@FelixII

* Did you copy the complete value without the `cookie:` prefix?
* Did you also insert your `spaceId` into the workflow?

I did both of those things. I've triple checked the spaceId. It still doesn't work for me.

@pbajaria

If you look at the cookie it has many items that are separated by ";". The only item that you need from the cookie is the following: token_v2=XXXXXXXX

Copy this value in the "cookie" workflow parameter

I've tried token_v2=XXXXXXXX and XXXXXXXX but neither works for me. I've also noticed that the token_v2 changes from browser to browser and/or from session to session.

I'm still stumped by this. If I don't get it to work, that's not a big deal. But it seems like a cool integration.

wrjlewis commented 4 years ago

Hi @mvdesign ,

Is this still not working for you?

mvdesign commented 4 years ago

Thanks for checking in. Honestly, I got pretty busy, and with working and parenting from home, this got pushed waaaaay down my to-do list. If you feel like closing this just to keep things tidy, that's fine with me. I'm not sure if and when I'll try again, but I could always reopen it when I do.

wrjlewis commented 4 years ago

Ok, well when you're ready I'd be happy to show you how I've got it to work for me and compare to how you have it done. I get my cookie from the 'search' request which is triggered by typing into the quick find bar, and I just copy the whole value. Thanks.

shurain commented 3 years ago

I encountered a similar problem. Could fix it by adding x-notion-active-user-header to the header.