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: 403 forbidden in some regions #2599

Open
elitemahdi opened this issue Nov 2, 2024 · 2 comments
Open

fix: 403 forbidden in some regions #2599

elitemahdi opened this issue Nov 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@elitemahdi
Copy link

5f7c4a2c-47e7-4fae-96c7-f35fc0f8f32d

403 forbidden in some region like Iran

From some regions in middle east like Iran we get 403 forbidden error, and as we found in shorebird docs: https://docs.shorebird.dev/faq/#can-i-use-shorebird-in-my-country, shorebird are available in all regions, but it's not available in Iran.
also the shorebird console and cli not available for developers and they faced same problem 403 forbidden.

we added some doc for this problem
shorebird.pdf

to reproduce this problem, you might find and use VPN with Iran IP and check the result.

we guess the problem is because of google cloud services are not available in all regions, so shorebird can't reach to that regions.

this is what clients get while shorebird trying to connect servers and check for available update patch:

10-20 11:20:49.889 20624 20624 I flutter :
[INFO:flutter/shell/common/shorebird/shorebird.cc(161)] Shorebird updater: no active
patch.
10-20 11:20:49.889 20624 20624 I flutter : updater::updater: Reporting launch start.
10-20 11:20:49.889 20624 20624 I flutter :
[INFO:flutter/shell/common/shorebird/shorebird.cc(184)] Starting Shorebird update
10-20 11:20:49.895 20624 20657 I flutter : updater::network: Sending patch check request:
PatchCheckRequest { app_id: "5f7c4a2c-47e7-4fae-96c7-f35fc0f8f32d", channel:
"stable", release_version: "1.1.2+21", platform: "android", arch: "aarch64" }
10-20 11:20:49.907 20624 20624 I flutter : updater::updater: Reporting successful launch.
10-20 11:20:50.371 20624 20657 E flutter : updater::updater: Update failed: Request failed
with status: 403 Forbidden
10-20 11:20:50.371 20624 20657 I flutter : updater::updater: Update thread finished with
status: Update had error

@elitemahdi elitemahdi added the bug Something isn't working label Nov 2, 2024
@hosseinshaya
Copy link

Same problem here, fix it please (from Iran)

@felangel
Copy link
Contributor

felangel commented Nov 2, 2024

This looks like a duplicate of #2483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants