# JavaScript

**URL:** https://community.fly.io/c/javascript/29.md?page=1

[Latest](https://community.fly.io/latest.md) · [Categories](https://community.fly.io/categories.md) · [Tags](https://community.fly.io/tags.md)

**Page:** 2

---

## [Node.js App Not Responding to Requests](https://community.fly.io/t/node-js-app-not-responding-to-requests/24872)

<div class="topic-metadata">

**Author:** [@OmarAttia](https://community.fly.io/u/OmarAttia)\
**Replies:** 2\
**Last updated:** [May 17, 2025, 7:17pm UTC](https://community.fly.io/t/node-js-app-not-responding-to-requests/24872 "2025-05-17T19:17:23Z")

</div>

Hey Folks, I’ve been trying to deploy this node.js app on fly.io and finally got to the point where the logs are saying that the app is running on port 3000 but requesting anything from the server doesn’t work. Here’…

---

## [Deploying an on-chain bot that doesn't rely on an application server](https://community.fly.io/t/deploying-an-on-chain-bot-that-doesnt-rely-on-an-application-server/24852)

<div class="topic-metadata">

**Author:** [@saibaneer](https://community.fly.io/u/saibaneer)\
**Replies:** 1\
**Last updated:** [May 15, 2025, 10:50am UTC](https://community.fly.io/t/deploying-an-on-chain-bot-that-doesnt-rely-on-an-application-server/24852 "2025-05-15T10:50:51Z")

</div>

Hi! I am trying to deploy an onchain bot which is a typescript app, but it doesnt use a server. I tried referring to your existing docs, but it does not have any helpful info. The script looks like this: /\* eslint-disa…

---

## [Firecrawl deployment can't connect to Upstash Redis created via fly redis create](https://community.fly.io/t/firecrawl-deployment-cant-connect-to-upstash-redis-created-via-fly-redis-create/24839)

<div class="topic-metadata">

**Author:** [@Mrka](https://community.fly.io/u/Mrka)\
**Replies:** 1\
**Last updated:** [May 13, 2025, 2:13pm UTC](https://community.fly.io/t/firecrawl-deployment-cant-connect-to-upstash-redis-created-via-fly-redis-create/24839 "2025-05-13T14:13:45Z")

</div>

I’m deploying Firecrawl on Fly.io and using a Redis instance provisioned with fly redis create. However, the app still fails to connect to Redis, throwing getaddrinfo ENOTFOUND errors when trying to resolve the .upstash.…

---

## [\[Astro 5.7.2\] Custom 404 page not being rendered in production](https://community.fly.io/t/astro-5-7-2-custom-404-page-not-being-rendered-in-production/24791)

<div class="topic-metadata">

**Author:** [@AlexLekso](https://community.fly.io/u/AlexLekso)\
**Replies:** 0\
**Last updated:** [May 8, 2025, 9:22am UTC](https://community.fly.io/t/astro-5-7-2-custom-404-page-not-being-rendered-in-production/24791 "2025-05-08T09:22:09Z")

</div>

Hi all, I have an AstroJS project, ZINiN-2024, that runs on version 5.7.2. Locally, and also in my staging environment, the custom 404 page works as expected. When I visit the /404 or /non-existent-page, it shows the c…

---

## [How to deploy a Shopify app Node template?](https://community.fly.io/t/how-to-deploy-a-shopify-app-node-template/24782)

<div class="topic-metadata">

**Author:** [@epicwebservice](https://community.fly.io/u/epicwebservice)\
**Replies:** 2\
**Last updated:** [May 7, 2025, 10:56pm UTC](https://community.fly.io/t/how-to-deploy-a-shopify-app-node-template/24782 "2025-05-07T22:56:08Z")

</div>

let me know how to resolve

---

## [When deploying the Shopify app, an error occurred stating "Error reading from server"](https://community.fly.io/t/when-deploying-the-shopify-app-an-error-occurred-stating-error-reading-from-server/24784)

<div class="topic-metadata">

**Author:** [@peterzhong](https://community.fly.io/u/peterzhong)\
**Replies:** 0\
**Last updated:** [May 7, 2025, 10:31am UTC](https://community.fly.io/t/when-deploying-the-shopify-app-an-error-occurred-stating-error-reading-from-server/24784 "2025-05-07T10:31:11Z")

</div>

I created the Remix application based on the documentation provided by Shopify. Then, the “fly launch” command was executed according to the documentation of fly.io. The error message displayed in the terminal is: Error:…

---

## [React-Router and Fly.io through Github Actions, works, but no site is being displayed](https://community.fly.io/t/react-router-and-fly-io-through-github-actions-works-but-no-site-is-being-displayed/24743)

<div class="topic-metadata">

**Author:** [@mzevitas](https://community.fly.io/u/mzevitas)\
**Replies:** 10\
**Last updated:** [May 2, 2025, 2:38pm UTC](https://community.fly.io/t/react-router-and-fly-io-through-github-actions-works-but-no-site-is-being-displayed/24743 "2025-05-02T14:38:10Z")

</div>

hey all, I have a react-router app, currently nothing on the server-side, just a client marketing site. I have set up the github actions and the fly deploy, Everything is building correctly but when I go to my fly.dev s…

---

## [Can't upload images to Tigris over 1mb](https://community.fly.io/t/cant-upload-images-to-tigris-over-1mb/24721)

<div class="topic-metadata">

**Author:** [@marcusps1](https://community.fly.io/u/marcusps1)\
**Replies:** 3\
**Last updated:** [May 1, 2025, 8:41pm UTC](https://community.fly.io/t/cant-upload-images-to-tigris-over-1mb/24721 "2025-05-01T20:41:28Z")

</div>

I am trying to upload an image to my s3 bucket but It does not seem to work for images over 1mb - seems to work fine for images under (even multiple ones) I am using Remix. Have no idea what it is not allowing large ima…

---

## [Cannot deploy any changes to db structure because yarn --frozen-lockfile won't work on temporary machine](https://community.fly.io/t/cannot-deploy-any-changes-to-db-structure-because-yarn-frozen-lockfile-wont-work-on-temporary-machine/24724)

<div class="topic-metadata">

**Author:** [@ocelot](https://community.fly.io/u/ocelot)\
**Replies:** 3\
**Last updated:** [May 1, 2025, 6:37pm UTC](https://community.fly.io/t/cannot-deploy-any-changes-to-db-structure-because-yarn-frozen-lockfile-wont-work-on-temporary-machine/24724 "2025-05-01T18:37:06Z")

</div>

Everything was previously working for a long time, but now when I try to deploy and it gets to this line in fly.production.tml: release\_command = ‘yarn --cwd ./ops db:fly-migrate’ it gets stuck running yarn --frozen-lo…

---

## [Splitting front end, back end, and DB in a single "app"](https://community.fly.io/t/splitting-front-end-back-end-and-db-in-a-single-app/24705)

<div class="topic-metadata">

**Author:** [@commadelimited](https://community.fly.io/u/commadelimited)\
**Replies:** 6\
**Last updated:** [April 29, 2025, 9:12am UTC](https://community.fly.io/t/splitting-front-end-back-end-and-db-in-a-single-app/24705 "2025-04-29T09:12:42Z")

</div>

I have an existing application hosted on Fly: fairly vanilla Django with a SQLite backend. However I’d like to split the app into a more pure “frontend” (via Angular) and backend (using Django Rest Framework). I’d also l…

---

## [Websockets support for OpenAI Realtime Twilio streams](https://community.fly.io/t/websockets-support-for-openai-realtime-twilio-streams/24681)

<div class="topic-metadata">

**Author:** [@Michael7S](https://community.fly.io/u/Michael7S)\
**Replies:** 4\
**Last updated:** [April 24, 2025, 5:38pm UTC](https://community.fly.io/t/websockets-support-for-openai-realtime-twilio-streams/24681 "2025-04-24T17:38:55Z")

</div>

Can the hobby/pay as you go level support the websockets needed for OpenAI Realtime Twilio streams? If so, What are the ideal port settings for fly.io? I’m using Node with fastify on an implementation built from this b…

---

## [A docker app is being detected as a node app](https://community.fly.io/t/a-docker-app-is-being-detected-as-a-node-app/24587)

<div class="topic-metadata">

**Author:** [@entrptaher](https://community.fly.io/u/entrptaher)\
**Replies:** 2\
**Last updated:** [April 14, 2025, 11:09pm UTC](https://community.fly.io/t/a-docker-app-is-being-detected-as-a-node-app/24587 "2025-04-14T23:09:54Z")

</div>

I want to deploy via dockerfile on the launch. Even though there is existing fly.toml file, the ports are not being updated, and the launch is being crashed saying it’s a nodejs app. It is a nodejs app, but I asked speci…

---

## [There appears to be trouble with your network connection. Retrying...](https://community.fly.io/t/there-appears-to-be-trouble-with-your-network-connection-retrying/24474)

<div class="topic-metadata">

**Author:** [@Andres](https://community.fly.io/u/Andres)\
**Replies:** 7\
**Last updated:** [April 9, 2025, 7:18am UTC](https://community.fly.io/t/there-appears-to-be-trouble-with-your-network-connection-retrying/24474 "2025-04-09T07:18:27Z")

</div>

I’m trying to deploy my Node.js app but when is installing the packages, I get this error: =\> \[builder 3/5\] RUN yarn cache clean && yarn install --production=false …

---

## [app + sockets.io server configuration](https://community.fly.io/t/app-sockets-io-server-configuration/24415)

<div class="topic-metadata">

**Author:** [@MrAndrey](https://community.fly.io/u/MrAndrey)\
**Replies:** 4\
**Last updated:** [April 1, 2025, 1:19pm UTC](https://community.fly.io/t/app-sockets-io-server-configuration/24415 "2025-04-01T13:19:41Z")

</div>

Hi there, I’m trying to set up a react app running on 8080 and a sockets.io server on 3000 on one machine. Locally it works but not on fly. Here is the docker setup (I can ssh into the machine, both app & servers are ru…

---

## [Remix App: POST multipart/form-data (via Shopify App Proxy) returning 500, not hitting entry.server.tsx](https://community.fly.io/t/remix-app-post-multipart-form-data-via-shopify-app-proxy-returning-500-not-hitting-entry-server-tsx/24422)

<div class="topic-metadata">

**Author:** [@flying\_in\_the\_air](https://community.fly.io/u/flying_in_the_air)\
**Replies:** 1\
**Last updated:** [April 1, 2025, 11:44am UTC](https://community.fly.io/t/remix-app-post-multipart-form-data-via-shopify-app-proxy-returning-500-not-hitting-entry-server-tsx/24422 "2025-04-01T11:44:40Z")

</div>

Hi everyone, Hoping someone might have insights into a persistent issue we’re facing with our Remix app deployed on Fly.io. Context: Stack: Remix v2, remix-serve, Node 18 (Alpine), Fly Postgres. VM: Currently sh…

---

## [Next.js App Not Listening on 0.0.0.0:3000 in Fly.io Deployment](https://community.fly.io/t/next-js-app-not-listening-on-0-0-0-0-3000-in-fly-io-deployment/24396)

<div class="topic-metadata">

**Author:** [@Trevolt](https://community.fly.io/u/Trevolt)\
**Replies:** 2\
**Last updated:** [March 29, 2025, 5:08am UTC](https://community.fly.io/t/next-js-app-not-listening-on-0-0-0-0-3000-in-fly-io-deployment/24396 "2025-03-29T05:08:52Z")

</div>

I’m encountering an issue when deploying my Next.js application to Fly.io. Although my application starts correctly locally, Fly.io reports that the instance refused the connection. The error message in the logs is: \[PC…

---

## [Remix + Postgres "Server has closed the connection"](https://community.fly.io/t/remix-postgres-server-has-closed-the-connection/24321)

<div class="topic-metadata">

**Author:** [@derekfons](https://community.fly.io/u/derekfons)\
**Replies:** 7\
**Last updated:** [March 27, 2025, 5:00pm UTC](https://community.fly.io/t/remix-postgres-server-has-closed-the-connection/24321 "2025-03-27T17:00:24Z")

</div>

I have a Remix app with Postgres and everything works great, but when things are idle for a bit loading the app will error out with a “Server has closed the connection.”. I am not sure what I need to do to prevent this …

---

## [Game server CPU usage and throttling](https://community.fly.io/t/game-server-cpu-usage-and-throttling/24348)

<div class="topic-metadata">

**Author:** [@Panuchka](https://community.fly.io/u/Panuchka)\
**Replies:** 6\
**Last updated:** [March 25, 2025, 5:54pm UTC](https://community.fly.io/t/game-server-cpu-usage-and-throttling/24348 "2025-03-25T17:54:28Z")

</div>

Hi all! I’ve been trying to provision enough resources for my game server. Before the throttle changes everything was working pretty smoothly, but now I struggle running my game server with 4x shared cpu and 2048 ram. I…

---

## [Fly.io Secrets Not Automatically Injected into Docker Build](https://community.fly.io/t/fly-io-secrets-not-automatically-injected-into-docker-build/24319)

<div class="topic-metadata">

**Author:** [@yaniv](https://community.fly.io/u/yaniv)\
**Replies:** 5\
**Last updated:** [March 25, 2025, 9:44am UTC](https://community.fly.io/t/fly-io-secrets-not-automatically-injected-into-docker-build/24319 "2025-03-25T09:44:11Z")

</div>

Hello Fly.io community, I’m having an issue where environment variables from Fly.io secrets are not automatically passed into the Docker build during deployment. I currently need to manually pass the secrets using the -…

---

## [Issue Deploying Next.js / Prisma app](https://community.fly.io/t/issue-deploying-next-js-prisma-app/14817)

<div class="topic-metadata">

**Author:** [@mattduerr](https://community.fly.io/u/mattduerr)\
**Replies:** 13\
**Last updated:** [March 14, 2025, 5:20am UTC](https://community.fly.io/t/issue-deploying-next-js-prisma-app/14817 "2025-03-14T05:20:39Z")

</div>

Hello everyone, I’ve been trying for a few hours to deploy my Next.js / prisma application. With the generated Dockerfile and fly.toml The build deployment was successful, however my database is not properly connected …

---

## [Timeouts with prisma after scaling up machines](https://community.fly.io/t/timeouts-with-prisma-after-scaling-up-machines/24223)

<div class="topic-metadata">

**Author:** [@timothym](https://community.fly.io/u/timothym)\
**Replies:** 1\
**Last updated:** [March 12, 2025, 8:09pm UTC](https://community.fly.io/t/timeouts-with-prisma-after-scaling-up-machines/24223 "2025-03-12T20:09:23Z")

</div>

I recently scaled up (added new machines for each region, upped CPUs) the machine for an app of mine, and now I’m getting lots of timeout errors: 2025-03-12T19:29:41.178 app\[784e2d4ad05638\] iad \[info\] prisma:error 2025…

---

## [Uploading 350MB worth of zips with nodejs multer and getting 408 error](https://community.fly.io/t/uploading-350mb-worth-of-zips-with-nodejs-multer-and-getting-408-error/24008)

<div class="topic-metadata">

**Author:** [@salvadorsanchez11014](https://community.fly.io/u/salvadorsanchez11014)\
**Replies:** 6\
**Last updated:** [March 1, 2025, 1:00am UTC](https://community.fly.io/t/uploading-350mb-worth-of-zips-with-nodejs-multer-and-getting-408-error/24008 "2025-03-01T01:00:40Z")

</div>

I have 4 CPUs and 4GB of memory on my .toml, which I assume is the RAM and not disk? I’ve seen many topics similar to this, but the best answer has been just to scale up. Should I scale further? since 180MB seems to uplo…

---

## [Fly launch created docker-entrypoint.js - target is not defined](https://community.fly.io/t/fly-launch-created-docker-entrypoint-js-target-is-not-defined/24065)

<div class="topic-metadata">

**Author:** [@Steven\_Overman](https://community.fly.io/u/Steven_Overman)\
**Replies:** 4\
**Last updated:** [February 27, 2025, 8:08pm UTC](https://community.fly.io/t/fly-launch-created-docker-entrypoint-js-target-is-not-defined/24065 "2025-02-27T20:08:31Z")

</div>

I have a node app and ran fly launch. It created a docker-entrypoint.js file and includes a line to a variable that isn’t defined. What is the target supposed to be? Fly logs: file:///app/docker-entrypoint.js:10 cons…

---

## [flyctl deploy: Reached heap limit Allocation failed - JavaScript heap out of memory](https://community.fly.io/t/flyctl-deploy-reached-heap-limit-allocation-failed-javascript-heap-out-of-memory/24016)

<div class="topic-metadata">

**Author:** [@oluijks](https://community.fly.io/u/oluijks)\
**Replies:** 5\
**Last updated:** [February 23, 2025, 7:59pm UTC](https://community.fly.io/t/flyctl-deploy-reached-heap-limit-allocation-failed-javascript-heap-out-of-memory/24016 "2025-02-23T19:59:05Z")

</div>

More or less the same issue as described in FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory I’ve tried deploying with: flyctl deploy --remote-only --vm-size shared-cpu-4x --vm-memory 8…

---

## [Moving to a monorepo | LiteFS and Prisma](https://community.fly.io/t/moving-to-a-monorepo-litefs-and-prisma/23973)

<div class="topic-metadata">

**Author:** [@Spedix](https://community.fly.io/u/Spedix)\
**Replies:** 2\
**Last updated:** [February 20, 2025, 7:13pm UTC](https://community.fly.io/t/moving-to-a-monorepo-litefs-and-prisma/23973 "2025-02-20T19:13:56Z")

</div>

Hi everyone, In the past my app used the following template Epic Stack with the following essential config for the deployment to Fly.io Dockerfile fly.toml litefs I SSH’ed into the production VM (before the monorepo…

---

## [invalidaccesskeyid: the access key id you provided does not exist in our records](https://community.fly.io/t/invalidaccesskeyid-the-access-key-id-you-provided-does-not-exist-in-our-records/23911)

<div class="topic-metadata">

**Author:** [@flsemfur](https://community.fly.io/u/flsemfur)\
**Replies:** 1\
**Last updated:** [February 16, 2025, 8:40am UTC](https://community.fly.io/t/invalidaccesskeyid-the-access-key-id-you-provided-does-not-exist-in-our-records/23911 "2025-02-16T08:40:07Z")

</div>

I installed the NPM packages as shown in the picture, and when I run fly launch, Fly automatically creates a secret and adds the env variables to Fly secrets. However, when I upload an image, I get the error:…

---

## [App is suspended immediately after deploy](https://community.fly.io/t/app-is-suspended-immediately-after-deploy/23862)

<div class="topic-metadata">

**Author:** [@Jellybean](https://community.fly.io/u/Jellybean)\
**Replies:** 6\
**Last updated:** [February 12, 2025, 8:44pm UTC](https://community.fly.io/t/app-is-suspended-immediately-after-deploy/23862 "2025-02-12T20:44:11Z")

</div>

I was never able to pull it up, even after it said it deployed successfully.

---

## [Not possible to deploy with new bun version - Nuxt](https://community.fly.io/t/not-possible-to-deploy-with-new-bun-version-nuxt/23797)

<div class="topic-metadata">

**Author:** [@Recall45](https://community.fly.io/u/Recall45)\
**Replies:** 8\
**Last updated:** [February 11, 2025, 5:56pm UTC](https://community.fly.io/t/not-possible-to-deploy-with-new-bun-version-nuxt/23797 "2025-02-11T17:56:20Z")

</div>

So i experience some problems yesterday launching a nuxt application. This morning I tried again with a new application - the content of the application is the next: // app.vue \<template\> \<div\> This is a test exam…

---

## [Issue with creating web pixel for shopify remix app hosted on fly.io](https://community.fly.io/t/issue-with-creating-web-pixel-for-shopify-remix-app-hosted-on-fly-io/23751)

<div class="topic-metadata">

**Author:** [@exponent4\_jin](https://community.fly.io/u/exponent4_jin)\
**Replies:** 1\
**Last updated:** [February 8, 2025, 5:24pm UTC](https://community.fly.io/t/issue-with-creating-web-pixel-for-shopify-remix-app-hosted-on-fly-io/23751 "2025-02-08T17:24:38Z")

</div>

Hi everyone, I’m currently hosting shopify remix app via fly.io. I recently made the code update to add a web pixel extension. In the app.tsx, I added a function to call webPixelCreate GraghQL API call (webPixelCreate -…

---

## [package-lock.json not found for checksum calculation](https://community.fly.io/t/package-lock-json-not-found-for-checksum-calculation/23733)

<div class="topic-metadata">

**Author:** [@DavidGomes](https://community.fly.io/u/DavidGomes)\
**Replies:** 4\
**Last updated:** [February 7, 2025, 10:10am UTC](https://community.fly.io/t/package-lock-json-not-found-for-checksum-calculation/23733 "2025-02-07T10:10:21Z")

</div>

I see that Fly.io supports deploying Bun apps. However if no package-lock.json is present I get this error: Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache …

[Previous page](https://community.fly.io/c/javascript/29.md)

[Next page](https://community.fly.io/c/javascript/29.md?page=2)
