# 403 Forbidden for inference on hosted endpoint with Numpy Array Image

**URL:** <https://discuss.roboflow.com/t/403-forbidden-for-inference-on-hosted-endpoint-with-numpy-array-image/5618>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [May 3, 2024, 8:02pm UTC](https://discuss.roboflow.com/t/403-forbidden-for-inference-on-hosted-endpoint-with-numpy-array-image/5618 "2024-05-03T20:02:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cahse\_Pahm](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/cahse_pahm/32/4479_2.png) [@Cahse\_Pahm](https://discuss.roboflow.com/u/Cahse_Pahm)\
**Post date:** [May 3, 2024, 8:02pm UTC](https://discuss.roboflow.com/t/403-forbidden-for-inference-on-hosted-endpoint-with-numpy-array-image/5618/1 "2024-05-03T20:02:09Z")

</div>

I have gotten this error:

> inference\_sdk.http.errors.HTTPCallErrorError: HTTPCallErrorError(description=‘403 Client Error: Forbidden for url: [https://detect.roboflow.com/activelocator/1?api\_key=5G\*\*\*OT&disable\_active\_learning=False](https://detect.roboflow.com/activelocator/1?api_key=5G***OT&disable_active_learning=False)’, api\_message=‘Forbidden’,status\_code=403)

From this code:

```auto
from inference_sdk import InferenceHTTPClient
import VisionProcessorModules.CameraModules.CameraModulePro as CameraModulePro

def initializeVisionAIModule():
    global CLIENT
    # initialize the client
    CameraModulePro.initialize()
    CLIENT = InferenceHTTPClient(
        api_url="https://detect.roboflow.com",
        api_key=" ************"
    )

def predict():
    picture = CameraModulePro.takePicture()
    predictions = CLIENT.infer(picture, "activelocator/1")
    return predictions

```

Note: I know it’s not any of the other modules fault.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [May 24, 2024, 8:02pm UTC](https://discuss.roboflow.com/t/403-forbidden-for-inference-on-hosted-endpoint-with-numpy-array-image/5618/2 "2024-05-24T20:02:19Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
