NebulaServices / Nebula

a stunning and sleek web proxy with support for hundreds of popular sites.
https://docs.nebulaproxy.io/
274 stars 3.65k forks source link

SyntaxError: Unexpected End of JSON Input #88

Closed mooncake39 closed 1 year ago

mooncake39 commented 1 year ago

I'm not sure why this happens, but when I attempt to host on Gitpod, this happens: image

GreenyDEV commented 1 year ago

@cohenerickson Radon issue

mooncake39 commented 1 year ago

@GreenyDEV its not any site fails

mooncake39 commented 1 year ago

image

cohenerickson commented 1 year ago

Set your port visibility to public inside of gitpod.

mooncake39 commented 1 year ago

I have done that, it works, but not for Eaglercraft. Apparently, it does the "Nebula is loading your content," thing when you go from the eaglercraft.ru site and click "Launch" which does not happen on other proxies that work. A friend of mine told me it was a very small change that is super important, but I'm not sure what it is. Can anybody please help?

GreenyDEV commented 1 year ago

wait im not too sure what the problem is at this point? are you still getting the initial error?

mooncake39 commented 1 year ago

No, im not getting the initial error, but im getting this loading screen when im in eaglercraft.ru and i click 1.8.8, resent, and "launch". This loading page normally doesnt happen, but i know it is a small thing since my friend told me that it is small and very important and will make the proxy eagler-compatible. the proxy works with other sites i have tested but not eaglercraft.

The Loading page i dont normally get: image

mooncake39 commented 1 year ago

Nevermind, i have figured it out. Thanks for your help!

CodingCody-1 commented 1 year ago

Nevermind, i have figured it out. Thanks for your help!

What was the issue then? I seem to be having the same one.

GreenyDEV commented 1 year ago

I'm still really not sure

schooldev49 commented 1 year ago

The issue here is that the project is using a beta NodeJS feature (assert type json) which is only supported after NodeJS version v17.1.0. To fix this issue, please update NodeJS on your Gitpod server

Try looking here on how to update the NodeJS version on Gitpod https://github.com/gitpod-io/gitpod/issues/945

schooldev49 commented 1 year ago

Assert type: json is required on all repositories importing JSON modules after NodeJS v17.5.0, so it isn't really replacable.

CodingCody-1 commented 1 year ago

I might actually be having a different issue but when ever I try to load a site though my reverse proxy I get this: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data. However if I connect directly and bypass my reverse proxy I get this error: Cannot POST /. I am using the docker container to run it. I would think that would eliminate a issue with NodeJS, at least for me.

GreenyDEV commented 1 year ago

is this resolved?

CodingCody-1 commented 1 year ago

I haven't got it fixed but I think I am having a different issue.

Edit: I would close it, I can open a new issue if I ever get around to it. I have one open here that seems to be the same issue.

calcossmonkey commented 1 year ago

BRUH I HAVE THE SAME ISSUE SyntaxError: Unexpected token < in JSON at position 0 every time i run it no matter what proxy this could be my side due to district blocker but i think its not my side i even tried on my home computer running every proxy on node.js and terminal and still no

CodingCody-1 commented 1 year ago

I ended up fixing my issue. It was because I had password auth on in nginx. See here.

GreenyDEV commented 1 year ago

ah, nginx would've been a valuable piece of info