bearerToken vs. splunkToken
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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...
- Ngôn ngữ chính
- JavaScript
- Star
- 155
- Fork
- 84
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của splunk/splunk-app-examples
-
Probable mistake in restmap.confĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
splunk/splunk-app-examples#67 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
splunk/splunk-app-examples#65 · 1 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 32/100
splunk/splunk-app-examples#48 · 2 bình luận ·
Tất cả issue của splunk/splunk-app-examples
Issue tương tự
-
framework/gatsby help wanted kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dlq/synthpopcan#58 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
osmlab/name-suggestion-index#13104 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fjaeckel/seriesoftubes#376 ·
Maintainer thường phản hồi trong vòng 1 ngày