Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][ErrorCode] Add error code matching #4924

Open
v-kkhuang opened this issue Oct 7, 2023 · 1 comment
Open

[Feature][ErrorCode] Add error code matching #4924

v-kkhuang opened this issue Oct 7, 2023 · 1 comment
Labels

Comments

@v-kkhuang
Copy link
Contributor

v-kkhuang commented Oct 7, 2023

需求背景

部分错误信息未匹配到错误码,根据特定场景新增错误码

目标

1.错误码:43016
2.新增错误码:43017
3.新增错误码:43018
4.优化错误码匹配:21001

处理方案

1.错误码:43016 提示语:[模块 'xxxx' 没有属性 'xxxxx',请确认代码引用是否正常] 匹配正则:[AttributeError: '(\S+)' object has no attribute '(\S+)']
2.错误码:43017 提示语:[存在参数无效或拼写错误,请确认 %s 参数正确性] 匹配正则:[KeyError: ((.+))]
3.错误码:43018 提示语:[ 文件地址( xxxx )错误,请确认路径是否存在] 匹配正则:[FileNotFoundError.*No such file or directory:\s'(\S+)']
4.错误码:21001
更改前:User (\S+) cannot submit applications to queue (\S+)
更改后:User (\S+) cannot submit applications to queue (\S+?)(?=\)


Requirement background

Some error messages did not match the error code, new error codes will be added based on specific scenarios

Goal

  1. Error code: 43016
  2. New error code: 43017
  3. New error code: 43018
  4. Optimize error code matching: 21001

Processing plan

  1. Error code: 43016 Prompt: [Module 'xxxx' does not have attribute 'xxxxx', please confirm if the code reference is normal] Matching regular: [AttributeError: '( S+)' object has no attribute '( S+)']
  2. Error code: 43017 Prompt: [There are invalid parameters or spelling errors, please confirm the correctness of the% s parameters] Matching regular: [KeyError: ( (.+))]
  3. Error code: 43018 Prompt: [File address (xxxx) error, please confirm if the path exists] Matching regular: [FileNotFoundError. * No such file or
  4. Error code: 21001
    Before making changes: User ( S+) cannot submit applications to queue ( S+)
    After change: User ( S+) cannot submit applications to queue ( S+?) (?= )
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

😊 Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
👉 How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive

@v-kkhuang v-kkhuang changed the title [Feature][Error code] Add error code matching [Feature][ErrorCode] Add error code matching Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant