# Codegen/completion endpoint: NetworkError

**URL:** <https://forum.builder.io/t/codegen-completion-endpoint-networkerror/15622>\
**Category:** Bugs\
**Tags:** react\
**Created:** [August 15, 2025, 12:01pm UTC](https://forum.builder.io/t/codegen-completion-endpoint-networkerror/15622 "2025-08-15T12:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaher](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chaher](https://forum.builder.io/u/chaher)\
**Post date:** [August 15, 2025, 12:01pm UTC](https://forum.builder.io/t/codegen-completion-endpoint-networkerror/15622/1 "2025-08-15T12:01:22Z")

</div>

npm error code ENOENT  
npm error syscall open  
npm error path /app/code/package.json  
npm error errno -2  
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open ‘/app/code/package.json’  
npm error enoent This is related to npm not being able to find a file.  
npm error enoent  
npm error A complete log of this run can be found in: /root/.npm/\_logs/2025-08-15T12\_21\_14\_333Z-debug-0.log

The dev server command is not configured, ie it is not known which dev command to execute.

Try To Fix

Hide Details  
Setup  
installed  
Dev Server  
unset  
HTTP Server  
stopped  
Proxy: [http://localhost/](http://localhost/)

[HPM] Error occurred while proxying request localhost:48752/?reload=0 to [http://localhost/](http://localhost/) [ECONNREFUSED] ( [Errors | Node.js v24.6.0 Documentation](https://nodejs.org/api/errors.html#errors_common_system_errors) )  
│  
■  
│ 🔴 Network Error Details:  
│  
■ HTTP 402 error from [api.builder.io](http://api.builder.io)  
│  
● 💡 Troubleshooting suggestions:  
│  
● 1. Try again in a few minutes  
│  
● 2. Contact support if the problem persists  
│  
● 📍 Target: [api.builder.io](http://api.builder.io)  
│  
● 📊 HTTP Status: 402

 ![Screenshot from 2025-08-15 12-58-43](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/0/0cbf1066cbd480d563f7d25fb4d1b5ada2295ac5.png)

---

<div class="post-metadata">

**Author:** ![sheema](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sheema](https://forum.builder.io/u/sheema)\
**Post date:** [August 18, 2025, 7:36am UTC](https://forum.builder.io/t/codegen-completion-endpoint-networkerror/15622/2 "2025-08-18T07:36:37Z")

</div>

Hi @chaher thank you for raising this issue on our forum. Could you please share your project URL where this issue happens?

---

<div class="post-metadata">

**Author:** ![tlee-pb](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@tlee-pb](https://forum.builder.io/u/tlee-pb)\
**Post date:** [September 3, 2025, 7:24am UTC](https://forum.builder.io/t/codegen-completion-endpoint-networkerror/15622/3 "2025-09-03T07:24:05Z")

</div>

We are encountering a similar issue in our local environment, where we have to restart our NPM just to bypass this error: `Error: ENOENT: no such file or directory…`
