# Bug OP-19740 - ActionView::MissingTemplate in Search controller on unsupported content type

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19740

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Search |
| Target versions | 17.7.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Tom Hykel |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

###   

### Steps to reproduce

1.  Visit [https://community.openproject.org/search.json](https://community.openproject.org/search.json)
    
2.  Observe the 500
    

### What is the buggy behavior?

We shouldn&#x27;t generate 500s for obviously invalid requests, as it generates noise in error trackers

### What is the expected behavior?

Either return a proper 406, or fix this to return actual content

###   

### **Logs**

[https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/883](https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/883)

`Missing template search/index, application/index with {locale: [:en], formats: [:json], variants: [], handlers: [:raw, :erb, :html, :builder, :ruby]}.`

###
