You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
I'm using the command : expo start --tunnel to expose the web page to scan the QRCODE behind nginx.
Everything is working fine in localhost:19002, but behind NGINX using a different hostname (expo.mycompany.com) the ws connection (ws://expo.mycompany.com:19002/20ldcw_MHt3hl6t_ahe74XzAc1W5G7u40OpSN_Bi0qE/graphql) returns a 401 Unauthorized
I tried also putting in my /etc/hosts
127.0.0.1 myfakehost
and using myfakehost:19002 instead of localhost:19002 in local I get the same error 401.
that is something related to the exposure of the service on the tunnel with a different hostname.
To get a black page with the 401 error I used this approach :
I'm using the command : expo start --tunnel to expose the web page to scan the QRCODE behind nginx.
Everything is working fine in localhost:19002, but behind NGINX using a different hostname (expo.mycompany.com) the ws connection (ws://expo.mycompany.com:19002/20ldcw_MHt3hl6t_ahe74XzAc1W5G7u40OpSN_Bi0qE/graphql) returns a 401 Unauthorized
I tried also putting in my /etc/hosts
127.0.0.1 myfakehost
and using myfakehost:19002 instead of localhost:19002 in local I get the same error 401.
that is something related to the exposure of the service on the tunnel with a different hostname.
To get a black page with the 401 error I used this approach :
Environment
ENV EXPO_DEVTOOLS_LISTEN_ADDRESS=0.0.0.0
ENV REACT_NATIVE_PACKAGER_HOSTNAME=expo.mycompany.com
expo diagnostics
Expo CLI 3.11.7 environment info:
System:
OS: Linux 4.14 Debian GNU/Linux 9 (stretch) 9 (stretch)
Shell: 4.4.12 - /bin/bash
Binaries:
Node: 10.18.1 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.4 - /usr/local/bin/npm
npmGlobalPackages:
expo-cli: 3.11.7
nginx version
nginx version: nginx/1.17.8
nginx.conf
The text was updated successfully, but these errors were encountered: