couchbase-shell icon indicating copy to clipboard operation
couchbase-shell copied to clipboard

scopes/collections commands return errors

Open ingenthr opened this issue 2 years ago โ€ข 1 comments

This is running on a branch with the vector demo code in it. Also interesting that git describe sent it into background!

๐Ÿ‘ค ingenthr ๐Ÿ  shellvectordemo in โ˜๏ธ data.research.10ks 
> version
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ version โ”‚ 0.91.0 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
๐Ÿ‘ค ingenthr ๐Ÿ  shellvectordemo in โ˜๏ธ data.research.10ks 
> git describe
v0.75.2-50-g51879a6
[1]  + 74194 suspended (tty output)  target/debug/cbsh
โžœ  couchbase-shell git:(demo_branch) โœ— fg
[1]  + 74194 continued  target/debug/cbsh
ERROR: reset foreground id failed, tcsetpgrp result: EINTR
๐Ÿ‘ค ingenthr ๐Ÿ  shellvectordemo in โ˜๏ธ data.research.10ks 
> collections
Error:   ร— Deserialization of the request body failed
   โ•ญโ”€[entry #6:1:1]
 1 โ”‚ collections
   ยท โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€
   ยท      โ•ฐโ”€โ”€ 
   โ•ฐโ”€โ”€โ”€โ”€
  help: Error from the deserializer: invalid value: integer `-1`, expected u64 at line 1 column 288


๐Ÿ‘ค ingenthr ๐Ÿ  shellvectordemo in โ˜๏ธ data.research.10ks 
> scopes
Error:   ร— Deserialization of the request body failed
   โ•ญโ”€[entry #7:1:1]
 1 โ”‚ scopes
   ยท โ”€โ”€โ”€โ”ฌโ”€โ”€
   ยท    โ•ฐโ”€โ”€ 
   โ•ฐโ”€โ”€โ”€โ”€
  help: Error from the deserializer: invalid value: integer `-1`, expected u64 at line 1 column 288

ingenthr avatar Apr 26 '24 00:04 ingenthr

maybe this is expected with capella?

ingenthr avatar Apr 26 '24 00:04 ingenthr

This was due to collections now being able to have a maxTTL of -1. CBShell was attempting to read the value into a u64.

Westwooo avatar May 20 '24 14:05 Westwooo