"No route found for the specified format html" with 8.5.1

Created on 29 March 2018, almost 7 years ago
Updated 10 January 2024, about 1 year ago

I created a simple data export with a path and a couple of fields, and got the following error on Drupal 8.5.1 when navigating to the path:

Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException: No route found for the specified format html. in Drupal\Core\Routing\RequestFormatRouteFilter->filter() (line 55 of C:\Users\Hubert\Documents\Maze Digital\sites\cas\core\lib\Drupal\Core\Routing\RequestFormatRouteFilter.php).

🐛 Bug report
Status

Needs review

Component

Code

Created by

🇨🇦Canada hubert_r2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada ryanrobinson_wlu

    I encountered this error and will add a note here in case anybody else has the same cause as I did.

    I created a new data export display on a view, where the other displays were pages and blocks, using the +Add -> Data Export link. I set up my view including the path with the .csv in the filename, then kept getting the error.

    Then I discovered in Format -> Format -> Settings there is also an option there to set the accepted request format. That also needs to be set to csv.

  • Status changed to Needs work about 1 month ago
  • 🇬🇧United Kingdom steven jones

    Yeah, as @ryanrobinson_wlu says the issue here is that you need to manually select an output format, but the module doesn't enforce that, and it should. Let's add that and then this error will go away.

Production build 0.71.5 2024