You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For some reason, despite being an admin in my workspace, I get 401 when trying to write the data on the page. I can notice that the x-notion-active-user-header I see on the website transaction requests and in my console differs. It might be the reason behind the problem. The token_v2 is valid through. I can not find any way to switch to the proper x-notion-active-user-header.
Additional context
The other workspace, where I initially testes the code and which is totally owned by me works and shows no permission problems.
The text was updated successfully, but these errors were encountered:
After a short investigation, it is clear that this line https://github.com/Devorein/Nishan/blob/6860b4ecc669e965b6640106e7c709065df7649c/packages/endpoints/libs/Request/constructNotionHeaders.ts#L17 is what sets the request to happen from user id xxx. Hardcoding it to the one used in browser has resolved the issue.
Describe the bug
For some reason, despite being an admin in my workspace, I get 401 when trying to write the data on the page. I can notice that the
x-notion-active-user-header
I see on the website transaction requests and in my console differs. It might be the reason behind the problem. Thetoken_v2
is valid through. I can not find any way to switch to the properx-notion-active-user-header
.Additional context
The other workspace, where I initially testes the code and which is totally owned by me works and shows no permission problems.
The text was updated successfully, but these errors were encountered: