lanthaler / HydraConsole

HydraConsole is an implementation of a generic API client for Hydra-based Web APIs in the form of a single-page application.
http://www.markus-lanthaler.com/hydra/
MIT License
103 stars 17 forks source link

Demo can't parse json responses as they lead with a warning in html #29

Open Robsteranium opened 3 years ago

Robsteranium commented 3 years ago

I was trying to use the console demo. When I try to invoke GET /hydra/api-demo/issues/ nothing happens and I see this error in the console:

Uncaught SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data

Inspecting the response you see it leads with what appears to be a warning from PHP:

<br />
<b>Warning</b>:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>/nfs/c03/h01/mnt/51450/domains/markus-lanthaler.com/hydra-demo/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php</b> on line <b>2549</b><br />
{
    "@context": "/hydra/api-demo/contexts/Collection.jsonld",
    ...