swarm-cli icon indicating copy to clipboard operation
swarm-cli copied to clipboard

bug: debug api is required for upload

Open significance opened this issue 2 years ago • 5 comments

debug api should not be required

sig32 :: swarm/swapchat2/build 1 » swarm-cli upload --curl --bee-api-url https://swerm.org --index-document index.html .
Cannot ensure Debug API correctness!
--bee-api-url is set explicitly, but --bee-debug-api-url is left default.
This may be incorrect and cause unexpected behaviour.
Please run the command again and specify explicitly the --bee-debug-api-url value.

significance avatar Jun 04 '22 08:06 significance

Well, there two things here:

  1. to my knowledge we need access to the Debug API because managing the stamps (eq. list them etc.)
  2. not sure if it is happening or not, but we could try deduce the Debug port from the bee-api-url configuration, but with the upcoming merge of the endpoints not sure if it will have the priority for it

AuHau avatar Jun 04 '22 10:06 AuHau

aha, i see. well, perhaps then it is better to state the use case:

i would like to use (and have been using) swarm-cli to upload using a public gateway.

i can no longer do this.

significance avatar Jun 07 '22 20:06 significance

@significance you can provide --stamp 0000000000000000000000000000000000000000000000000000000000000000 to bypass the debug API usage

Cafe137 avatar Aug 09 '22 16:08 Cafe137

Related: https://github.com/ethersphere/swarm-cli/issues/421

Cafe137 avatar Oct 04 '22 18:10 Cafe137

Also in Bee there is the endevour to merge the API and Debug API so that will pretty much solves this issue.

AuHau avatar Oct 05 '22 07:10 AuHau

No longer the case with the merge

Cafe137 avatar Jun 26 '24 16:06 Cafe137