GET /operations/$HANDLE?output=json is not JSON #2590

Open
opened 2015-12-02 02:33:47 +00:00 by daira · 0 comments
daira commented 2015-12-02 02:33:47 +00:00
Owner

I started a deep-check over the web API and set an ophandle (!96a1be642bfeed6d).

When I try to get a status with:

curl -X GET -d "output=json" http://127.0.0.1:3456/operations/96a1be642bfeed6d

The output format is not JSON like expected.

There is always a raw output:

Content-Type: text/plain;charset=utf-8
Server: TwistedWeb/15.4.0

UnrecoverableFileError: the directory (or mutable file) could not be retrieved, because there were insufficient good shares. This might indicate that no servers were connected, insufficient servers were connected, the URI was corrupt, or that shares have been lost due to server departure, hard drive failure, or disk corruption. You should perform a filecheck on this object to learn more.
I started a deep-check over the web API and set an ophandle (!96a1be642bfeed6d). When I try to get a status with: ``` curl -X GET -d "output=json" http://127.0.0.1:3456/operations/96a1be642bfeed6d ``` The output format is not JSON like expected. There is always a raw output: ``` Content-Type: text/plain;charset=utf-8 Server: TwistedWeb/15.4.0 UnrecoverableFileError: the directory (or mutable file) could not be retrieved, because there were insufficient good shares. This might indicate that no servers were connected, insufficient servers were connected, the URI was corrupt, or that shares have been lost due to server departure, hard drive failure, or disk corruption. You should perform a filecheck on this object to learn more. ```
tahoe-lafs added the
code-frontend-web
normal
defect
1.10.1
labels 2015-12-02 02:33:47 +00:00
tahoe-lafs added this to the undecided milestone 2015-12-02 02:33:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#2590
No description provided.