bee icon indicating copy to clipboard operation
bee copied to clipboard

SOC creation is broken in `bee dev`

Open mattiaz9 opened this issue 1 year ago • 1 comments
trafficstars

Context

bee: 2.0.0-501f8a4e os: macOS 14.4.1 (ARM) node: v20.10.0

Summary

It seems like SOC creation is broken when bee is in dev mode. The api returns a bad request response without any other information about it.

I've tried using a production instance of bee and it works just fine, thus it might be only a dev mode problem.

Expected behavior

It should upload a SOC as expected.

Actual behavior

Bee returns a 400 error: Bad request.

Steps to reproduce

import { Bee } from "@ethersphere/bee-js"

const batchId = "b7f218456f049a1064c27e079a39c0b31cfe7739cfc002a418b5c77447357930"
const client = new Bee("http://localhost:1633")

const { reference } = await client.uploadFile(batchId, "Hello, world!", "Test", {
  contentType: "text/plain",
})

console.log("Reference: ", reference)

const topic = client.makeFeedTopic("my-topic")
const feedWriter = client.makeFeedWriter(
  "sequence",
  topic,
  "bc0cf95cce9e38eea03798562fa6ee760dc58666eb8451c56a85dcf121295380"
)

await feedWriter.upload(batchId, reference)

mattiaz9 avatar Apr 20 '24 07:04 mattiaz9

We heard that SOC creation is intentionally not supported in dev mode anymore, but we think development would be much easier, if it would support it. For example, when testing swarm-cli.

ottpeter avatar May 23 '24 12:05 ottpeter