{"id":19619932,"url":"https://github.com/maxstalker/fcl-panic-result","last_synced_at":"2026-06-10T18:31:49.969Z","repository":{"id":151014300,"uuid":"379677958","full_name":"MaxStalker/fcl-panic-result","owner":"MaxStalker","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-23T22:49:30.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T18:42:21.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaxStalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-23T17:16:20.000Z","updated_at":"2021-06-23T22:49:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1fc16b9-f2a8-4fb4-bb76-7c9f8963c210","html_url":"https://github.com/MaxStalker/fcl-panic-result","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaxStalker/fcl-panic-result","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxStalker%2Ffcl-panic-result","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxStalker%2Ffcl-panic-result/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxStalker%2Ffcl-panic-result/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxStalker%2Ffcl-panic-result/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxStalker","download_url":"https://codeload.github.com/MaxStalker/fcl-panic-result/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxStalker%2Ffcl-panic-result/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34165482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T11:15:37.613Z","updated_at":"2026-06-10T18:31:49.964Z","avatar_url":"https://github.com/MaxStalker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solution\nI'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`.\nUpdating the version to latest solved the issue.\n\nCase closed!\n-----------------------------\n\n# Problem\nWhen Cadence scripts calls `panic` we are getting `failed to encode value: unsupported value: \u003cnil\u003e, \u003cnil\u003e` instead of actual error we see in emulator output. This behaviour I encounter on my Mac, but not on Linux machine...\n\n# Who is affected\nPretty much every developer who is using `fcl` and writes Cadence, since it's much harder to find where error occurred.\n\n# How to replicate\n- launch emulator with `flow emulator -v`\n- run script from root of this project `node index.js`\n\n# Expected outcome\n```js\n[Error Code: 1101] cadence runtime error Execution failed:\nerror: panic: Uh-oh\n --\u003e a0b8feeb4782c0bab8156663a881e3748f472f83332304cb593b15a45eaaeea7:2:16\n  |\n2 |                 panic(\"Uh-oh\")\n  |                 ^^^^^^^^^^^^^^\n```\n\nBelow you can find screenshot from my Linux machine ![screenshot](https://user-images.githubusercontent.com/3136647/123161477-19dcd900-d478-11eb-9799-94424f3e12d7.png)\n\n\n# Additional notes\nI've seen this working just fine on my Linux machine returning `[error code 1101]` and then actual place where this is happening. \nSame package versions, Node v16.3.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxstalker%2Ffcl-panic-result","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxstalker%2Ffcl-panic-result","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxstalker%2Ffcl-panic-result/lists"}