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

FakeYouError: The FakeYouAPI is not available #2

Open
ftk789 opened this issue Dec 5, 2022 · 4 comments
Open

FakeYouError: The FakeYouAPI is not available #2

ftk789 opened this issue Dec 5, 2022 · 4 comments

Comments

@ftk789
Copy link

ftk789 commented Dec 5, 2022

You think using fakeyou.js in pure JS for HTML Would cause this? Cause it's made for NodeJS and maybe CORS headers would affect or something...

@DanLop618
Copy link

I'm actually using it on Node.js and this issue is affecting me too. Hope they can fix it soon

@ftk789
Copy link
Author

ftk789 commented Feb 25, 2023

When requesting with pure JS, It gives a CORS error, But the error handler on the wrapper just responds with an API error, So the issue with CORS, But in NodeJS, I should work perfectly fine, For me.

@mchernoff
Copy link

The error is being thrown from here.

You can see there's no try/catch around this async block so node gets a fatal error if something is thrown inside of __getData

@ftk789
Copy link
Author

ftk789 commented Apr 28, 2023

That's true, I guess the node version can define if the error is there or not, For me, I can use the npm package just fine, With no changes to the actual code structure, Let me know if you're still facing this problem maybe I could help in any shape or form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants