issue "Stream with this name not found:" when stream already exist

+1 vote
anju@DESKTOP-FFAFKFO:/mnt/c/Users/RAM/mysam1$ multichain-cli chaint create stream "stream34" true
{"method":"create","params":["stream","stream34",true],"id":"35431233-1701004608","chain_name":"chaint"}

error code: -705
error message:
Stream or asset with this name already exists
anju@DESKTOP-FFAFKFO:/mnt/c/Users/RAM/mysam1$ multichain-cli chaint liststreamitems "stream34"
{"method":"liststreamitems","params":["stream34"],"id":"77217000-1701004620","chain_name":"chaint"}

error code: -708
error message:
Stream with this name not found: stream34
anju@DESKTOP-FFAFKFO:/mnt/c/Users/RAM/mysam1$ multichain-cli chaint liststreams
{"method":"liststreams","params":[],"id":"40556506-1701004667","chain_name":"chaint"}

[
    {
        "name" : "root",
        "createtxid" : "63dce96635857e601886fef54e3d92513de31fb9cf8d02d001782ea635786b0b",
        "streamref" : "0-0-0",
        "open" : true,
        "details" : {
        },
        "subscribed" : true,
        "synchronized" : false,
        "items" : 0,
        "confirmed" : 0,
        "keys" : 0,
        "publishers" : 0
    },
    {
        "name" : "stream33",
        "createtxid" : "c9fcfd1c206dbfef291b4e4d08ea6b2d5ce6d6b16b6ca0ab9a8dfcaac8f8852e",
        "streamref" : "60-265-64713",
        "open" : true,
        "details" : {
        },
        "subscribed" : true,
        "synchronized" : true,
        "items" : 74,
        "confirmed" : 74,
        "keys" : 19,
        "publishers" : 1
    },
    {
        "name" : "stream33",
        "createtxid" : "48d02ba3f270d3e6ed8259dfa55a5d9a63fe31998597696d3aed6f7660d629ae",
        "streamref" : "60-265-64713",
        "open" : true,
        "details" : {
        },
        "subscribed" : true,
        "synchronized" : true,
        "items" : 74,
        "confirmed" : 74,
        "keys" : 19,
        "publishers" : 1
    },
    {
        "name" : "stream34",
        "createtxid" : "a711284a75212700ea5a4806371dafac46ecc9162d45629ddd6a1f7b73f7cbc7",
        "streamref" : "60-492-4519",
        "open" : true,
        "details" : {
        },
        "subscribed" : true,
        "synchronized" : true,
        "items" : 12151,
        "confirmed" : 12151,
        "keys" : 5014,
        "publishers" : 1
    }   
]

question:

In my chain, 2 stream exists with same name ie 'stream33'. is it possible?

and stream34 already exist, but i am not able to liststreamitems. and it is not allowing to create a stream also.

And when I tried to check key values again in 'stream33', the key values are set to " ".

  {
        "key" : "",
        "items" : 2,
        "confirmed" : 2
    }

whereas earlier the stream was having key values.

Can you tell me the possible reason for this unwanted and automatic changes in multichain streams?
asked Nov 26, 2023 by anju
edited Nov 27, 2023 by anju

1 Answer

0 votes

There seems to be some issue with how you are entering commands into the command line. For example see these lines:

multichain-cli chaint liststreamitems "stream34"
{"method":"liststreamitems","params":["chr8stream34"],"id":"77217000-1701004620","chain_name":"chaint"}

In the top line stream name appears to be stream34 but somehow this is being read as chr8stream34 by multichain-cli.

answered Nov 27, 2023 by MultiChain
i had 2 chains, in one chain i was using 'stream34' name only. In both chains, same issue is there. In above message, bymistake i have copied message from a previous chain, which i have already deleted( since 2 chains had same name).
[i will edit it]

But this issue i have noticed in other chains as well, created from different python file.
OK. Please send a full transcript of multichain-cli commands, and their outputs, sent to a single chain which show the problem.
...