代码之家  ›  专栏  ›  技术社区  ›  codeye

OneNote Api-copyToNotebook挂起

  •  1
  • codeye  · 技术社区  · 8 年前

    OneNote Api最近开始挂起此呼叫:

    https://www.onenote.com/api/beta/me/notes/sections/{id}/copyToNotebook
    

    {
        "@odata.context": "https://www.onenote.com/api/beta/$metadata#me/notes/operations/$entity",
        "id": "copy-645387ea-eb06-4a0d-bcde-09d276e4e3d6fe0e14f6-3e53-421e-aa6c-8adcc998a4dd",
        "status": "not started",
        "createdDateTime": "2017-10-04T16:57:45.9599909Z",
        "lastActionDateTime": "2017-10-04T16:57:45.9599909Z"
    }
    

    lastActionDateTime 从不更新,即使返回正确的 202 代码和后续 200

    任何帮助都将不胜感激(尤其是在现场工作环境中)!

    2 回复  |  直到 8 年前
        1
  •  0
  •   Jorge Aguirre    8 年前

    您正确地调用了API-几天前我们在服务中引入了一个问题。现在应该解决这个问题。

    https://twitter.com/onenotedev?lang=en .

        2
  •  0
  •   bastelflp Zakir    8 年前

    JSON对象返回如下。复制文件在OneNotes端似乎已损坏。

    1

    2

    3

    {Responses: [[6,…]]}
    Responses
    :
    [[6,…]]
    0
    :
    [6,…]
    0
    :
    6
    1
    :
    {OperationId: 1, StatusCode: 126, RawCellStorageErrorCode: "InternalError.4", ServerPageStatsTrace: "",…}
    AvailableFileAccess
    :
    1
    CellId
    :
    "40c4a0be-3ff1-49c7-b169-ba9d74e0724c|1"
    ContentBytes
    :
    0
    ContextId
    :
    "null"
    FileId
    :
    "WOPIsrc=https%3A%2F%2Fwopi%2Eonedrive%2Ecom%2Fwopi%2Ffiles%2F1438AEF7B187116%21122&access_token=4wfG%2D4rgaZ6xmefLfMpPpnlTOOxmBy0LNKwftRv4WQeE1YRkcD72ADoSfR%2DC2ZxSi11DuWIEGx0iSqZb8JP88aA36k2o8KKqF1hPyoFTblc3TyLt6k65eXe%2DL7QEcINnMhnvAA9aeuP5W2ttwIYE6dDJQVh9xkv5JcUndBG1d%5F3Ldp3%2DlcE3gNO7IEZtvzf7B0mUkKoerjtJr3OBKxsQzHx1PRCfh99BtCNPNvVVAq91thnpmeuVOATVGgWlMWcHTt29l9a8%2DrbHa3jknZWee6F6DBxU%5FzgW7YpWbZ4LtW1zOx33SQVm3XjRQ628TsgAV7%5Fy%2DJ4IvxCnGMVhpwvC%2DXLGnP35DAJW7LuetWKJ93B%5Fs&access_token_ttl=1510611198523"
    OperationId
    :
    1
    RawCellStorageErrorCode
    :
    "InternalError.4"
    RevisionList
    :
    []
    RootCellId
    :
    "null"
    ServerPageStatsTrace
    :
    ""
    StatusCode
    :
    126