我现在使用Android Studio几年来在Google App Engine上更新一个小型Java应用程序。我现在正在使用AS 3.1.2。
偶尔我会做更新。昨天(2018-05-27 12:00 CEST)部署仍然运行良好。今天(2018-05-28 9:00 CEST)我更改了几行Java代码,并在appengine-web.xml
升级了<version>...</version>
。今天我无法部署。构建工作,本地运行应用程序运行,但是当我部署到Google App Engine时,我看到以下故障4次,然后部署被取消:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/deploy?app_id=XXX&version=49-storageGap&
400 Bad Request
<ApiError 400, Message: "The request is invalid.">
(XXX不是应用程序的名称,我以为我把它藏在这里,名字很好)。
没有帮助:
答案 0 :(得分:2)
每20个月我就会遇到同样的问题:版本中没有大写字母。对不起大家。重命名为tweet_list = [dict(v['features'], **{'user_id': v['user_id']})
for v in json_array['data']
if 'features' in v.keys() and 'user_id' in v.keys()]
# tweet_list outputs:
[{'geo_type': 'User location',
'id': 2158092352,
'location': 'West Springfield, MA',
'name': 'Jim Tatro',
'primary_geo': 'West Springfield, MA',
'screen_name': 'JtTatro',
'tweets': 1,
'user_id': 2158092352},
{'geo_type': 'User location',
'id': 996917180980744193,
'location': 'Tijuana, Baja California',
'name': 'yuitzi contreras',
'primary_geo': 'Tijuana, Baja California',
'screen_name': 'YuitziContreras',
'tweets': 1,
'user_id': 996917180980744193}]
# features outputs
[{'geo_type': 'User location',
'id': 2158092352,
'location': 'West Springfield, MA',
'name': 'Jim Tatro',
'primary_geo': 'West Springfield, MA',
'screen_name': 'JtTatro',
'tweets': 1},
{'geo_type': 'User location',
'id': 996917180980744193,
'location': 'Tijuana, Baja California',
'name': 'yuitzi contreras',
'primary_geo': 'Tijuana, Baja California',
'screen_name': 'YuitziContreras',
'tweets': 1}]
修复了所有内容。