Comments (6)
I think they forgot to update the docs.. it was a bad idea to have it always 1 because you are usually using that for cache forever in the scripts or stylesheets as a query argument to make sure you're getting the updated one..
but it also not showing the current date or anything but something that it looks like random so in general it's not a problem for the dev environment..
in the issue #63 Jรถrn also wanted to fix it but it's not worth it if you ask me..
from gae-init.
Filled upstream as documentation issue; see https://code.google.com/p/googleappengine/issues/detail?id=10601
For gae-init
, the problem seems to be that the random (?) number provided by the current implementation might not fit in the long
that the CURRENT_VERSION_TIMESTAMP = long(CURRENT_VERSION_ID.split('.')[1]) >> 28
assignment is using; thus causing sometimes (I think... didn't test sufficiently yet) an exception which might leave some (later) assignments undefined... I'm not sure if there are any major negative outcomes (read: crashes) due to this, but it does provide some weird output on the development server... which might put some wannabee users off (because... if it doesn't work locally, why risk deploying?).
from gae-init.
The long
in Python can be pretty long and basically there is no limit on what it can fit, the only problem with the local version is that the date is not accurate and it shows most of the time the future as addressed in the #63 as far as I can tell.. other than that I don't think that this can cause any other problems..
as for the misleading date or something.. we could probably document it..
from gae-init.
Should have caught it before... the error is a "timestamp out of range for platform time_t"
from gae-init.
When there is no exception caught I'm seeing (as admin) 1985, 2004, 2010, 2016 (future), 2003, 1972, etc based timestamps on the hello page.
When there has been an exception, it shows "a few seconds ago" and "Invalid date" on hoover over, looking at page source, the datetime=""
on the time tag.
By dumping some more config
values in the footer, it is also clear that when there is an exception that the new config.APPLICATION_ID
is skipped and thus blank. Now, this can be worked around (just change the order), but I do like (part of) the @joernhees approach better:
# ... move the SERVER_SOFTWARE, DEVELOPMENT and friends stuff before the try
try:
...
CURRENT_VERSION_NAME = CURRENT_VERSION_ID.split('.')[0]
CURRENT_VERSION_TIMESTAMP = long(CURRENT_VERSION_ID.split('.')[1]) >> 28
if DEVELOPMENT:
CURRENT_VERSION_TIMESTAMP = long(datetime.now())
CURRENT_VERSION_DATE = datetime.fromtimestamp(CURRENT_VERSION_TIMESTAMP)
...
from gae-init.
Hmm, above snippet doesn't cut it...
from gae-init.
Related Issues (20)
- Google login is not working (not GAE) HOT 1
- AttributeError: 'module' object has no attribute 'get_dbs'
- gulp-help is a blocker to upgrading to gulp4 HOT 2
- Yarn doesn't work with Node v12 HOT 3
- Use of memcache is a blocker to Python 3.7 migration HOT 5
- Trouble running gulp for local testing with grpcio in app.yaml HOT 4
- Can't import numpy HOT 7
- Error with virtualenv unrecognized argument during yarn install
- Requirement for email_validator on local test run not satisfied? HOT 4
- Race condition in deploy vs creation of lib.zip HOT 2
- Inconsistencies in gulpfile task descriptions HOT 3
- Add Twitch Login
- Upgrade to Font Awesome 5
- plan to update to python 3? HOT 1
- Moment.js is a legacy project HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Import error with latest changes HOT 1
- Travis not running
- Improve cleanup in development HOT 1
- gae-init.appspot.com is down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gae-init.