Issue enabling AI Code Fix with Azure Open AI provider

Hello,

We are encountering an issue when trying to enable AI Code Fix with a self-hosted provider (Azure OpenAI) in our SonarQube Server instance.

We have verified connectivity with api.sonarqube.io. The tests confirm:

  • DNS resolution works correctly

  • TCP connection is successful

Despite this connectivity, the feature cannot be activated. The UI displays the following error:

Fail to save settings. Request failed with status code 400

In addition, the web.log file shows the following messages:

2026.03.16 12:17:51 WARN  web[4a4b6bcb-2ff8-441e-a648-bc3577f7d240][o.s.w.s.PageNotFound] No mapping for GET /api/v2/fix-suggestions
2026.03.16 12:17:51 ERROR web[4a4b6bcb-2ff8-441e-a648-bc3577f7d240][o.s.s.w.WebService$RestResponseEntityExceptionHandler] Resource not found.
at org.springframework.web.servlet.DispatcherServlet.noHandlerFound(DispatcherServlet.java:1177)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:953)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:866)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1003)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:892)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:622)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:874)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.sonar.server.platform.web.ApiV2Servlet.service(ApiV2Servlet.java:116)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:128)
at org.sonar.server.platform.web.WebPagesFilter.doFilter(WebPagesFilter.java:79)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:167)
at org.sonar.server.platform.web.MasterServletFilter$HttpFilterChainAdapter.doFilter(MasterServletFilter.java:208)
at org.sonar.server.platform.web.NoCacheFilter.doFilter(NoCacheFilter.java:34)
at org.sonar.server.platform.web.MasterServletFilter$JavaxFilterAdapter.doFilter(MasterServletFilter.java:194)
at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:165)
at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.UserSessionFilter.doFilter(UserSessionFilter.java:83)
at org.sonar.server.platform.web.UserSessionFilter.doFilter(UserSessionFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.CspFilter.doFilter(CspFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.CacheControlFilter.doFilter(CacheControlFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:107)
at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:60)

Here are the details of our SonarQube environment:

  • Version: 2026.1.0.119033 Enterprise Edition

  • Deployment method: zip

Could you please advise on any additional configuration or requirements needed to successfully enable AI Code Fix in this scenario?

Thank you in advance for your support.

Hello @cdaltamirano ,

We have fixed this problem in SonarQube Server 2026.2. Please update your SonarQube instance.

If you plan to stay on SonarQube Server 2026.1 LTA, we have a bug fix/improvement planned to backport: SONAR-27243. We tentatively plan to release this in April 2026.