Read only function call - Application error: a client-side exception has occurred
See original GitHub issueDescribe 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
- Go to https://explorer.stacks.co/sandbox/contract-call?chain=mainnet
- Paste miami-degens contract SP1SCEXE6PMGPAC6B4N5P2MDKX8V4GF9QDE1FNNGJ.miami-degens
- Click on
Get contract
- Scroll down to
get-owner (read_only function)
- Write a token id
- Click on
Call function
- 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:
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
This results in the same message:
Which when inspecting the console reveals:
🎉 This issue has been resolved in version 1.36.3 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀