Skip to content

fix: add timing delay in feed write/read inline snippets#788

Open
NoahMaizels wants to merge 1 commit intomasterfrom
fix/dynamic-content-feed-read-timing
Open

fix: add timing delay in feed write/read inline snippets#788
NoahMaizels wants to merge 1 commit intomasterfrom
fix/dynamic-content-feed-read-timing

Conversation

@NoahMaizels
Copy link
Copy Markdown
Collaborator

Summary

The inline bee-js code snippets in the Write and Read a Feed and Update the Feed sections are missing the 1-second delay between writer.upload() and reader.downloadReference(). Without it, the read fails immediately with a 404 "lookup at failed" error because the Bee node hasn't finished indexing the feed SOC chunk yet.

This matches the same fix already applied to script-02.js in the ethersphere/examples repo (ethersphere/examples#1), keeping the guide snippets and the runnable scripts consistent.

Test plan

  • Copy the snippets into a script, run against a local Bee node — should complete without errors

🤖 Generated with Claude Code

The Bee node needs ~1 second to index a feed SOC chunk after
writer.upload() before reader.downloadReference() can find it.
Matches the same fix already applied to script-02.js in the
ethersphere/examples repo (PR #1).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for test-twitter-preview-testing-3 ready!

Name Link
🔨 Latest commit f9dbde9
🔍 Latest deploy log https://app.netlify.com/projects/test-twitter-preview-testing-3/deploys/69cb873d67171d00082eea35
😎 Deploy Preview https://deploy-preview-788--test-twitter-preview-testing-3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Successfully merging this pull request may close these issues.

1 participant