Open alejoGT1202 opened 1 year ago
I was able to overcome this issue by changing the host from "https://localhost:2746"
to http://localhost:2746
. However, now I'm getting the following error:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=2746): Max retries exceeded with url: /api/v1/workflows/argo-v2 (Caused by ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
If I run the curl command I get the response I'm expecting. I have tried to increase the retries
param in the configuration but still not getting the response. I can see from the terminal that I'm port-forwarding that it's my request it's trying to do something because the value I set on retries
parameter is the number of times the terminal prints:
Handling connection for 2746
message.
Do I have a bad configuration that it's not allowing me to access to argo-server using the SDK?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.
This can be resolved by using
access_token = f"Bearer {token_value}"
api_client.set_default_header("Authorization", access_token)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Pre-requisites
:latest
What happened/what you expected to happen?
I am trying to use the to use BearerToken as the authentication method with the Python SDK but I'm getting the following error:
However if I used my token with
curl --insecure --request GET --url https://localhost:2746/api/v1/workflows/argo-v2 -H "Authorization: $ARGO_TOKEN"
I can access to the argo-server and get information from it.Version
v.3.3.8
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the ~workflow controller~ SDK
Logs from in your workflow's wait container
n/a