Unable to connect to GitHub Apps via SonarQube CE. It keeps returning Unauthorized - continuous-integration

I am working on integrating SonarQube within my Organizations' CI pipeline, and getting last this huddle is the last step to doing that. I need help with the problem below:
I am trying to connect my SonarQube Community Edition deployment to GitHub, and I did set up a GitHub app, and used the credentials to set up a GitHub Project on SonarQube. However, whenever I try to initiate the project, I keep getting returned unauthorized: 'You're not authorized to access this page. Please contact the administrator.'. This is at the URL: https:///sessions/unauthorized.
I get this in the logs:
WARN web[AYNny08VYY7aX7LCAAXh][o.s.s.a.AuthenticationError] No provider key found in URI

Related

Cockroachdb: Retrieving cluster info: failed Error: 401 Unauthorized

I am trying to connect to my Cockroachdb cluster using:
ccloud auth login && \
ccloud cluster sql ocean-panda
To which I am getting the following error:
logged in to "YASH KOTHARI's Organization" (org-3447v) as YASH KOTHARI
Retrieving cluster info: failed
Error: 401 Unauthorized
2022/11/02 17:58:59 401 Unauthorized
Therefore, it is logging into my account, but not giving me access to any of my clusters. What to do? Did I mess up any certificates or something? I have tried to remove and reinstall anything cockroachdb related but nothing is working. I tried to do this on someone else's system and it is working fine. I am getting this error just on my system!
I am on a Mac (M1) btw.
Thanks a ton for sharing this, we're currently testing some new connection flows using the ccloud CLI and this is a new one!
I'm going to look into it on our side, since this looks like a bug. In the meantime I'd recommend using the other connection options that are available. They can be reached using the "Connect" button in the cluster overview page.
A few other steps that could potentially get it working:
ccloud auth logout && ccloud auth login to refresh the login parameters
ccloud cluster list and see if the same error occurs

Why does Github Package Registry say my token is not scoped to read packages?

I'm trying to publish a Gradle project. I have followed all the documentation provided by GitHub, but when I send the command to publish I am getting a 401 error from the server.
Execution failed for task ':publishGprPublicationToGitHubPackagesRepository'.
> Failed to publish publication 'gpr' to repository 'GitHubPackages'
> Could not GET 'https://maven.pkg.github.com/PowerInnovations/Data-Model/com/powerinnovations/data-model/0.0.1-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized
Upon going to the page and logging in to Github, it says:
Your token has not been granted the required scopes to execute this query. The 'id' field requires one of the following scopes: ['read:packages'], but your token has only been granted the: [''] scopes. Please modify your token's scopes at: https://github.com/settings/tokens.
The thing is, I am already using the personal access token which I created to do this, and it does have the read packages scope enabled.
I did get a resolution from a member of Github's support.
The support person said in an email "When publishing packages, your PAT needs the repo scope as well as write access to the repo you package will be associated with."
They agreed that the response from the server, in this case, was misleading.

DistanceMatrixApi old release has dependency on licence key?

I am using Google Maps API enterprise key for authentication with Google Maps web services.
Upgraded google-maps-services.jar from v0.1.17 to v0.1.18 in the project and got authentication error.
DistanceMatrixApiRequest request = DistanceMatrixApi.getDistanceMatrix(context, orgs, dests);
// using google-maps-services-0.1.17.jar below line works fine.
DistanceMatrix matrix = request.await(); // google-maps-services-0.1.18.jar returns Server Error: 403 Forbidden
Rolling back jar solves the error. What could be a reason for such bazar API error code?
There is a bug in v0.1.18 GeoApiContext throwing 403 Forbidden with enterprise credentials
Using v0.1.19 solved the issue.

What is default Server URL for creating openshift project using eclipse plugin?

I am trying to create openshift application using jboss plugin in eclipse.
While creating project I given following server URL: https://openshift.redhat.com
and choose authentication protocol as basic and provided correct user id and password. But after pressing Next button I am getting following error:
"Unable to read endpoint https://openshift.redhat.com/api"
I also tried https://console.preview.openshift.com/console/ server URL, Still I am getting same error.
Please let me know what is the correct server URL for creating openshift application?

Issue with connecting to magento connector in mule

I am trying to configure a magento connector into my anypoint studio.
I have a magento instance running locally and I have created a user and role for the SOAP requests.
On adding the magento connector to the flow, I try to test the connection using the following properties
Url: http://localhost/magento/api/v2_soap
magento user name and password which is the api key.
However when I test the connection, I get an error
org.mule.api.ConnectionException:(301) Moved Permanently
I also tried giving the url http://localhost/magento/index.php/ap...
However it gives the same error.
Is there any way to resolve this problem?
Username and API key will allows you to connect using Magento connector
EX: https://sashistore.gostorego.com + /api/v2_soap?wsdl is url
For Reference Please go through : http://www.magentocommerce.com/api/soap/introduction.html
Let me know if it works

Resources