Cockroachdb: Retrieving cluster info: failed Error: 401 Unauthorized - cockroachdb

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

Related

Securing SprintBoot Web App using Azure AD

Getting this error:
unable to acquire on-behalf-of token for client f93-3-4-a**
Please help!!
I am able to do firstime login and try changing password.After that clicking Login gets this error
Make sure that the admin has enabled user consent.
If you have already done that, try updating to SpringBoot 2.3.3. There was an issue in earlier version that could cause this to happen.

Insecure connection on localhost

I am using Laravel 7 and utilizing Laravel socialite package for the first time for authenticating with facebook.
The problem is I am on localhost and when I am redirected to facebook I am getting error saying
Facebook has detected that XYZ isn't using a secure connection to transfer information.
Until XYZ updates its security settings, you won't be able to use Facebook to log in to it.
I tried to configure my xampp to run localhost on https by following these methods
https://stackoverflow.com/a/28658969/12168002
https://www.youtube.com/watch?v=Mig9YPNiUZI
but none of them worked for me.
I watched few socialite installation videos and noticed that none of them was having secure connection but still able to authenticate user successfully.
Please highlight the actual cause of me getting this error and how can I fix this?

Error: restricted_client when authorization Youtube API V3

I got this error when I create new client secret in new project.
That’s an error.
Error: restricted_client
Unregistered scope(s) in the request: https://www.googleapis.com/auth/youtube.readonly
Request Details
access_type=offline
response_type=code
client_id=487794563386-mujtj6b5iatnmvdailldn468gg028p8g.apps.googleusercontent.com
redirect_uri=http://localhost:61515/authorize/
scope=https://www.googleapis.com/auth/youtube.readonly
That’s all we know.
How could I fix that ?
403 errors are errors with the users access. The user you are currently authenticated with does not have permission to do what you are trying to do in your case it appears to have something to do with the following scope.
https://www.googleapis.com/auth/youtube.readonly
Its hard to know what you are doing without seeing your code. I suggest you attempted to authenticate your user again. IF you changed the secret then its not going to work with a refresh token generated by another secret.
I am going to contact Google to be sure that there hasnt been any changes recently. I cant see anything in the change logs myself. There may have been a stealth change that they didnt release.
Status

Xcode Developer account login failed

Hey i'm trying to login in to my development account in xcode preference. But I'm getting below error. I tried from more then hour but it gives same error.
And when i check other already added accounts also get expired session.
The 503 error code you're getting is the HTTP status code, indicating that the server is unavailable, in this case, the authentication server. It could be that the system is under a denial of service attack, or it may just be down for maintenance.
You can read a little more about the error code here.

Authentication issue in Elasticsearch with Shield

I've installed Shield plugin for ES and configured users with roles. But when I try to index some data with configured user, I always received this error:
[2015-11-22 10:31:58,795][INFO ][rest.suppressed ] /app-nginx-stats-2015-11-22/http-stats Params: {}
ElasticsearchSecurityException[unable to authenticate user [es_admin] for REST request [/app-nginx-stats-2015-11-22/http-stats]]
at org.elasticsearch.shield.support.Exceptions.authenticationError(Exceptions.java:39)
I know about issue with # in password so I've changed it to 123456 - doesn't help.
I also executed esusers list on ES node and I see my users in the output.
So what other common mistakes could lead to "unable to authenticate user" error? Or how can I debug such issues?

Resources