bearerToken vs. splunkToken
还没有人认领这个 Issue。
评估
调研方向
Start with python/utils.py, where load() raises the shown NameError, then compare the documented option in python/README.md and python/.env with the accepted splunkToken spelling. Confirm whether bearerToken can be accepted as an alias without breaking splunkToken users; done means the documented configuration no longer raises this error.
由索引模型根据 Issue 内容生成。
描述
The resolution of splunk/splunk-sdk-python#388 advises using the verb bearerToken to use the token-based authentication instead of the username/password credentials.
Both the python/README.md and the python/.env show the same verb -- although the line is commented-out in both examples. Unfortunately, trying to use it results in an error:
Traceback (most recent call last):
File "submit.py", line 82, in <module>
main(sys.argv[1:])
File "submit.py", line 43, in main
opts = parse(argv, RULES, ".env", usage=usage)
File "/home/xx/splunk-app-examples/python/utils.py", line 226, in parse
parser_.loadenv(config)
File "/home/xx/splunk-app-examples/python/utils.py", line 172, in loadenv
self.loadif(filepath)
File "/home/xx/splunk-app-examples/python/utils.py", line 166, in loadif
self.load(filepath)
File "/home/xx/splunk-app-examples/python/utils.py", line 159, in load
raise NameError("No such option --" + key)
NameError: No such option --bearerToken
Closer examination of the python/utils.py reveals, that the expected verb is splunkToken! At this time, the documented spelling should, probably, be added as an alias -- if possible -- to avoid breaking things for people already using the incorrect verb...
- 主要语言
- JavaScript
- 星标
- 155
- 派生
- 84
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
splunk/splunk-app-examples 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
-
难度 5/5 一周以上 新手友好度 25/100
splunk/splunk-app-examples#67 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
splunk/splunk-app-examples#65 · 1 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 32/100
splunk/splunk-app-examples#48 · 2 条评论 ·
查看 splunk/splunk-app-examples 的全部 Issue
相似的 Issue
-
accessibility area: css area: web ui bug difficulty: easy frontend good first issue help wanted javascript journey: first-visit journey: mobile priority: P3 quality tech: css tech: html typescript ui user-experience
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
amplitude/Amplitude-TypeScript#2179 · 1 条评论 ·
维护者通常 2 天内回复
-
ci: raise .github/workflows/test.yml timeout-minutes from 20 to 35 as suite exceeds 30,899 tests未关闭
难度 2/5 1-3 小时 新手友好度 74/100
Jason-Vaughan/TangleClaw#3075 ·
维护者通常 1 天内回复
-
fix(frontend): resolve SSE parser crash on unhandled Ref methods and undefined actions identifier未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
kodokbakar/MiroFish-Local#94 ·
维护者通常 1 天内回复
-
framework/gatsby help wanted kind/bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复