-
Notifications
You must be signed in to change notification settings - Fork 36
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
Testing locally: Expected environment variable GAE_SERVICE to be set! #87
Comments
I was getting this error reliably when my workstation was connected to the Internet via my cell phone hotspot Wifi, and I traced it to: appengine/lib/src/appengine_internal.dart Line 335 in 7af9d72
That HTTP GET was resulting in the following content (line breaks and spaces added by me): <html>
<head>
<meta http-equiv="refresh" content="0;url=http://lookup.t-mobile.com/search/?q=http://metadata.google.internal/computeMetadata/v1/instance/zone&t=0"/>
</head>
<body>
<script>window.location="http://lookup.t-mobile.com/search/?q="+escape(window.location)+"&r="+escape(document.referrer)+"&t=0";</script>
</body>
</html> So it seems that an HTTP proxy can mess with the logic that is used to determine if we're running in a development environment or production environment... |
Under normal circumstances in a dev environment, a appengine/lib/src/appengine_internal.dart Lines 347 to 349 in 7af9d72
So the issue (at least in my case) was that a proxy caused a connection that otherwise would not have been able to be established to succeed, and to return an html page rendered by the proxy. Maybe the HTTP 200 case should check for |
After following the instructions found in the
README.md
(https://github.com/dart-lang/appengine#running-the-app-locally), I get the following error using docker anddart ./bin/server.dart
.Error
Dart
Docker
Error
The text was updated successfully, but these errors were encountered: