question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Read only function call - Application error: a client-side exception has occurred

See original GitHub issue

Describe the bug A clear and concise description of what the bug is. Stacks Explorer throws error on read only function calls. Happens to multiple NFT contracts such as Miami Degens, Megapont, Bitcoin Monkeys and others. Was working a few weeks before.

Transaction ID Address Block#
Time stamp

To Reproduce

  1. Go to https://explorer.stacks.co/sandbox/contract-call?chain=mainnet
  2. Paste miami-degens contract SP1SCEXE6PMGPAC6B4N5P2MDKX8V4GF9QDE1FNNGJ.miami-degens
  3. Click on Get contract
  4. Scroll down to get-owner (read_only function)
  5. Write a token id
  6. Click on Call function
  7. See error

Expected behavior It should show the address of the owner for the specific NFT id.

Screenshots console.log:

instrument.js:109
[debug] pageProps.dehydratedState undefined
-----------------------------------------------------------------------
instrument.js:109
TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at ln (recoil.js:5279:36)
    at recoil.js:5328:41
    at Array.map (<anonymous>)
    at ln (recoil.js:5328:4)
    at recoil.js:5289:32
    at Array.map (<anonymous>)
    at ln (recoil.js:5289:18)
    at recoil.js:5328:41
    at Array.map (<anonymous>)
    at ln (recoil.js:5328:4)
    at dn (recoil.js:5362:10)
    at mi._keyMapper (recoil.js:7105:21)
    at mi.get (recoil.js:7047:31)
    at recoil.js:7234:42
    at fn ([...param]-1b9891ff8f74023c.js:1:121082)
    at ro (react-dom.production.min.js:157:137)
    at Hu (react-dom.production.min.js:267:460)
    at Pi (react-dom.production.min.js:250:347)
    at _i (react-dom.production.min.js:250:278)
    at xi (react-dom.production.min.js:250:138)
    at vi (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
    at Wl (react-dom.production.min.js:122:325)
    at Ql (react-dom.production.min.js:123:61)
    at D (scheduler.production.min.js:16:224)
    at w.port1.onmessage (scheduler.production.min.js:12:346)
-----------------------------------------------------------------------
instrument.js:109
Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=TypeError%3A%20Do%20not%20know%20how%20to%20serialize%20a%20BigInt for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at ka (react-dom.production.min.js:140:47)
    at react-dom.production.min.js:150:265
    at Io (react-dom.production.min.js:176:171)
    at Hu (react-dom.production.min.js:271:134)
    at Pi (react-dom.production.min.js:250:347)
    at _i (react-dom.production.min.js:250:278)
    at xi (react-dom.production.min.js:250:138)
    at vi (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
    at Wl (react-dom.production.min.js:122:325)
    at Ql (react-dom.production.min.js:123:61)
    at D (scheduler.production.min.js:16:224)
    at w.port1.onmessage (scheduler.production.min.js:12:346)

screen shot: image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
whoabuddycommented, Aug 24, 2022

@andresgalante this would be the related issue per our conversation in Discord.

On my end, testing with citycoins-tardis-v3, I am unable to call the read-only functions, e.g. total-supply-mia

Screenshot from 2022-08-23 17-37-53

This results in the same message:

Screenshot from 2022-08-23 17-38-03

Which when inspecting the console reveals:

instrument.js:109 TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)

instrument.js:109 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=TypeError%3A%20Do%20not%20know%20how%20to%20serialize%20a%20BigInt for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
0reactions
blockstack-devopscommented, Aug 25, 2022

🎉 This issue has been resolved in version 1.36.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application error: a client-side exceptio… - Apple Community
The message "Application error: a client-side exception has occurred (see the browser console for more information)" indicates a JavaScript ...
Read more >
Next.js Application error: a client-side exception has occurred ...
Error only occurs in production environment and everything runs fine locally. When checking the console I get this error: TypeError: undefined ...
Read more >
application error a client-side exception has occurred chrome
The message "Application error: a client-side exception has occurred (see the browser console for more information)" indicates a JavaScript error.
Read more >
Zoom error message “application error: client side exception ...
If you are receiving the error message “application error: client side exception has occurred", submit a request to Zoom Support for...
Read more >
Control flow and error handling - JavaScript - MDN Web Docs
(In C or Java, the equivalent code would have output 1 .) ... When the exception occurs, control transfers to the catch block....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found