- Issue created by @ressa
If you create a View and select "Provide a REST export", define a path such as export.json, save and access the path in a browser, you get this error:
Client error
A client error happened
From the log:
Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException: No route found for the specified format html. Supported formats: json, xml. in Drupal\Core\Routing\RequestFormatRouteFilter->filter() (line 65 of /app/web/core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php).
in Views, under Format > Settings it says:
Accepted request formats
[ ] json
[ ] xml
Request formats that will be allowed in responses. If none are selected all formats will be allowed.
If you select json
and save, you can now access the export.json as expected.
The error
The workaround
json
and saveAllow not defining a format, as the text says: "Request formats that will be allowed in responses. If none are selected all formats will be allowed."
Active
10.1 β¨
Last updated