react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Embed component video attachment file got error AccessDenied when showed

Open chenhuanghui opened this issue 1 year ago • 7 comments

Description

I have file video attachment on notion page as embed component, and using react-notion-x to render content. But I got error as below:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>RESB8AZZZ1BMMPYY</RequestId>
<HostId>n8IIFPpQZblmwRVv2QUpx/RfULLwGXauji9s52oaKfSlhn1O/pdTb7umphLSQd1Mk1yZ4+FwDf8=</HostId>
</Error>

Notion Test Page ID

This is my notion page ID: https://www.notion.so/casavn/test-embed-page-046f035b59f346d0bdf59f1175f94186?pvs=4

React-Notion-X render https://www.casaholding.vn/046f035b59f346d0bdf59f1175f94186

chenhuanghui avatar Sep 21 '23 09:09 chenhuanghui

Having the same issue - is this due to an update from Notion side?

hirvesh avatar Oct 06 '23 09:10 hirvesh

Im also getting this error, didnt in the past

0xFloyd avatar Oct 19 '23 18:10 0xFloyd

Anyone figured out a work around this?

vader1359 avatar Nov 27 '23 00:11 vader1359

Notion now exposes uploaded content through expiring links. You either need to cache those filees, fetch a fresh link from Notion every time your page loads or, in the Notion UI, embed files as external links rather than uploading them on Notion.

brunomorency avatar Dec 04 '23 14:12 brunomorency

Does anyone know any alternative way or method to bypass these expiring links?

jpprakash4260 avatar Dec 08 '23 09:12 jpprakash4260

There should be an update on the Notion side, the video is correctly showing up on my side

GridexX avatar Jan 15 '24 14:01 GridexX

Yup same issue here, ive got an uploaded video to a notion page (thats been published) when I use the API to read off of it then re-render the page, everything loads except for the embedded videos. And on the DOM of the re-rendered page there is a <video> component but when I go to the value of the src parameter (which is the url it's trying to load ). image

I get this error. Essentially the same issue that the OP is saying.

dennisrcao avatar Aug 05 '24 21:08 dennisrcao