You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Force HTML request format
We were seeing the following errors caused by request being in the JSON format
ActionView::MissingTemplate
Missing template errors/not_found with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. (ActionView::MissingTemplate)
https://govuk.sentry.io/issues/6194268690/?project=1461892
Example request data.gov.uk/dataset/tunbridge-wells-open-data-local-plan-2006-rural-exception-housing-h8/datapackage.json
We don't want to support JSON requests.
This a similar behaviour to gov.uk