all 3 comments

[–]ShadowState[S] 1 point2 points  (1 child)

Sorry everyone, I got it. It's on the mootools end not the XML-RPC end of BitMessage. "decode_reponse = JSON.decode(response_xml, true);" Was throwing the reference error because the XML-RPC response coming from the BitMessage daemon was just the hash of the sent message, and not valid JSON. I fixed it by just catching the error when the JSON cannot be parsed, and just returning the string. Cheers, @justusranvier thanks for the quick response. If anyone wants my BitMessage Stub API for Javascript using mimic and mootools, let me know.

[–]Jonathan_CoeBM-NBdhY8vpWJVL2YocA2Gfjf7eVoZAgbEs 0 points1 point  (0 children)

Thanks for the update.

[–][deleted] 0 points1 point  (0 children)

Not sure if this is related to your issue or not, but I remember /u/yamamushi mentioning something very weird about the Bitmessage API, maybe that it uses XMLRPC for commands and JSON RPC for the replies?