[ERROR:] object:<JSON decoder error:> function:<json_to_valu

Post Reply
keevitaja
Posts: 21
Joined: Mon Aug 31, 2015 12:29 am

[ERROR:] object:<JSON decoder error:> function:<json_to_valu

Post by keevitaja »

Code: Select all

[ERROR:] object:<JSON decoder error:> function:<json_to_value>
         <Lua error:InvalidJSONInput: lexical error: invalid character inside string.
               { "num": 32460, "name": "[1;33mWelcome to Grandmarket 
                     (right here) ------^
 at lua_yajl.c line 310>
I think this error comes from the gmcp. At least gmcp room info is not available. last visited room is shown

Image

This happens in Aardwolf mud. 10s from recall

EDIT: This is a serious issue. I think it throws each time when room name is in different colour!

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: [ERROR:] object:<JSON decoder error:> function:<json_to_

Post by SlySven »

Yep, that is the ANSI code for Bold and a Green foreground if I recall my ANSI ESC codes correctly, the highlighted character (before the '[' indicated is the ASCII ESC {character 27 or \033} code which is being rejected). Whether ANSI colour codes should be there is another matter which someone else has experienced. There Vadi pointed out that there would be something like ansiToRgb() but I don't know much more than that. I'm not in the right OS right now so will have to wait before I can investigate more...

Post Reply