You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The job errors. Here are the logs (with my token redacted):
2024-11-26 16:29:22,326 INFO job_manager.py:531 -- Runtime env is setting up.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/qiskit_serverless/core/clients/serverless_client.py", line 134, in _verify_token
safe_json_request(
File "/usr/local/lib/python3.11/site-packages/qiskit_serverless/utils/json.py", line 143, in safe_json_request
raise QiskitServerlessException(error_message)
qiskit_serverless.exception.QiskitServerlessException:
| Message: Connection error. Make sure configuration (host and auth details) is correct.
| Code: AUTH1001
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/tmp/ray/session_2024-11-26_16-29-10_902153_1/runtime_resources/working_dir_files/_ray_pkg_80432732e942e5df/my_program.py", line 2, in <module>
serverless = IBMServerlessClient(token="***")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qiskit_serverless/core/clients/serverless_client.py", line 472, in __init__
super().__init__(token=token, host=IBM_SERVERLESS_HOST_URL)
File "/usr/local/lib/python3.11/site-packages/qiskit_serverless/core/clients/serverless_client.py", line 123, in __init__
self._verify_token(token)
File "/usr/local/lib/python3.11/site-packages/qiskit_serverless/core/clients/serverless_client.py", line 143, in _verify_token
raise QiskitServerlessException("Cannot verify token.") from reason
qiskit_serverless.exception.QiskitServerlessException: Cannot verify token.
I get the same problem if I provide no arguments.
What is the expected behavior?
IBMServerlessClient class initializes correctly.
The text was updated successfully, but these errors were encountered:
Fixes#2325 and adds some tests.
I couldn't get the file download functionality working. I believe it's
actually impossible at the moment so I'm removing it from the docs. When
Qiskit/qiskit-serverless#1544 is closed, we
can add it back in.
Thanks to open this @frankharkins , we will take a look. Initially this is working because we are using it in our tests I think but let me confirm in case I was confused.
Steps to reproduce the problem
Run this code in a serverless program.
What is the current behavior?
The job errors. Here are the logs (with my token redacted):
I get the same problem if I provide no arguments.
What is the expected behavior?
IBMServerlessClient
class initializes correctly.The text was updated successfully, but these errors were encountered: