mozilla / fxa

Monorepo for Mozilla Accounts (formerly Firefox Accounts)
https://mozilla.github.io/ecosystem-platform/
Mozilla Public License 2.0
590 stars 212 forks source link

firefox ios failed to connect with self hosted servers #12250

Closed clsx524 closed 2 years ago

clsx524 commented 2 years ago

Hi all, I am able to setup all necessary docker containers for auth, profile and content and able to log in from firefox desktop. The syncing seems working. However when I tried to log in on IOS, it failed with following errors (I can append all logs if that’s needed)

2022-03-26 09:41:00.419 [Warning] [Profile.swift:311] init(localName:syncDelegate:clear:) > [RUST][fxa_client::internal::error] Authentication error: Error(No cached token for scope https://identity.mozilla.com/apps/oldsync)
2022-03-26 09:41:00.942 [Error] [Profile.swift:314] init(localName:syncDelegate:clear:) > [RUST][places::error] URL parse error: relative URL without a base
2022-03-26 09:41:01.086 [Error] [Profile.swift:314] init(localName:syncDelegate:clear:) > [RUST][places::error] URL parse error: relative URL without a base
2022-03-26 09:41:03.577 [Error] [Profile.swift:314] init(localName:syncDelegate:clear:) > [RUST][places::error] URL parse error: relative URL without a base
2022-03-26 09:41:05.586 [Info] [SwiftData.swift:617] prepareCleartext() > Enabling WAL mode.
2022-03-26 09:41:05.590 [Debug] [SwiftData.swift:724] prepareSchema() > Schema READINGLIST already exists at version 1. Skipping additional schema preparation.
2022-03-26 09:41:05.590 [Debug] [SwiftData.swift:496] init(filename:flags:schema:files:) > Database successfully created or updated.
2022-03-26 09:41:05.685 [Debug] [SwiftData.swift:710] prepareSchema() > Skipping schema (BROWSER) preparation for read-only connection.
2022-03-26 09:41:05.685 [Debug] [SwiftData.swift:496] init(filename:flags:schema:files:) > Database successfully created or updated.
2022-03-26 09:41:16.767 [Warning] [Profile.swift:311] init(localName:syncDelegate:clear:) > [RUST][fxa_client::internal::error] Authentication error: Error(No cached token for scope profile)
2022-03-26 09:41:16.832 [Warning] [Profile.swift:311] init(localName:syncDelegate:clear:) > [RUST][fxa_client::internal::error] Network error: Error(Network error: [no-sentry] Network error: error sending request for url (https://<my-accounts-server-domain>/.well-known/fxa-client-configuration): error trying to connect: error code -9836)

I can verify the url above (https:///.well-known/fxa-client-configuration) can return valid JSON data if I typed them into the browser directly.

Does anyone know the possible reason for the error above, or which possible setting I have missed for IOS?

┆Issue is synchronized with this Jira Task

cknowles-admin commented 2 years ago

FxA is no longer synchronizing all issues between Jira and Github. We are closing open issues and will selectively synchronize in the future.