common-workflow-language / common-workflow-language/workflow-service

Discrepancy in how --auth token is used

オープン
#142 コメント 3 件 リアクション 0 件 担当者 1 名 @tetron が担当を希望しています GitHub で見る
主要言語
Python
スター
39
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm testing this package out against arvados and am noticing an inconsistency with how the authorization token is being used.

I have the wes-server running and connected to Arvados with my Arvados token.

If I run wes-client,

wes-client --host=localhost:8080 --proto http --auth "Bearer my_arvados_token" --list

I see a list of runs. I then try

wes-client --host=localhost:8080 --proto http --auth "Bearer my_arvados_token" hello_world.cwl hello_world.input.yaml

but get the error:

ERROR:root:{'msg': "'Authorization' header is missing or empty, expecting Arvados API token", 'status_code': 401}
Traceback (most recent call last):
File "/scratch/workflow-service/workflow-service-env/bin/wes-client", line 8, in
sys.exit(main())
File "/scratch/workflow-service/wes_client/wes_client_main.py", line 130, in main
r = client.run(args.workflow_url, job_order, attachments)
File "/scratch/workflow-service/wes_client/util.py", line 287, in run
return wes_response(postresult)
File "/scratch/workflow-service/wes_client/util.py", line 214, in wes_response
raise Exception(error)
Exception: {'msg': "'Authorization' header is missing or empty, expecting Arvados API token", 'status_code': 401}

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。