Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Error dealing with big gmcp message
|
Error dealing with big gmcp message
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Rdiniz
Brazil (21 posts) Bio
|
| Date
| Fri 16 Nov 2018 08:31 PM (UTC) |
| Message
| Hi all,
I'm having some issues when the gmcp message I'm getting is too big, I even have to reinstall the plugin when it breaks so it can work well again. I adapted the GMCP_handler_NJG and GMCP_message_receiver_test given as example on my MUD.
The error I'm getting is:
Quote: Run-time error
Plugin: GMCP_message_receiver_test (called from world: Avatar)
Function/Sub: OnPluginBroadcast called by Plugin GMCP_message_receiver_test
Reason: Executing plugin GMCP_message_receiver_test sub OnPluginBroadcast
C:\MUSHclient\lua\json\decode\util.lua:35: unexpected character @ character: 61 0:61 ["] line:
{ "location": "inv", "item": { "id": "15574945478", "name": "
stack traceback:
[C]: in function 'error'
C:\MUSHclient\lua\json\decode\util.lua:35: in function <C:\MUSHclient\lua\json\decode\util.lua:32>
[C]: in function 'match'
C:\MUSHclient\lua\json\decode.lua:74: in function <C:\MUSHclient\lua\json\decode.lua:72>
(tail call): ?
(tail call): ?
[string "Plugin: GMCP_message_receiver_test"]:262: in function <[string "Plugin: GMCP_message_receiver_test"]:245>
Anyone have any idea how to solve it?
Thank you | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #1 on Sat 17 Nov 2018 03:15 PM (UTC) Amended on Sat 17 Nov 2018 03:16 PM (UTC) by Fiendish
|
| Message
| | I think we need to see the raw message that you're receiving before it reaches the JSON parser. You'll need to either modify the plugin to spit that out or enable packet debugging for us. If what I said doesn't make sense, I can explain how. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Rdiniz
Brazil (21 posts) Bio
|
| Date
| Reply #2 on Sat 17 Nov 2018 10:23 PM (UTC) |
| Message
| Yeah, I know how to debug (gmcpdebug 1). I'll try to make the error happen again and get it.
Thank you :) | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Sun 18 Nov 2018 06:13 AM (UTC) |
| Message
|
Rdiniz said:
Hi all,
I'm having some issues when the gmcp message I'm getting is too big ...
Where does it say the message is too big? There is nothing in the error message about that. It actually says "unexpected character @ character: 61" so perhaps there is bad data in the JSON packet. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,027 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top