Json parse internal error #68


  • Defect
  • Started
Open
Assigned to _ForgeUser8860360
  • _ForgeUser7159935 created this issue May 30, 2015
    Ticket Manager

    Brief error description

    I am getting an internal error when trying to parse a json string.

    What causes this error? Please paste the exact line you used

    command /test:
    	trigger:
    		set {_geoip} to text from "http://ip-api.com/json/%IP of player%"
    		set {_country} to json string "%{_geoip}%" from "country"
    		broadcast "%{_country}%"
    

    Please use Pastebin.com and paste the error you get, then paste the URL here

    http://pastebin.com/raw.php?i=f2308hAa

    What server version are you using? Latest is not an answer! Use /ver and tell me

    This server is running CraftBukkit version git-Spigot-870264a-0a645a2 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT)

    What Umbaska version are you using? If you're using a BETA version please paste the ID

    3005151649

    Is there anything else?

    When using the example code everything works fine. I use the exact same code and just change the API and I get the internal error.

  • _ForgeUser7159935 added the tags New Defect May 30, 2015
  • _ForgeUser8860360 removed a tag New May 30, 2015
  • _ForgeUser8860360 added a tag Started May 30, 2015
  • _ForgeUser8860360 posted a comment May 30, 2015

    Thanks for reporting. Had a basic fix, however there are other errors. Will attempt to fix this soon :)

  • _ForgeUser18811018 posted a comment May 31, 2015

    I've fixed a similar error putting brackets [ ] between the json text "[%{_geoip}%]"

  • _ForgeUser7159935 posted a comment May 31, 2015

    @TheBukor: Go

    Nope, still appear to be getting that error.

  • _ForgeUser8860360 posted a comment Jun 1, 2015

    @ROBERTKOZIN: Go

    You shouldn't be getting that error if you do that? O.o... there is another error with regards to other characters than a letter :P

  • _ForgeUser7159935 posted a comment Jun 1, 2015

    @Nfell2009: Go

    Well i just tried TheBukor's solution and got a error in my console.
    Didn't have enough time to look what it is just assumed it was the same, sorry my apologies.


To post a comment, please login or register a new account.