Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
69 views

Below is the error I console from my client side. { "data": null, "error": { "message": "ReadableStream has already been used" }, "headers"...
tedeeee's user avatar
  • 57
1 vote
0 answers
65 views

user.routes.ts: import { Elysia } from "elysia"; import { authMiddleware } from "../middleware/isAuthenticated"; export const usersRoutes = new Elysia({ prefix: "/users" ...
meek's user avatar
  • 49
1 vote
0 answers
190 views

So a few weeks ago, I ported my app that uses NodeJS to Bun (and also moved from Express to Elysia). However, it seems that it's heavily memory leaking when there is a lot of traffic going on. memory ...
M336's user avatar
  • 11
1 vote
1 answer
376 views

I'm currently working on a project using Elysia, and I'm trying to define a recursive schema for product variants. My goal is to allow each variant to have children, which can also be variants ...
Moe24's user avatar
  • 13
-1 votes
1 answer
1k views

I'm new to elysiajs and trying to upload files using multer and elysia, but its not working for me i tried to add a beforehandle and afterhandle but it's still not working , ..............................
omarghandour's user avatar
0 votes
1 answer
62 views

I have backend and frontend projects. I want to copy backend types to frontend. On backend I have const app = SomeFunctionThatGeneratesSomething(); export type App = typeof app; I want to save App to ...
nerkn's user avatar
  • 1,976
2 votes
1 answer
242 views

I have a verification check function async verifyWithOTP(phone: string, otp: string) { console.log({ phone, otp }); try { console.log("awaiting verification"); ...
Tushar's user avatar
  • 1,336
3 votes
1 answer
713 views

I want to create a schema with Elysia's Typebox so that a different error message appears for each check. I want to do something similar to what Joi does. Joi: import joi from 'joi'; export const ...
VitorPL's user avatar
  • 31
3 votes
2 answers
4k views

I'm trying to build a web backend for a chat app using the runtime Bun, the library Elysia to write a REST API and the library socket.io to deliver the messages in realtime. I went through the ...
MrDaves's user avatar
  • 66
0 votes
2 answers
2k views

The problem is that i went to fetch cookies from my backend thats on a different origin than my front end. And i cant get cors to work with me. I am using bun with elysia. This is an example i made to ...
Theo Zibell's user avatar
2 votes
0 answers
806 views

I've created a package with Bun and mongoose in TS, to import that package I've followed the suggested configuration from "Crafting a Typescript NPM package with Bun - Function Agents", ...
Ουιλιαμ Αρκευα's user avatar
1 vote
1 answer
2k views

I am trying to change the response body to a POST route in Elysia, but it appears that CTX only has the request and I can't find anything on modifying the response. My use case is I want to give the ...
theRealestAEP's user avatar
1 vote
1 answer
2k views

Question: I'm encountering an issue with Prisma where I get the error message "InvalidDatasourceError: Error validating datasource db: the URL must start with the protocol prisma://" when ...
Gazkezy's user avatar
  • 13
3 votes
1 answer
6k views

I'm having difficulty with type definitions on my Bun server using ElysiaJS, specifically with the body property within the handler function. I've created two models, a User and a Character model, and ...
William Rich's user avatar
1 vote
0 answers
726 views

I'm attempting to change my routing based on header values. For example, if an incoming request contains an accept header of application/json, I want to call one set of routes to return JSON data, but ...
death_au's user avatar
  • 1,302
3 votes
1 answer
786 views

I'm trying to find something like this router.get('/', async (ctx, next) => { const clientIP = ctx.request.ip; ctx.body = `Hello World ${clientIP}`; }) app.onRequest((context) => { const ...
rippiten23's user avatar
1 vote
4 answers
4k views

I would like to validate response of request in silent (for example only log to console) because I don't want to interrupt user with this information (also response schema is used in elysiajs swagger ...
l2ysho's user avatar
  • 3,113