Error POST - GET 404


As part of a DavSecOps, I’m trying to do a pipeline on GitLab with SonarCloud. I have done all the tuto but I come across this error:

15:00:04.986 DEBUG: file=/builds/almarena-it-rar/dev-vse-estand/.git/HEAD, create new FileSnapshot: lastRead=2023-01-17 15:00:04.986727000, lastModified=2023-01-17 14:59:12.739229000, size=41, fileKey=(dev=801,ino=661173)
15:00:04.988 DEBUG: Merge base sha1: 347004f396d0c8bebab363ebf69761e81eec404d
15:00:04.989 DEBUG: SCM reported changed lines for 0 files in the branch
15:00:04.989 INFO: SCM writing changed lines (done) | time=41ms
15:00:04.997 DEBUG: Could not detect the dotnet / msbuild version
15:00:05.167 INFO: Analysis report generated in 393ms, dir size=206 KB
15:00:05.197 INFO: Analysis report compressed in 27ms, zip size=41 KB
15:00:05.199 INFO: Analysis report generated in /builds/almarena-it-rar/dev-vse-estand/.scannerwork/scanner-report
15:00:05.200 DEBUG: Upload report
15:00:05.987 DEBUG: POST 404 | time=781ms
15:00:05.997 DEBUG: eslint-bridge server will shutdown
15:00:11.001 DEBUG: eslint-bridge server closed
15:00:11.711 INFO: ------------------------------------------------------------------------
15:00:11.712 INFO: ------------------------------------------------------------------------
15:00:11.712 INFO: Total time: 55.619s
15:00:11.870 INFO: Final Memory: 39M/109M
15:00:11.870 INFO: ------------------------------------------------------------------------
15:00:11.871 ERROR: Error during SonarScanner execution
Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

And when I go to the links I find this:

{“errors”:[{“msg”:“HTTP GET method used in request, but the service type is a POST”}]}

Can anyone help me?

  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
  • Scanner command used when applicable (private details masked)
  • Languages of the repository : PHP
  • The project is private

I think this is related to the issue reported here as well: ERROR: Failed to prepare write of the sensor cache