joaquimley --> I don’t know if it is your terminal’s font but your single and double quotes look strange
Copy-paste this (change your account id)
near call guest-book.testnet --accountId YOUR_ACCOUNT_ID.testnet addMessage '{ "text" : "Aloha" }'
xyq --> What mistake is this
joaquimley --> FYI: This can happen if you are copy pasting from other editors e.g. slack
xyq --> but I can use naer view ,just near call can’t
xyq -->
joaquimley --> <@!xyq> have you tried this?
xyq -->
xyq --> yeah
xyq --> display the same mistake
joaquimley --> can you please copy paste your call here as it is hard to debug from screenshots 😅
xyq --> An error occured
SyntaxError: Unexpected token t in JSON at position 1
at JSON.parse ()
at scheduleFunctionCall (C:\Users\Administrator\AppData\Roaming\npm\node_modules\near-cli\commands\call.js:54:84)
at async Object.handler (C:\Users\Administrator\AppData\Roaming\npm\node_modules\near-cli\utils\exit-on-error.js:52:9)
xyq --> 😋
joaquimley --> no, not the error the call, your input ^^
xyq --> I think this is a common problem
xyq --> near call guest-book.testnet --accountId xyq888.testnet addMessage ‘{“text”;“Aloha”}’
joaquimley --> yep so
joaquimley --> you should’ve copied from what I posted there
joaquimley --> you are using text ; Aloha
joaquimley --> is isn’t “;” but “:”
joaquimley --> ```
near call guest-book.testnet --accountId xyq888.testnet addMessage ‘{ “text” : “Aloha” }’
joaquimley --> So you didn't really copy pasted what I posted above...
xyq -->
xyq --> near call guest-book.testnet --accountId xyq888.testnet addMessage '{ "text" : "Aloha" }'
xyq --> The second time I played with my hand, I input wrong,that ;😅
xyq --> maybe a problem with my system settings?
joaquimley --> maybe i don't know
joaquimley --> This one worked for me
near call guest-book.testnet --accountId joaquimley.testnet addMessage ‘{ “text” : “Aloha” }’
xyq --> ok,thanks