Having issues setting up Azure open ai in ai codefix

Which version are you using? SonarQube 2025.3.4

How is SonarQube deployed? zip file

What are you trying to achieve? Connect to our azure open ai to use AI codefix

What have you tried so far to achieve this? Configured azure open ai, input the endpoint address and the key and, received a 400 error when saving. Found this error in the web log:

Unexpected error occurred while validating Azure OpenAI endpoint
java.lang.NullPointerException: Cannot invoke “com.sonar.fix.suggestions.api.external.response.AzureOpenAiResponse.choices()” because “parameter1” is null

Hi,

\Welcome to the community and thanks for this report!

Can we have the full stacktrace for that error as well as the last few lines leading up to it?

Also, could you upgrade to 2025.5 and see if this is still replicable?

 
Thx,
Ann