-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
403 Forbidden Error When Logging into Web Interface Despite Successful curl Command #85
Comments
Hey @Shasoosh the "Server URL" needs to be the URL of the autopulse instance, which in your case is |
Thanks, Dan. I tried that, but I'm still getting the same error. In fact, I get the same error no matter what server URL I enter. Btw, I see the errors only if I inspect the page and open the console. There's no actual error messege like I get on autopulseui.pages.dev |
I see, could you share how you are running autopulse/autopulse-ui? |
I use the same docker-compose to run everything. It's running on a synology nas.
|
Ah I see the issue, so the request to the instance doesn't happen in the browser, it happens in the UI container. Since the UI container doesn't have access to However the solution should be if you provide You could also set the UI to be |
Thanks. Trying to access http://autopulse:2875 as the server url will also result in 403. I've also tried changing the docker-compose to:
but that also gave me 403. Any other suggestions? It would be very helpful if additional logs could be integrated into the UI, as currently, there isn't much information to work with. Edit: If I go to the container console and run: I'm getting Which means that it is reachable, but for some reason it's not reacble from the UI. |
Hmm, that's odd mainly because curling the root path should return a json object like so: {"autopulse":"v1.1.0"} |
I can access the JSON response directly by visiting http://192.168.1.10:2875 in a browser. This suggests there's an issue with the communication between the containers. Strange. |
I think it's a 404 since you used As for the 403, I don't send a 403 anywhere, only Unauthorized which is a 401. Therefore I pushed 0656aaf which will log all requests in both frontend/backend, so perhaps try with that and see what comes up? |
Thanks Dan. You are right regarding the The UI logs however will show me this:
The [GET] lines are logged when I access the UI through the browser. However, after clicking the |
The issue is described here sveltejs/kit#6589 I can reproduce this when accessing the ui via ip (http://10.66.66.1:2880) connecting to autopulse at http://10.66.66.1:2875. Adding the
Svelte Docs: https://svelte.dev/docs/kit/adapter-node#Environment-variables-ORIGIN-PROTOCOL_HEADER-HOST_HEADER-and-PORT_HEADER |
Thanks @tam1m, you nailed it! |
Ah interesting, cheers @tam1m, I'll add this in the docker-compose example |
Hey,
Everything appears to be up and running, and the logs seem fine. When I run the following command:
curl -u 'admin:password' 'http://192.168.1.10:2875/manual?path=/Media/Videos/Movies/NameOfMovie/'
it works and returns the appropriate response.However, when I attempt to log in via the web interface at: http://192.168.1.10:2880/login
with the following credentials:
Server Url: https://192.168.1.10:2880/
u: admin
p: password
I receive a 403 Forbidden error.
Any ideas on what might be causing this issue?
Thanks.
My config file:
Logs:
The text was updated successfully, but these errors were encountered: