Qiskit / qiskit-ibm-transpiler

https://pypi.org/project/qiskit-ibm-transpiler/
Apache License 2.0
16 stars 5 forks source link

Handle HTTPErrors without a response in json format #35

Closed victor-villar closed 2 months ago

victor-villar commented 2 months ago

We need to handle the general case where we have a HTTPError without a JSON coming in the response field. In this function: https://github.com/Qiskit/qiskit-transpiler-service/blob/603bd86f9d8f52c6ded1a1febed5c37be8b6ed9c/qiskit_transpiler_service/wrappers/base.py#L182-L197

The only case that I think we can be sure it comes with json info is the UNPROCESSABLE_ENTITY given the way they are created on the service.