0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Expo + React Native】「There was a problem running the requested app. HTTP response error 404: The endpoint 9vlj6fs-anonymous-8081.exp.direct is offline. ERR_NGROK_3200」の解決方法

0
Posted at

はじめに

Expo + React Nativeでアプリ開発をしていたところ、エラーが出て実機での確認ができませんでした。

問題

スマホに表示されたエラー

There was a problem running the requested app.
HTTP response error 404: The endpoint 9vlj6fs-anonymous-8081.exp.direct is offline.

ERR_NGROK_3200

npx expo start で開発サーバーを起動し、スマホのExpo Goアプリで読み込もうとしても、PCとスマホが同じネットワークに接続されていないと接続できないようです。
PCはフリーWi-Fi、スマホはモバイル回線でやっていたところ、このエラーが発生しました。

解決方法

--tunnel オプションを付けて起動する。

npx expo start --tunnel

参考文献

おわりに

コードじゃないところのエラーは大変。
ngrokというものが使われているようなので、調べてみます。ネットワークよくわからない、、、

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?