bearerToken vs. splunkToken
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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...
- Lingua principale
- JavaScript
- Stelle
- 155
- Fork
- 84
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di splunk/splunk-app-examples
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
splunk/splunk-app-examples#67 · 1 commento · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
splunk/splunk-app-examples#65 · 1 commento · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 32/100
splunk/splunk-app-examples#48 · 2 commenti ·
Tutte le issue di splunk/splunk-app-examples
Issue simili
-
area: bazaar bug complexity: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
accensa/x402-facilitator-stellar#779 ·
I maintainer di solito rispondono entro 1 giorno
-
could-have reliability
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100