- Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
Issue
- At anime-watch-hub sample, iframe sandbox was not allowed to render the browser live stream, which requires run JavaScript.
- return value data type was old and function didn't work now.
https://v0-animefinder.vercel.app/
The fix
Before
After
- sandbox attirbute
- remove
sandbox="allow-same-origin"attribute. - added allow-scripts and allow-forms to the sandbox attribute. The live viewer from TinyFish needs JavaScript to render the browser stream.
-
amend
/run-seestreaming API endpoint event handling typesBefore (wrong) After (correct) data.streamingUrl data.streaming_url on STREAMING_URL event data.type === 'STATUS', data.message data.type === 'PROGRESS', data.purpose data.type === 'COMPLETE', data.resultJson data.type === 'COMPLETE', data.result + data.status No failure handling data.status === 'failed' → error state with data.error.message
Comment
I only tried this folder, but I assume same issues can happen at other folders tool.
Highly recommended to review and adjust to new event types on /run-sse endpoints.
doc: https://docs.tinyfish.ai/key-concepts/endpoints#streaming-/run-sse
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels