Category: node.js
-

Hosting a Remix App on a Shared Hosting (using cPanel, Phusion Passenger and LiteSpeed)
TL;DR: Short checklist for pros Figuring this out took me longer than I expected, and I was quite surprised that hosting remix apps is not a well-covered topic. Hosting a remix app on a shared hosting provider is even less covered. Backstory – I’m building a native app and a management portal and decided to…
-

A Prisma DB Entry is Missing a field (or it has the value of another field)
I have a remix.run project that uses Prisma and Sqlite for the DB. At a point, I got an entry from the DB, where one of the fields had the value of the other field. The other field had no value, whatsoever. Example: an entry with location and startTime, both strings: the location had a…
-
Updating an AzureFunction from Node 14
To update an Azure Function from Node JS 14 to 18LTS, you need to: Backstory Microsoft is deprecating support for Nodejs 14 LTS in Azure Functions, so I needed to update the ones that used it. I went on and tried to update the Node version from the Function App configuration, but the dropdown allowed…
-
AWS S3 and it’s informative errors – 404, “NoSuchUpload”
I’m continuing with my exploration in the AWS world 🙂 For the last couple of days, I have been occasionally receiving the weird error “NSuckUpload” when I try to either upload a part to an S3 Multipart upload or try to complete the upload with given UploadId. S3 Multipart Upload is the way you upload…
-
AWS Closes S3 Read Stream Unexpectedly
I’m continuing with my notes on transferring big files from and to AWS S3 with node.js If you are reading a file from a S3 bucket using a stream that you occasionally pause, mind that the read stream will be closed in 60 minutes. If you cannot handle the file in that period of time,…
-
Node.js Streams and why sometimes they don’t pause()
TL; DR: If you pipe your node.js streams, make sure you pause the last one in the chain. The longer story: We’re building a node.js application that ingests data from multiple data sources for a client of ours. Since they are quite big in size and in user base (we’re going to process data for…
-
Testing with Jest in a node and ReactJS monorepo (and getting rid of environment.teardown error)
Big number of the applications we develop have at least one ReactJS UI, that is held in one repo and an API, held in another. If we need to reuse some part of the code, we do so by moving it to another repository and adding it as a git submodule For our latest project…