# Previous working model no longer working with Inference JS

**URL:** https://discuss.roboflow.com/t/previous-working-model-no-longer-working-with-inference-js/11354
**Category:** 🤝  Community Help
**Created:** [October 16, 2025, 4:43pm UTC](https://discuss.roboflow.com/t/previous-working-model-no-longer-working-with-inference-js/11354 "2025-10-16T16:43:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DHDPIC](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/dhdpic/32/5847_2.png) [@DHDPIC](https://discuss.roboflow.com/u/DHDPIC)
#### Post date: [October 16, 2025, 4:43pm UTC](https://discuss.roboflow.com/t/previous-working-model-no-longer-working-with-inference-js/11354/1 "2025-10-16T16:43:36Z")

</div>

_Describe your question/issue here! (delete this when you post)_

Hello, my previously working model has stopped working with inference js.

**Model link:**

> **[Sign in to Roboflow](https://app.roboflow.com/cowildlife/cowildlife/models/cowildlife/4)**
>
> Even if you're not a machine learning expert, you can use Roboflow train a custom, state-of-the-art computer vision model on your own data.

**It was previously discussed and fixed on this thread:**

> [@Can't get inference.js to work](https://discuss.roboflow.com/t/cant-get-inference-js-to-work/7543):
>
> I am trying to get the most basic web-based version using inference.js to work and struggling. I want to avoi use node.js, and the web browser page assumes node (as far as I can tell): The hand detection web app code they provide doesn’t work either and if you look in the source code for that it bears no relation to what they suggest. [https://demo.roboflow.com/egohands-public/](https://demo.roboflow.com/egohands-public/) I tried chatGPT and it cannot solve it. Has anyone got a vanilla js demo of sending an image to inference.js and g…

I have fired up the webpage without any changes to the model or the code and now it doesn’t work.

**Live version here:**

[https://datawalking.com/umbra/object7/](https://datawalking.com/umbra/object7/)

**I get the following errors in the browser:**  
`Uncaught (in promise) TypeError: G is not a function`

`object7/:1 Access to fetch at ‘``https://httpbin.org/headers’`` from origin ‘``https://datawalking.com``’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.`

`Error: The shape of dict[‘images’] provided in model.execute(dict) must be [1,3,640,640], but was [1,640,640,3]`

`ha @ blob:``https://datawal``…-8e4f6043476e:33428`

`inference.js:20212 Request 0 failed in worker worker_0_cowildlife_4: Model initialization failed`

`inference.js:20212 Uncaught (in promise) Error: Model initialization failed`

**What has changed that is breaking my project?**

Thanks for any advice to fix this, David

---

<div class="post-metadata">

### Author: ![DHDPIC](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/dhdpic/32/5847_2.png) [@DHDPIC](https://discuss.roboflow.com/u/DHDPIC)
#### Post date: [October 16, 2025, 7:45pm UTC](https://discuss.roboflow.com/t/previous-working-model-no-longer-working-with-inference-js/11354/2 "2025-10-16T19:45:16Z")

</div>

OK to fix this I retrained the model, and it appears to work again 😅

---

<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: [November 6, 2025, 7:45pm UTC](https://discuss.roboflow.com/t/previous-working-model-no-longer-working-with-inference-js/11354/3 "2025-11-06T19:45:32Z")

</div>

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