EntangledQuery
  • Threads
  • Categories
  • Users
  • Seminar
  • forum
  • group
  • theaters
  • search
  1. Threads
  2. Qiskit
chevron_left Qiskit

Qiskit Error: Max Retries Exceeded

  • forum 1 reply
  • last reply by CattyM March 22, 2022
  • Last
  • link
    JXW
    Members 19 posts
    March 20, 2022, 9:15 a.m. March 20, 2022, 9:15 a.m.
    link

    I came across the error below in qiskit. Could anyone explain what goes wrong and how to fix it?

    qiskit.providers.ibmq.api.exceptions.WebsocketError: 'Max retries exceeded: Failed to establish a websocket connection.
    
  • link
    CattyM
    Members 17 posts
    March 22, 2022, 11:34 a.m. March 22, 2022, 11:34 a.m.
    link

    It seems to be an issue from the IBM side as service provider. The explanation is that websocket connection closes every now and then due to inactivity when runtime job is in pending state for long time.

    You may try solving it by increasing the number of retries in this file:
    path-to-your-qiskit/lib/python3.9/site-packages/qiskit/providers/ibmq/api/session.py

There are no more posts in this thread.

  • EntangledQuery