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

Discrepancy in how --auth token is used

Đang mở
#142 3 bình luận 0 reaction 1 người được giao Được @tetron nhận Xem trên GitHub
Ngôn ngữ chính
Python
Star
39
Fork
21
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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}

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.