Error while executing task Publish: Invalid endpoint auth: xxxx

  • which versions are you using: SonarQube Server - Enterprise Edition v2026.1 (119033)
  • how is SonarQube deployed: zip

We are currently receiving following error in an azure devops pipeline which worked before. The prepare and analyze tasks run through without error, but the immediately following publish task is failing with a new sudden error which looks weird. I could not find this error message online anywhere. Also it seems to log credentials (but with encoding issues):
Any ideas?

Starting: SonarQubePublish
==============================================================================
Task         : Publish Quality Gate Result
Description  : Publish SonarQube Server's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version      : 7.4.2
Author       : sonarsource
Help         : [More Information](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops/)
==============================================================================
TLS 79517: client _init handle? true
(node:79517) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
TLS 79517: client initRead handle? true buffered? false
TLS 79517: client _start handle? true connecting? false requestOCSP? false
TLS 79517: client emit session
TLS 79517: client onhandshakedone
TLS 79517: client _finishInit handle? true alpn false servername [REDACTED]
TLS 79517: client emit secureConnect. authorized: true
[INFO]  SonarQube Server: Server version: 2026.1.0.119033
[INFO]  SonarQube Server: Task d71dc3be-388d-45cf-b4aa-1ab497cd4ea6 completed
[INFO]  SonarQube Server: Analysis succeeded with warning: Could not find ref 'master' in refs/heads, refs/remotes, refs/remotes/upstream or refs/remotes/origin. You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis and refer to <a href="https://docs.sonarsource.com/sonarqube-community-build/analyzing-source-code/scm-integration/" rel="noopener noreferrer" target="_blank">the documentation</a>.
[INFO]  SonarQube Server: Analysis succeeded with warning: Shallow clone detected during the analysis. Some files will miss SCM information. This will affect features like auto-assignment of issues. Please configure your build to disable shallow clone.
[INFO]  SonarQube Server: Analysis succeeded with warning: Missing blame information for 150 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href="https://docs.sonarsource.com/sonarqube-community-build/analyzing-source-code/scm-integration/" rel="noopener noreferrer" target="_blank">the documentation</a>.
[INFO]  SonarQube Server: Overall Quality Gate status: failed
##[error][ERROR] SonarQube Server: Error while executing task Publish: Invalid endpoint auth: ���W6�?p�c|�9!��2[REST REDACTED]

Hi,

Is there any more to the error than that? Can you provide the full stacktrace?

 
Thx,
Ann

Unfortunately there is not much more than this. It is followed by ~13 lines encoding-gibberish which seems to be some authentication value (?) printed with encoding issues. No stacktrace. Only these debug outputs which basically say the same, each folled by same gibberish text:

##[debug][DEBUG] SonarQube Server: Adding build property: [{"op":0,"path":"/sonarglobalqualitygate","value":"ok"}]
##[debug]SYSTEMVSSCONNECTION exists true
##[error][ERROR] SonarQube Server: Error while executing task Publish: Invalid endpoint auth: e'�a�x�3��.[REDACTED]
##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;][ERROR] SonarQube Server: Error while executing task Publish: Invalid endpoint auth: e'�a�x�3��.[REDACTED]
##[debug]task result: Failed
##[error]Invalid endpoint auth: e'�a�x�3��.[REDACTED]
##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;]Invalid endpoint auth: e'�a�x�3��.[REDACTED]
##[debug]Processed: ##vso[task.complete result=Failed;]Invalid endpoint auth: e'�a�x�3��.[REDACTED]
Finishing: SonarQubePublish

Even more strange:
After multiple failed runs on different branches within ~2-3 hours it suddenly worked well on all branches again. No idea what that was…

1 Like

Hi,

At a guess, it must have been a transient problem on the provider’s end. Hopefully you don’t see this recur.

 
Ann