Code Monkey home page Code Monkey logo

Comments (9)

zryfish avatar zryfish commented on September 2, 2024

/cc @kubesphere/sig-devops
/cc @kubesphere/sig-console

from ks-devops.

LinuxSuRen avatar LinuxSuRen commented on September 2, 2024

/assign

from ks-devops.

LinuxSuRen avatar LinuxSuRen commented on September 2, 2024

As we can see below, the front-end can get the error message from API response directly.

image

image

There's one thing you might need to consider is the localization.

from ks-devops.

zryfish avatar zryfish commented on September 2, 2024

/cc @harrisonliu5 Please take a look

from ks-devops.

stale avatar stale commented on September 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

from ks-devops.

VioZhang avatar VioZhang commented on September 2, 2024

/remove-lifecycle stale

from ks-devops.

harrisonliu5 avatar harrisonliu5 commented on September 2, 2024

The error message obtained from the API cannot be internationalized, so a general error message is used instead. @LinuxSuRen

from ks-devops.

LinuxSuRen avatar LinuxSuRen commented on September 2, 2024

I'm not sure if code 428 represents a particular error. We can provide i18n base on that if it's true.

from ks-devops.

ks-ci-bot avatar ks-ci-bot commented on September 2, 2024

@zryfish: The label(s) area/devops, area/console cannot be applied, because the repository doesn't have them.

In response to this:

Describe the Bug
When creating a DevOps pipeline using in-scm way, I've generated a github token and pasted it into the Token input box, and click confirm, then it showed wrong token, but there is no why. Only after inspecting server logs, I've found this error message.

E0323 10:02:24.731578       1 pipeline.go:637] {
 "message" : "Invalid token, its missing scopes: user:email,repo",
 "code" : 428,
 "errors" : [ ]
}

Clearly, I've forget to select the right scopes when generating token. It's better to return this error message back to users.

截屏2021-03-23 10 03 00 截屏2021-03-23 10 02 34

Versions Used
KubeSphere: nightly-20210321
Kubernetes: (If KubeSphere installer used, you can skip this)

/kind bug
/priority low
/area devops
/area console

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

from ks-devops.

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.