Weird 404 Error on Azure

Vote:
 

We are having some issues with the Content Delivery API and Azure.

We have a pretty simple setup with CMS, Find and the Content Delivery API. When running it locally, everything runs fine and the endpoints from ContentApi and ContentApiSearch work as expected. I have been testing them using Postman. However, when we deploy to a webapp on Azure (not DXC), the ContentApiSearch endpoint  /api/episerver/v2.0/search/content  is returning a 404. The other endpoints in the ContentApi are working just fine.

I have been through the posts in the forum regarding 404 results, but they don't seem to fix my issue. Can anyone help?

UPDATE! We were able to get this issue resolved. It was the optimizeCompilations part from this issue that fixed it: https://world.episerver.com/forum/developer-forum/episerver-content-delivery-api/thread-container/2019/11/content-delivery-api-why-cant-i-use-search/

#247407
Edited, Jan 21, 2021 14:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.