Discussion:
[bottlepy] There was an error parsing the JSON document.
David J Merritt
2015-07-15 16:59:16 UTC
Permalink
I have been working with bottle for about 6 months now and I recently
encountered the following error when I attempt to load the webpage:

*There was an error parsing the JSON document. The document may not be
well-formed.*


*unexpected end of data at line 1 column 1*
I am able to start up my server without any problem, no error messages in
dev mode. I tried replacing the json files and removing all of the .pyc
files in my app folder to no avail... The only clue I have is that the
error seems to arise when I change json documents that are loaded into the
app. I have double-checked that the json is formed correctly.

I have not been able to resolve the issue shy of a complete reboot of my
system. I am running Python v 2.7.9, bottle.py 0.12.8 on OSX 10.10.1

Any help would be greatly appreciated!
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David J Merritt
2015-07-24 01:57:39 UTC
Permalink
Kev,

Sorry for the long delay. I can't really identify anywhere in my code where
this issue is cropping up. It seems to only happen when I modify .json
files that are dynamically loaded into my app. I try relaunching the
server and it loads just fine but when I try to hit the url I just keep
getting 405s and no feedback in the server output. It's like I am not even
hitting it. I know that I am hitting the correct url and port.

I have this app running on Linux (Centos 6.6) and on Mac (10.10.1) it only
seems to happen on may Mac. And the only way I am able to get the server
to start again is to reboot my machine.

Does this help at all?
D
Post by David J Merritt
I have been working with bottle for about 6 months now and I recently
*There was an error parsing the JSON document. The document may not be
well-formed.*
*unexpected end of data at line 1 column 1*
I am able to start up my server without any problem, no error messages
in
Post by David J Merritt
dev mode. I tried replacing the json files and removing all of the .pyc
files in my app folder to no avail... The only clue I have is that the
error seems to arise when I change json documents that are loaded into
the
Post by David J Merritt
app. I have double-checked that the json is formed correctly.
I have not been able to resolve the issue shy of a complete reboot of my
system. I am running Python v 2.7.9, bottle.py 0.12.8 on OSX 10.10.1
Any help would be greatly appreciated!
Hello David,
Are you able to provide more information, specifically a minimal code (and
json) example that reproduces the problem, and a paste of the traceback?
Thanks,
Kev
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...