Coder Social home page Coder Social logo

Comments (4)

xplat avatar xplat commented on June 13, 2024

This also happens with the 'v6.0.2' tag on docker hub ... and the logs look like this:

2020/04/30 20:30:38 ERRO MICH RENDER ERROR
typ={"annots":["%disburse"],"args":[{"prim":"address"}],"prim":"list"}
val={"prim":"Unit"}
err=micheline: type mismatch val_type=prim[Unit] type_code=list / type={"annots":["%disburse"],"args":[{"prim":"address"}],"prim":"list"} -- value={"prim":"Unit"} / map=map[string]interface {}{}
2020/04/30 20:30:38 ERRO SRVR BW-8f496776e498edb4c6d78d0a9ecae47cc6df42ab Error sending response: json: error calling MarshalJSON for type *micheline.BigMapValue: micheline: type mismatch val_type=prim[Unit] type_code=list / type={"annots":["%disburse"],"args":[{"prim":"address"}],"prim":"list"} -- value={"prim":"Unit"} / map=map[string]interface {}{} in struct []*server.ExplorerOp{(*server.ExplorerOp)(0xc00e45f2c0)}

from tzindex.

echa avatar echa commented on June 13, 2024

Thanks. This bug seems fixed in our PRO and Cloud releases, but the relevant code there was heavily refactored. I'll see if we can backport this as hotfix, otherwise this will be fixed with the next OSS release 6.1

from tzindex.

echa avatar echa commented on June 13, 2024

I had a closer look. The underlying reason for this bug is that the entrypoint is not detected correctly. It's a general limitation of the way entrypoints are handled in the current release. This will be fixed with the next release v6.1.

As hotfix I added a check so the call does not fail entirely, but it still returns the wrong entrypoint and an empty/no parameter value. As workaround to still access the original parameters you can add the prim=1 request argument and access the raw Michelson JSON.

from tzindex.

echa avatar echa commented on June 13, 2024

Closing this old issue. The problem should have been solved by v7/v8. We no longer fail returning any operations where storage data unwrapping fails. Instead the unwrapped storage contains an embedded error object plus the original type + value primitive trees.

from tzindex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.