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

fix(mobile): .well-known usage #16577

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Conversation

waclaw66
Copy link
Contributor

@waclaw66 waclaw66 commented Mar 4, 2025

Fixes #16531 caused by #3279.
Custom /.well-known/immich API endpoint is now respected again.

Uri.parse("$baseUrl/.well-known/immich"),
headers: headers,
)
.timeout(const Duration(seconds: 5));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the addition of the timeout here, for a user this could just mean a failure when they have bad network conditions, where waiting a few more seconds might let them connect when connectivity is restored. What was your reasoning for adding this timeout? Aside from this, looks great, this has been a bug for a long time 😅

Copy link
Contributor Author

@waclaw66 waclaw66 Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you make a mistake and enter wrong address (e.g. google.com:81), you are waiting until the timeout (60sec?) for the next try. That's the reason for shorter timeout.
In case of bad network condition, it fails anyway on /api/server/ping.

@zackpollard zackpollard requested a review from alextran1502 March 4, 2025 12:53

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@alextran1502 alextran1502 merged commit 8b43066 into immich-app:main Mar 5, 2025
38 checks passed
zackpollard pushed a commit that referenced this pull request Mar 5, 2025
fix: .well-known

Co-authored-by: Alex <alex.tran1502@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.well-known/immich is not respected
5 participants