Getting below exception most of the time , when we execute the program

"Failure while retrying load weights - does this model, version, api key exist? can you curl api.roboflow.com, and can your device download files from google cloud storage? have you hit your device limit?"

    Hi AnamikaGupta
    This happens "most of the time"? So sometimes it works?

    Could you post the code you are using - mainly the roboflow API part?

    Thanks,
    Jaka

    Yes it happens most of the time. And also sometimes it works.

    from roboflowoak import RoboflowOak

    import cv2

    import time

    import numpy as np

    if name == 'main':

    # instantiating an object (rf) with the RoboflowOak module

    rf = RoboflowOak(model="graphics_detection", confidence=0.05, overlap=0.5,

    version="3", api_key="lzDsVETPIbgjb3iy3Ae0", rgb=True,

    depth=False, device=None, blocking=True)

    # Running our model and displaying the video output with detections

    while True:

    t0 = time.time()

    # The rf.detect() function runs the model inference

    result, frame, raw_frame, depth = rf.detect()

    predictions = result["predictions"]

    print("PREDICTIONS ", [p.json() for p in predictions])

    # displaying the video feed as successive frames

    cv2.imshow("frame", frame)

    # how to close the OAK inference window / stop inference: CTRL+q or CTRL+c

    if cv2.waitKey(1) == ord('q'):

    break

      Hi AnamikaGupta
      What kind of setup are you using (which camera, what connection)? Looks at first like this is a connection issue, as sometimes it works, but mostly it doesn't.

      The debug output suggests to try making a GET request to https://api.roboflow.com/ and using your API key as query parameter. Does that work for you (even when the device is running)?

      Thanks,
      Jaka