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

Absolute URI not allowed if server is not a proxy. #6

Open
Mte90 opened this issue Mar 7, 2022 · 7 comments
Open

Absolute URI not allowed if server is not a proxy. #6

Mte90 opened this issue Mar 7, 2022 · 7 comments

Comments

@Mte90
Copy link

Mte90 commented Mar 7, 2022

I am getting this error in a popup opened after sending a link with the method 3.

Absolute URI not allowed if server is not a proxy.

Also I disabled the usr/psw login in my pyload instance and I see that the port is the same for the webui for the API, maybe something is changed from the last changes on this project?

@GammaC0de
Copy link
Member

GammaC0de commented Aug 3, 2022

Please check if it works with the recent changes

Also, make sure you are not running the web interface in development mode.

@Mte90
Copy link
Author

Mte90 commented Aug 4, 2022

Updated the bookmarklet and pyload-ng and the error is still there. After picking the url, press to send to pyload blue button in the view, there is the request to allow the connection from https to http the new window is opened and there is that text and it is automatically closed.
Maybe the new window shouldn't get closed if there is this error to help debug it. It is so flash that I am not sure about the url as example.

My changes on the bookmarklet are at the last line as written in the readme:

("http://192.168.10.12:3333/","username","password",1);

As my instance doesn't use user/psw.

@Mte90
Copy link
Author

Mte90 commented Aug 4, 2022

Also I patched the file with pyload/pyload@0628198 but my guess doesn't work as user/password in my bookmarklet aren't empty but the error is still there if I set that values as empty.

@GammaC0de
Copy link
Member

Maybe the new window shouldn't get closed if there is this error to help debug it

Is is not possible because:
To overcome CORS, the bookmarklet sends the POST request via a new window,
The result is then displayed on that window, you cannot check what was the result.

So, because of that you cannot check the result, closing the window is done asynchronously on timeout.

For debugging proposes, you could use pyload_bookmarklet.js instead of pyload_bookmarklet.min.js and comment out lines 265-267.

@Mte90
Copy link
Author

Mte90 commented Aug 22, 2022

Thanks now I got an error Forbidden on mode 1 on instance without password.

I have the latest commits changes pyload/pyload@0628198 on this file

@GammaC0de
Copy link
Member

I tried to reproduce your issue but I cannot.

Can you specify your configuration?
is it remote pyload or maybe on your local computer?

@Mte90
Copy link
Author

Mte90 commented Aug 23, 2022

It is a remote pyload in my LAN and after some search I see that the forbidden error is generated on this line https://github.com/pyload/pyload/blob/c23da07ba14fdc3b8d2e4c6f717f4837840aba24/src/pyload/webui/app/blueprints/cnl_blueprint.py#L34

Infact removing those lines let everything to work and the package was added.

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

No branches or pull requests

2 participants