Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission error #491

Open
alfredsgenkins opened this issue Mar 11, 2022 · 1 comment
Open

Permission error #491

alfredsgenkins opened this issue Mar 11, 2022 · 1 comment

Comments

@alfredsgenkins
Copy link

alfredsgenkins commented Mar 11, 2022

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.

@alfredsgenkins
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant