Error while importing gitlab organization to Sonar Cloud

We are using GitLab for our Java source code versioning, and I am trying to import my gitlab organization into Sonar cloud through Sonar Cloud UI. Then I am getting below error message.

Missing required parameters for Token-Based DevOps Platform. The DevOps-Platform-Access-Token header is missing. Customer firewalls can remove the DevOps-Platform-Access-Token header from the request - if this is the case, please check the firewall rules of your organization.

We had raised support ticket with GitLab then they have requested to share the error logs that Sonar is getting while invoking GitLab Rest end points.

Also I got a comment from Sonar team telling if we are using Zscaler then there is chance of token getting truncated. Can you please provide the proof for the same if the token is truncating like that.

This issue is open with Sonar team past one month now. I expect a faster resolution from Sonar team on this. Our timeline for Go-Live is impacted due to this.

Sajitha Bhaskaran

Hello,

Based on our experience, every time this issue has occurred, it’s been related to Zscaler interfering with the request. Specifically, the required ‘DevOps-Platform-Access-Token’ header gets removed, often due to firewall or security settings within your company’s network.

Reference: Unable to Create new organization in sonarcloud failed with a linkedIn in error - #19 by chrislain

As a workaround, you could try performing this action outside of your company network (for example, from a personal device or non-corporate internet connection). You should then be able to create the organization without this header issue.