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 url used for checking offline status #627

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

spec.endpoint is actually set to https://HOSTNAME/v1 which can't be used to check the online status. However, sdk.url is https://appwrite.io which can be used to check for internet connectivity.

Test Plan

Manual

Related PRs and Issues

Previous PR:

Have you read the Contributing Guidelines on issues?

Yes

spec.endpoint is actually set to https://HOSTNAME/v1 which can't be used
to check the online status. However, sdk.url is https://appwrite.io
which can be used to check for internet connectivity.
@@ -183,7 +183,7 @@ class ClientOfflineMixin {

Future<void> checkOnlineStatus() async {
try {
final url = Uri.parse('{{spec.endpoint}}/version');
final url = Uri.parse('{{sdk.url}}/version');
Copy link
Member

Choose a reason for hiding this comment

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

but there is this /version ? will this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lohanidamodar lohanidamodar merged commit 6a3e452 into master Mar 14, 2023
@stnguyen90 stnguyen90 deleted the fix-sdk-url branch March 14, 2023 16:52
stnguyen90 added a commit that referenced this pull request Mar 23, 2023
This reverts commit 6a3e452, reversing
changes made to fc4918a.
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

Successfully merging this pull request may close these issues.

3 participants