Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MESSY ERROR NOT FOUND #775

Closed
on1force opened this issue Aug 10, 2024 · 4 comments
Closed

MESSY ERROR NOT FOUND #775

on1force opened this issue Aug 10, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@on1force
Copy link

What version of Elysia is running?

1.1.5

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

I honestly confused how to reproduce this, because it's working fine on local, but when I deployed it on Render something is not found. the errors are as follows

*/var D1=jj,M1=Wj;var e2=Object.prototype.toString,s0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;var o1=Y1(r0(),1);class B0{j;W;$;constructor(j,W,$={}){this.name=j;this.jar=W;this.initial=$}get cookie(){if(!(this.name in this.jar))return this.initial;return this.jar[this.name]}set cookie(j){if(!(this.name in this.jar))this.jar[this.name]=this.initial;this.jar[this.name]=j}get value(){return this.cookie.value}set value(j){if(!(this.name in this.jar))this.jar[this.name]=this.initial;this.jar[this.name].value=j}get expires(){return this.cookie.expires}set expires(j){this.cookie.expires=j}get....

this is way longer than this.. got limited by (maximum is 65536 characters) on issue body.

the message is NOT_FOUND, but I don't know what.. all path seems to be correct. Maybe it's on Render end ?
p.s. I've built a semi-complex api endpoint with elysia and prisma

What is the expected behavior?

no errors

What do you see instead?

*/var D1=jj,M1=Wj;var e2=Object.prototype.toString,s0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;var o1=Y1(r0(),1);class B0{j;W;$;constructor(j,W,$={}){this.name=j;this.jar=W;this.initial=$}get cookie(){if(!(this.name in this.jar))return this.initial;return this.jar[this.name]}set cookie(j){if(!(this.name in this.jar))this.jar[this.name]=this.initial;this.jar[this.name]=j}get value(){return this.cookie.value}set value(j){if(!(this.name in this.jar))this.jar[this.name]=this.initial;this.jar[this.name].value=j}get expires(){return this.cookie.expires}set expires(j){this.cookie.expires=j}get....

MESSAGE: NOT_FOUND

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

yup

@on1force on1force added the bug Something isn't working label Aug 10, 2024
@hi-zp
Copy link

hi-zp commented Aug 12, 2024

same issue on centos. My project will release on this week, but this problem has left me with nothing to do...

@Ripwords
Copy link

Ripwords commented Aug 12, 2024

This looks like a minified version of some kind, previously on one of Elysia's plugin, we noticed that minifying the build with bun caused an error as well. You can refer to this for reference. Specifically when building, don't add --minify , instead do --minify-syntax --minify-whitespace this is because --minify includes --minify-identifiers causing us trouble.

I'm not 100% sure it's this error, but give it a go and see if that resolves your issue.

@on1force
Copy link
Author

on1force commented Aug 12, 2024

Hmm.. interesting, but on Render my start setting is set to bun index.ts and build to bun install, so I think it's not running the compiled version of the script. But again not really sure cause the build event state that

==> Uploading build...
==> Build uploaded in 8s
==> Build successful 🎉
==> Deploying...
==> Using Node version 20.15.1 (default)
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Using Bun version 1.1.0 (default)

not sure what they did on still using Node.

anyhow, it's not causing any breaking errors for the moment. So i think I'm just gonna let it be for now until I can find the cause

@on1force
Copy link
Author

found it, It was the default health check path made by renderer (healthz), make sure to include it in your path guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants