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

Proxy path enforcement /api/json #195

Closed
skgupta507 opened this issue Apr 17, 2024 · 11 comments
Closed

Proxy path enforcement /api/json #195

skgupta507 opened this issue Apr 17, 2024 · 11 comments
Labels
bug Something isn't working proxy Proxy issue

Comments

@skgupta507
Copy link

hello @akionii @trying559 i hosted an instance of the site but i ran into an issue after deploying it
it says ERROR: An unexpected error occurred after watching the tutorial this was not fixed could u help me with this issue.
image

@trying559
Copy link
Contributor

trying559 commented Apr 17, 2024

Hi, It seems the CORS proxy provided in the .env file may be blocked in certain countries since your deployment works on my end.
image

Consider using an alternative CORS proxy service accessible from your deployment location to resolve the issue.

@skgupta507
Copy link
Author

hi @trying559 sorry for disturbing you but i tried 7 other proxy services it is working fine on other projects but even after deplying with those the issue doesnot seem to work. what else can i do to resolve this issue iam from india b the way if it helps. to pinpoint a solution.

@techroy23
Copy link
Contributor

Can you open F12 (console log) and check how the URL is being queried since some cors may have different URI SCHEME.

@skgupta507
Copy link
Author

hey @techroy23 iam currently using this proxy [https://animedexproxy.sunilk98850.workers.dev/]
after opening the console log this is the error i found. screenshot attached below.
image

@techroy23
Copy link
Contributor

Similar to #170.

@akionii akionii added bug Something isn't working config Settings configuration env Environment variables/configurations proxy Proxy issue and removed config Settings configuration env Environment variables/configurations labels Apr 20, 2024
@akionii akionii changed the title Error After Site Deployment Proxy path enforcement /api/json Apr 20, 2024
@akionii
Copy link
Collaborator

akionii commented Apr 20, 2024

Hey there!

I've decided to reopen issue #170 since it's been catching the eye of some newcomers on the project. So, @skgupta507, I did a bit of digging into the proxy you're using (https://animedexproxy.sunilk98850.workers.dev/), and here's what I found:

Cors Proxy Is Working

Usage: https://proxy.techzbots1.workers.dev/?u=https://example.com

Looks like the issue isn't about the proxies getting blocked, but rather, we're forcing a /api/json?url=... path instead of the /?u=... that your proxy.techzbots1.workers.dev worker proxy requires. This could happen with any proxy.

So, I'm keeping this issue open as well, since I just noticed this problem with the proxy path enforcement.

@akionii akionii pinned this issue Apr 20, 2024
@skgupta507
Copy link
Author

Hi @akionii so do we need to change something in the proxy code or ur going to provide us with some other solution like modifying the projects code.

@akionii
Copy link
Collaborator

akionii commented Apr 20, 2024

Hey @skgupta507, just hang in there for a bit. We're on it, we've found a ton of ways to fix it. But alongside that, we've got a bunch of other updates and stuff coming too. So right now we're weighing everything for convenience, performance, and speed. We'll keep you posted once it's sorted. Thanks for your patience!

@techroy23
Copy link
Contributor

@skgupta507 You may test the current build now. I got it working without using any corsproxy. let us know if you encounter any errors.

@anixplay9
Copy link

Screenshot (84)

@anixplay9
Copy link

any one have solution for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working proxy Proxy issue
Projects
Status: Done
Development

No branches or pull requests

5 participants