Sonar quality gate error 404

I got this error:

I’ve tried specifying the projectName:

Any tips on fixing this?

Hey there.

You’re getting this error… when? What API is being called, and by what (the scanner? another integration?)

Please provide more details, and more logs.

So it happens when waitForQualityGate happens:

my implementation if this helps

Hey there.

What permissions does the user whose token is defined for the SonarCloud connection you’ve configured for withSonarQubeEnv('SonarCloud')?

You will need to make sure that user has both Browse and Execute Analysis permissions on the project.

I didn’t know my token needed permission so I’ve set it up in sonar cloud and now the gates are working. Thank you so much for your time.