祖先查询在 api 资源管理器中产生 503 错误代码

Ancestor queries produce a 503 error code in api explorer

运行 带有祖先查询的以下端点函数 returns appspot api 资源管理器中的 503 代码错误,而相同的代码在 运行 上工作正常api 本地主机开发服务器上的资源管理器。

@ApiMethod(name = "getConferencesCreated",
           path = "getConferencesCreated",
           httpMethod = HttpMethod.POST
        )
        public List<Conference> getConferencesCreated(final User user) throws UnauthorizedException {
            if (user == null) {
                throw new UnauthorizedException("Authorization required");
            }
            String userId = user.getUserId();
            Key<Profile> userKey = Key.create(Profile.class, userId);
            return ofy().load().type(Conference.class)
                    .ancestor(userKey)
                    .order("name").list();
    }

现在可以正常使用了。问题是查询所需的索引尚未准备好,因此出现 503 错误。 运行 localhost 中的查询函数将在 google 的后端启动索引过程,您的函数将在准备好索引后正常工作。