Issue with the REST API
I'm trying to install Coveo locally with Sitecore but I'm getting issue with the rest API (On-premise solution).
I've change the default port from 8080 to 9090 but impossible to make it work … I'm getting a 408 Server is Unavailable
I can go to : http://localhost:9090/ which is showing me a page with the message "This search page is not configured yet" (if i click on the button create a search configuration, it says that i don't have the permission …)
But i cannot go to : http://localhost:9090/rest/search
I've change the port in :
- config.yml (by adding http: port: 9090)
- In Iis the binding of Coveo Entreprise Search 7 Admin to :9090 (I don't th
No more idea where I need to change it to make it works or if there is another place where i need to configure it.
Everything else seems to work, I can index, go to the admin.
I think you are close to a working setup. The config.yml change with http: port: 9090 is perfect. Same thing for the Coveo.SearchProvider.Rest.Custom.config file.
However, you should avoid modifying the Coveo for Sitecore configuration files that do not end with ".Custom.config" like Coveo.SearchProvider.Rest.config as those files will be overwritten at the next Coveo for Sitecore upgrade you will perform. Please revert your modification to this file.
The IIS website for "Coveo Enterprise Search 7" is not related at all to the Coveo Search API REST endpoint. It is only used for the CES7 Administration Tool. You should also revert your modification to this IIS website and set back its port to 8081.
Since your http://localhost:9090 is correctly configured, maybe the only thing that is missing is the "allowImpersonate: true" in your config.yml. This line is automatically added when you check the "This installation is part of a Sitecore integration" checkbox when installing Coveo Search API. If it is not present, have a look at a standard config.yml file example.
By the way, it is normal that http://localhost:9090/rest/search asks you for Windows credentials because when accessing it without an application secret, it uses the configured authentication methods to know who is the user trying to query the index. When Coveo for Sitecore accesses this URL, it passes the application secret and the Sitecore user to the REST endpoint.
I hope this helps,
The following topic has been created in our help to document the procedure to change the rest API port https://developers.coveo.com/x/fhkvAg