aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/more_of_diagnostic_information_in_case_of_failures_into_returned_json.mdwn
blob: 3e9c30970eeb508032ba380071025952bc85f00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ATM I am experiencing sporadic failures of the batched  git annex addurl call -- seems to report failure (success: False) once in a while, but succeeds on a retry:

[[!format sh """
(Pdb) p url
'http://openneuro.s3.amazonaws.com/ds000001/ds000001_R1.1.0/uncompressed/sub016/BOLD/task001_run003/QA/QA_report.pdf?versionId=null'

(Pdb) p out_json
{u'note': u'from datalad', u'command': u'addurl', u'file': u'ds000001_R1.1.0/uncompressed/sub016/BOLD/task001_run003/QA/QA_report.pdf', u'success': False}

(Pdb) up
> /home/yoh/proj/datalad/datalad/datalad/support/gitrepo.py(210)newfunc()
-> return func(self, file_new, *args, **kwargs)

(Pdb) func(self, file_new, *args, **kwargs)
{u'note': u'from datalad', u'file': u'ds000001_R1.1.0/uncompressed/sub016/BOLD/task001_run003/QA/QA_report.pdf', u'command': u'addurl', u'key': u'MD5E-s1191419--cb4efab8104b5117f64b58ee6d6a79ba.pdf', u'success': True}
"""]]

besides me blindly trying to re-run it e.g. 3 times and only then declare total failure, I wondered if json output could provide more information (if any known) about the failure... e.g. if a custom remote crashed/errorred (I guess the case here due to "from datalad") -- what was stderr/exit code for that process if crashed/ERROR msg... if wget -- what was stderr there

[[!meta name=yoh]]

> Switched to curl with -sS in --json mode. [[done]] I suppose. --[[Joey]]