Code Monkey home page Code Monkey logo

Comments (13)

willm avatar willm commented on July 25, 2024

I'm also seeing this on mac os since the upgrade

from circleci-cli.

fszymanski-blvd avatar fszymanski-blvd commented on July 25, 2024

Also having issues on mac os with this update

from circleci-cli.

abdelDriowya avatar abdelDriowya commented on July 25, 2024

@max-elastics thanks for reporting this.
And thanks @willm @fszymanski-blvd for confirming the issue
Could you please try the same command by adding a token in the end
circleci config validate --token YOUR_CIRCLECI_TOKEN

from circleci-cli.

fszymanski-blvd avatar fszymanski-blvd commented on July 25, 2024

Could you please try the same command by adding a token in the end
circleci config validate --token YOUR_CIRCLECI_TOKEN

I generated a new token and tested and this seems to work. It's odd that it worked immediately before upgrading without passing the token.

from circleci-cli.

fszymanski-blvd avatar fszymanski-blvd commented on July 25, 2024

Continuing the test, it looks like I had a token set in the cli.yml but it must have been either invalidated or the format of the token changed. The new token looked different and after re-running circleci setup using the new token the command works fine.

from circleci-cli.

abdelDriowya avatar abdelDriowya commented on July 25, 2024

@fszymanski-blvd thanks for your answer

you can check if your token is valid by doing a GET request to https://circleci.com/api/v2/me
with a Circle-Token header containing your token
doc :
https://circleci.com/docs/api/v2/index.html#operation/getCurrentUser

from circleci-cli.

MrSwitch avatar MrSwitch commented on July 25, 2024

@abdelDriowya before now i've been using the cli's function circleci config validate and dont believe i've ever set a token or run circleci setup. When i go to view my "Personal API Tokens" it is empty.

Note: I do have a token defined in ~/.circleci/cli.yml but dont believe i ever set it up, and suspect this is some kind of default??? 🀷

from circleci-cli.

fbacchella avatar fbacchella commented on July 25, 2024

curl -v -o /dev/null -H 'Circle-Token: XXXX' https://circleci.com/docs/api/v2/index.html#operation/getCurrentUse works, I got a 200, but I add to remove the token from cli.yml to get circleci config validate.

My cli version:

$ circleci version
0.1.28434+5523658 (homebrew)

from circleci-cli.

williamgurzoni avatar williamgurzoni commented on July 25, 2024

I had the same issue and I solved by creating a new token and updating via circleci setup.

from circleci-cli.

abdelDriowya avatar abdelDriowya commented on July 25, 2024

@MrSwitch we don't have any default value. you can verify it's your token by doing a GET request to https://circleci.com/api/v2/me with a Circle-Token header containing your token

from circleci-cli.

abdelDriowya avatar abdelDriowya commented on July 25, 2024

@MrSwitch it's possible that your token was revoked during the security incident if you setup it before

from circleci-cli.

fbacchella avatar fbacchella commented on July 25, 2024

The cli should not return a cryptic error message but an access denied if it’s linked.

from circleci-cli.

abdelDriowya avatar abdelDriowya commented on July 25, 2024

passing the token circleci config validate --token YOUR_CIRCLECI_TOKEN or configuring the token using circleci setup solves this issues, I create a jira ticket to create more explicit error message.
I'll Close this issue, please open an issue if you still have this problem.

from circleci-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.