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

Cannot login in Chrome or Firefox #1642

Closed
pazaan opened this issue Sep 29, 2023 · 2 comments
Closed

Cannot login in Chrome or Firefox #1642

pazaan opened this issue Sep 29, 2023 · 2 comments

Comments

@pazaan
Copy link

pazaan commented Sep 29, 2023

Sometimes when logging in, I see JSON in the browser after the Candid login phase:

{"message":"Put http://10.131.72.88:42733/c216c4dea1a3950636a767a86a18708f8f16b73410f1524edce7e80d058ee7deID: cannot unmarshal error response (status 403 Forbidden): unexpected content type text/html; want application/json; content: ERROR: The requested URL could not be retrieved; \u003c!-- /* * Copyright (C) 1996-2020 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ /* Stylesheet for Squid Error pages Adapted from design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License */ /* Page basics */ * { font-family: verdana, sans-serif; } html body { margin: 0; padding: 0; background: #efefef; font-size: 12px; color: #1e1e1e; } /* Page displayed title area */ #titles { margin-left: 15px; padding: 10px; padding-left: 100px; background: url('/squid-internal-static/icons/SN.png') no-repeat left; } /* initial title */ #titles h1 { color: #000000; } #titles h2 { color: #000000; } /* special event: FTP success page titles */ #titles ftpsuccess { background-color:#00ff00; width:100%; } /* Page displa ... [1400 bytes omitted]"}

(Maybe a proxy misconfiguration?)

If I keep mashing refresh, eventually I get the page:

You're logged in as pazaan

You can now close this window.

Closing the window does not grant access to the dashboard. Instead I see this in the error console:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://sentry.is.canonical.com/api/29/envelope/?sentry_key=5f679e274f34464194e9592a91ed65d4&sentry_version=7&sentry_client=sentry.javascript.browser%2F7.47.0. (Reason: CORS request did not succeed). Status code: (null).

macOS: 13.5.2 (22G91),
Chrome: Version 117.0.5938.132 (Official Build) (x86_64)
Firefox: 118.0.1 (64-bit)

@huwshimi
Copy link
Contributor

huwshimi commented Oct 4, 2023

Hi @pazaan, is this a local Juju controller that you have deployed with Candid (I see an ip address in the error)?

It looks like it's responding with an HTML response instead of JSON. When you get this response are you able to view the page that squid is responding with? That might help track down what error it is responding with.

@pazaan
Copy link
Author

pazaan commented Oct 5, 2023

Sorry, I didn't clarify. This was when logging into JAAS.AI. I'm no longer getting the error though, so maybe something was fixed?

@pazaan pazaan closed this as completed Oct 5, 2023
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

2 participants