2

尝试从我的应用程序中提取文档时,我经常收到“无效请求 URI”InvalidEntryException。我的应用程序有一个夜间进程,它为许多域上的所有用户提取文档,有些晚上它工作得很好,其他人(在同一用户上)它失败并出现此错误。这不是特定于域的,因为我的应用程序在 50 多个域上运行。以下代码产生错误:

String docFeedUrl = "https://docs.google.com/feeds/" + USER_NAME + "/private/full/-/mine?xoauth_requestor_id=" + ADMIN_NAME;

    DocumentListFeed feed = null;
    int retry = 5;
    while (retry > 0) {
        try {
            feed = client.getFeed(new URL(docFeedUrl), DocumentListFeed.class);
            retry=0;
            } catch(Exception e){
            // handle exception
            }

我正在使用带有 Google Marketplace 密钥的 2-legged oauth 进行身份验证。有人有想法么?

4

0 回答 0