我正在尝试按照Google Engine的Python教程部署一个基本的HelloWorld应用程序。我创建了一个helloworld.py文件和一个app.yaml文件,并复制了他们在线教程中的代码。我已注册Google App Engine并尝试了一切,但仍然在不断收到以下错误:
2015-08-19 19:22:08,006 ERROR appcfg.py:2438 An error occurred processing file '':
HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting.
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u'helloworld').
--- end server output ---
If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 1 ***
这是来自helloworld.py文件的代码:
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.write('Hello, Udacity!')
app = webapp2.WSGIApplication([
('/', MainPage),
], debug=True)
这是来自app.yaml文件的代码:
application: helloworld
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.app
权限是否存在问题,例如Google应用或我的笔记本电脑设置?我已经尝试了StackOverflow上所有的解决方案,所以如果有新的建议,将不胜感激!
<windisk>:\Users\<Username>\.appcfg_oauth2_tokens
。 - Roel