Code Monkey home page Code Monkey logo

fcl-panic-result's Introduction

Solution

I've discovered that Flow CLI on MacOS machine had version 0.20.0, while one one Linux had latest (at time of this post) 0.24.0. Updating the version to latest solved the issue.

Case closed!

Problem

When Cadence scripts calls panic we are getting failed to encode value: unsupported value: <nil>, <nil> instead of actual error we see in emulator output. This behaviour I encounter on my Mac, but not on Linux machine...

Who is affected

Pretty much every developer who is using fcl and writes Cadence, since it's much harder to find where error occurred.

How to replicate

  • launch emulator with flow emulator -v
  • run script from root of this project node index.js

Expected outcome

[Error Code: 1101] cadence runtime error Execution failed:
error: panic: Uh-oh
 --> a0b8feeb4782c0bab8156663a881e3748f472f83332304cb593b15a45eaaeea7:2:16
  |
2 |                 panic("Uh-oh")
  |                 ^^^^^^^^^^^^^^

Below you can find screenshot from my Linux machine screenshot

Additional notes

I've seen this working just fine on my Linux machine returning [error code 1101] and then actual place where this is happening. Same package versions, Node v16.3.0.

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.