0

我正在尝试使用 Google App Engine Remote API 从我的开发服务器连接到生产数据存储。似乎第一个请求成功了,并且我确实连接到了生产数据存储,但是在后续请求中它没有正确连接,并且我收到了以下消息:

remote API is already installed

这是我用来连接远程 API 的代码:

try {
    RemoteApiOptions options = new RemoteApiOptions()
            .server("xxxxx.appspot.com", 80)
            .useServiceAccountCredential("xxxxx@appspot.gserviceaccount.com", 
                                         "WEB-INF/xxxxxx-xxxxxx.p12");
        RemoteApiInstaller installer = new RemoteApiInstaller();
        installer.install(options);
    } catch (Exception e) {
        System.out.println(e.getMessage());
    }

不确定它是否相关,但我使用 objectify 与数据存储进行交互

4

0 回答 0