Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading to AppEngine Flexible Beta generates a redirect (307) for dispatch rules

Updated Question: The new flexible beta environment generates a redirect (that too a 307) on a dispatch rule, while the old flexible env did not.

This breaks websites like mine, because the redirected domain name is different (includes version identifier, its a fully qualified one) and hence AJAX requests from my websites fail (cross domain browser restriction). This used to not be a redirect in the past. Google dev's can you please assist here?

HTTP/1.1 307 OK
Content-Length: 180
Content-Type: text/html
Date: Thu, 17 Nov 2016 19:01:53 GMT
Location: https://20161118t002457-dot-...
Server: Google Frontend
Via: 1.1 google

<html>
<head><title>307 Temporary Redirect</title></head>
<body bgcolor="white">
<center><h1>307 Temporary Redirect</h1></center>
<hr><center>nginx</center>
</body>
</html>
like image 507
goldenv Avatar asked Jan 17 '26 23:01

goldenv


2 Answers

Clarifying the issue:

This happens when using the new parameter env: flex in your app.yaml instead of the now deprecated parameter vm: true

A quick fix for now (December/2016) is changing the domain from appspot.com to appspot-preview.com.

According to the GCP Team, they will continue to provide both domains when GAE becomes general available

like image 145
Caio Tomazelli Avatar answered Jan 19 '26 11:01

Caio Tomazelli


Apparently, this is a known issue, phew. See: https://groups.google.com/forum/#!topic/google-appengine/-0EmVFi22Vc

Not sure, where its tracked, but I am happy Google is aware of it.

like image 23
goldenv Avatar answered Jan 19 '26 13:01

goldenv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!