--- title: Ajax error 500 when using special characters in a query slug: '3077' canonical_url: https://docs.coveo.com/en/3077/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Ajax error 500 when using special characters in a query ## Symptoms When performing a query using special characters in a Coveo-powered search page, your browser console displays an error like the following: ```text Uncaught (in promise) e {message: "Request Error", status: 500, type: "Ajax Error (status: 500)", name: "Ajax Error (status: 500)"} ``` Notably, using `<`, `>`, or `#` in a search query renders the search page ineffective, even after clearing the search box. ## Cause ASP.NET validates any incoming request by looking for potentially dangerous characters, such as `<`, `>`, and `#`. The query is then stored in the browser local storage `__coveo.analytics.history` key. Every subsequent query will use this value as `actionsHistory` in its call headers. This is why subsequent queries can continue to trigger the error, even if the user cleans the search box. ### Workaround You can disable the special character validation on requests executed under `/coveo/rest`. . Open the `\web.config` file in a text editor. . Locate the `` element. ```xml ``` . Just ahead of the `` element, add the `` element shown below. ```xml ``` . Save your changes.