Google App Engine试图访问开发数据 [英] Google App Engine trying to access dev data

查看:91
本文介绍了Google App Engine试图访问开发数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地计算机上运行我的应用程序,并使用远程API访问生产端的数据存储。一切都很好,直到我尝试在谷歌应用程序引擎启动器中添加第二个应用程序(我相信这是导致此问题的原因),因为我必须将我正在工作的内容与一些更新的代码合并在一起,并且想要在测试时进行测试沿。突然间,我甚至无法访问远程数据存储。我得到错误

 应用程序s〜buybottandrew无法访问应用程序开发人员〜buybottandrew的数据

我尝试清除本地数据存储,它允许我访问远程数据存储一次,然后问题再次出现。

我读了关于default_partition标志的建议,并且我也尝试过将其传递给不同的东西,包括任何东西和空字符串。

   -  default_partition = s〜buybottandrew 

无论参数如何,它都会给出相同的错误

  dev_appserver.py:error:无法识别的参数:--default_partition = s〜buybottandrew 

如果我删除所有远程api代码并部署它当我在生产服务器上测试它时,一切都完美无缺。我似乎无法缩小我生活中发生的事情。



任何输入都将不胜感激。

解决方案

- default_partition 已在新版SDK中移除。如果您想使用旧版SDK功能,您可以使用 old_dev_appserver.py --default_partition


I'm running my app on my local machine and using the remote API to access a datastore on my production side. Everything was working great until I tried adding a second app in google app engine launcher (I believe this is what caused the issue) because I had to merge what I was working on with some more up to date code and wanted to test as I went along. Suddenly I can't even access the remote datastore anymore. I get the error

app s~buybottandrew cannot access app dev~buybottandrew's data

I tried clearing the local datastore which allows me to access the remote datastore once, then the problem comes up again.

I read suggestions on the default_partition flag and I've tried passing that as well, with a muitiplicity of different things including nothing and an empty string.

--default_partition=s~buybottandrew

It gives me the same error no matter the argument

dev_appserver.py: error: unrecognized arguments: --default_partition=s~buybottandrew

If I remove all my remote api code and deploy it when I test it on the production server everything works perfectly. I can't seem to narrow down what is going on for the life of me.

Any input would be greatly appreciated.

解决方案

--default_partition was removed in the new SDK. If you want to use the legacy SDK function, you can use old_dev_appserver.py --default_partition

这篇关于Google App Engine试图访问开发数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆