Active
Project:
JSON:API Explorer
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2019 at 21:10 UTC
Updated:
7 Nov 2019 at 16:02 UTC
Jump to comment: Most recent
I opened up JSON:API Explorer to anonymous users and got this error:
LogicException: The content cannot be set on a StreamedResponse instance. in Symfony\Component\HttpFoundation\StreamedResponse->setContent() (line 129 of /var/www/html/vendor/symfony/http-foundation/StreamedResponse.php).
public function setContent($content)
{
if (null !== $content) {
throw new \LogicException('The content cannot be set on a StreamedResponse instance.');
}
The link is available at: https://d2.api.demo.centarro.io/jsonapi/explorer/app?location=http%3A%2F...
It works fine when logged in.
Comments
Comment #2
mglamanComment #3
mglamanComment #4
mglamanWhoops. It's due to the nginx-proxy and https/http confusion.
Comment #5
mglamanActiveLinkResponseFilter breaks streamed responses for anonymous users.
😱
So Drupal core needs to check the response type.
Comment #6
mglaman