expo icon indicating copy to clipboard operation
expo copied to clipboard

Network timeout error occured even if executing "expo start --offline" with expo "46.0.*"

Open LyunKi opened this issue 3 years ago • 7 comments

Summary

When I started my expo project with the latest version 46.0.0, I got a network error. I thought my proxy settings caused it, so I tried to use offline mode by the command expo start --offline, however there still a network error happened.

image

And then I tried to fall back to the 45.0.0 version, it worked as I expected.

What platform(s) does this occur on?

Web

SDK Version

46.0.0

Environment

expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.19044 Binaries: Node: 14.19.1 - D:\ly\softwares\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Local\pnpm\yarn.CMD npm: 6.14.16 - D:\ly\softwares\nodejs\npm.CMD npmPackages: react-native-web: ~0.18.7 => 0.18.7 Expo Workflow: managed

Minimal reproducible example

Just any project created by "expo init"

LyunKi avatar Aug 31 '22 03:08 LyunKi

@LyunKi Hi! Can you confirm if you still experience the issue after upgrading to the latest version of the Expo SDK (run npx expo upgrade and accept all prompts). I saw this intermittently on some previous versions, but not the latest.

Also, if you still experience the issue after that, please run npx expo-env-info again and update your issue accordingly. It does not list an Expo or React Native version, which seems unexpected. Thanks!

keith-kurak avatar Aug 31 '22 18:08 keith-kurak

@LyunKi Hi! Can you confirm if you still experience the issue after upgrading to the latest version of the Expo SDK (run npx expo upgrade and accept all prompts). I saw this intermittently on some previous versions, but not the latest.

Also, if you still experience the issue after that, please run npx expo-env-info again and update your issue accordingly. It does not list an Expo or React Native version, which seems unexpected. Thanks!

I update my expo to 46.0.9 and recreated a new project by "pnpm create expo-app -t expo-template-blank-typescript", then I change the start command to expo start --offline but still failed.

image

"FetchError: network timeout at: https://api.expo.dev/v2/versions/latest" image

env-info: image

LyunKi avatar Sep 01 '22 02:09 LyunKi

hey can you just tell me how you fall back to previous version and resolve the error cause i am facing same help me!

kantoash avatar Sep 11 '22 21:09 kantoash

hey can you just tell me how you fall back to previous version and resolve the error cause i am facing same help me!

Just use the previous expo SDK , such as 45.0.0

LyunKi avatar Sep 19 '22 09:09 LyunKi

Thank you for filing this issue! This comment acknowledges we believe this may be a bug and there’s enough information to investigate it. However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

expo-bot avatar Sep 19 '22 15:09 expo-bot

Thanks for the additional info. Does this happen all the time for you, or is it intermittent? I have noticed it on a few systems on the latest version at various times. It seems like it does not happen if I run npx expo start when I'm online, and then later run npx expo start --offline after disabling the network. Any additional context you can add about when it does or does not happen for you is much appreciated!

keith-kurak avatar Sep 19 '22 16:09 keith-kurak

Thanks for the additional info. Does this happen all the time for you, or is it intermittent? I have noticed it on a few systems on the latest version at various times. It seems like it does not happen if I run npx expo start when I'm online, and then later run npx expo start --offline after disabling the network. Any additional context you can add about when it does or does not happen for you is much appreciated!

Thank you for guiding me to this issue and sorry I didn't find it, for me npx expo start --offline fails if I run it both when I'm offline or online, with:

FetchError: network timeout at: https://api.expo.dev/v2/versions/latest

When I'm online I can access https://api.expo.dev/v2/versions/latest in the browser just fine, this is surely a bug.

Stevemoretz avatar Sep 19 '22 16:09 Stevemoretz