Skip to content

[gnokey] Upload package with huge string results on weird RPC error #4927

@Villaquiranm

Description

@Villaquiranm

Weird RPC error when uploading package with huge string variable

Description

This was tested with a big string variable, but I'll try with other combinations
several variables with shorter strings.

When trying to publish a package I got the following error:

gnokey maketx addpkg \
  -gas-fee 100000ugnot \
  -gas-wanted 100_000_000 \
  -broadcast \
  -chainid "dev" \
  -pkgdir "." \
  -pkgpath "gno.land/p/samcrew/testbug/hugepkg" \
  -remote "http://localhost:26657" \
  MyKey
Enter password.
--= Error =--
Data: unable to call RPC method abci_query, http request / response ID mismatch
Msg Traces:
    0  gno/tm2/pkg/crypto/keys/client/broadcast.go:174 - simulate tx
    1  gno/tm2/pkg/crypto/keys/client/maketx.go:215 - broadcast tx
--= /Error =--

The file that produces this output

package main

import "fmt"

var text = `
sdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsd
sdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsd
sdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsd
...
// totaling 24k lines
`

func main() {
	fmt.Println(text)
}

This works fine on Golang when doing go run

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions