low-http-server icon indicating copy to clipboard operation
low-http-server copied to clipboard

Request throwing TypeError caused by slice

Open BradBot1 opened this issue 2 years ago • 1 comments

Hey, I've been trying to utilise low-http-server with 0http and I keep getting the same issues

The runetime is a node:16-alpine docker container utilising libc6-compat for uWebSocket.js

The error thrown by request.js L36 stating that a TypeError is caused as this.slice being undefined

I'm unsure of what is causing this and have temporarily removed it from my project and the issue has resolved itself

Thanks for any insight you can provide <3

BradBot1 avatar Feb 23 '23 20:02 BradBot1

i have already solved it by instead of

return this.slice(0, size)

using

return this

rafidzia avatar Apr 06 '23 07:04 rafidzia