-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
File is not working(ex: music, video) #441
Comments
Image, Video, Music... All of file is Not working |
Same error (Image file)
Previously, it showed an response like But now I get the following response value |
The same here. When I inspect the block I have: But after render I have another link, like @byj0101 said. |
I was about to open a new issue for videos then noticed that the title was updated and included the case for videos as well, thanks! |
I think I hit this issue and found a solution. The solution appears to be to add a query parameter For us, our images started having urls like I then compared this url to the url I get from Notion itself, when I click eg We're using |
I can confirm that adding |
We have the same issue.
When I make the page public, the images load fine. So it's almost like the signed urls don't work really, since they should be used if the page is not public. |
It fixed for me when I added |
Thanks to
|
we use signed urls and it worked before. But now it doesn't and I'm not sure, why. We can only host the images outside of Notion or make the whole section public for web. |
Suggested solution: fetching via the Official Notion Client In my case I was using the
Be aware, prior migrating, that there are some known issues. In my case were not critical.
|
I see, it seems so. BEFORE: My workaround: <NotionRenderer
recordMap={recordMap}
components={{nextImage: Image}}
mapImageUrl={(url, block) => {
if (url.includes(".amazonaws.com/")) {
const encoded = encodeURIComponent(url);
const objectUrl = new URL(
NOTION_SITE_URL + "/image/" + encoded
);
const params = new URLSearchParams();
params.set("table", "block");
params.set("id", block.id);
params.set("spaceId", block.space_id || "");
params.set("userId", "");
params.set("cache", "v2");
objectUrl.search = params.toString();
return objectUrl.toString();
}
return url;
}}
/> |
이 코드 라인때문입니다.
영작하기 귀찮음 |
Has anyone figured out how to properly fix the issue for videos? |
Unfortunately we have a private site with blocks that aren't supported well by the official API (like databases), so my current hacky solution is to query both the official and unofficial API, then merge the results since it looks like the official api properly signs assets: #456. |
Description
Notion Test Page ID : 44771738e8b94edc94a9f5da86e08910
I uploaded mp3 file in my notion.
But I can't listen my uploaded music.
I guess my mp3 file link is started with "file.notion.so", but other case my file link started with 's3.us-west....'.
The text was updated successfully, but these errors were encountered: