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

How do I display private notion images? #529

Open
marcuspapin opened this issue Nov 4, 2023 · 1 comment
Open

How do I display private notion images? #529

marcuspapin opened this issue Nov 4, 2023 · 1 comment

Comments

@marcuspapin
Copy link

Description

Hello, I have a private Notion page that I am successfully able to display, however, I am unable to display the private images on that page (I can display public images).

I am using the preview Images code from the starter to generate preview images.

This is the error that I am getting when I try to retrieve the private images:

{"errorId":"881dc246-e21a-4011-b9aa-fd967b769a1b","name":"ValidationError","debugMessage":"User does not have access.","message":"Something went wrong. (400)"}

Do I have to pass in user credentials somewhere when I am trying to retrieve the private images?

Please let me know if you need any additional information - I did not include the page ID, as it is a private page.

Thank you!

@xiaolongkipsi
Copy link

I feel like this is the problem and we are not generating signed url since notion changed the url pattern
https://github.com/NotionX/react-notion-x/blob/master/packages/notion-client/src/notion-api.ts#L237C41-L237C41

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

2 participants