New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"malformed JSON string" #32
Comments
Aha! Having that happen when there's a drop makes perfect sense, since AFAIK the API has no way of signalling them. I suspect it's giving back some HTML page that hrpg then proceeds to choke up. I'll report this upstream, but will leave this ticket open because I may be able to produce a workaround. :) |
I've got a workaround in dev for this. It's not elegant, but I'm testing it now. If it seems to be catching the error then it will be in the next release. This can't be properly fixed until the upstream bug is resolved. |
* BUGFIX: Detect drops from upstream and direct user to web interface. Kludges GH #32 and HabitRPG/habitica#815 . * BUILD: New dependency: Try::Tiny. * FEATURE: `hrpg help` now provides a help screen.
The latest release (0.18) now has a workaround. There's a chance it may report an item has dropped on a general server error, but it gets around the problem of an ugly error when we don't get back valid JSON, and it should work even if you're doing something like a
As always, you can install with |
Now that the API actually provides drop information, we can use it! Fixes GH #32
This is fixed in version 0.30 of the module! |
I have gotten this message just a handful of times. I suspect it happens when an egg or potion is dropped. (a case that may not be handled by the results parser?) It happens when "plussing" an item.
The text was updated successfully, but these errors were encountered: