Closed Bug 1298644 Opened 8 years ago Closed 8 years ago

simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1298759

People

(Reporter: aleth, Unassigned)

Details

(Keywords: intermittent-failure)

All platforms.

 13:24:34     INFO - Running post-run listener: _upload_blobber_files
 13:24:34     INFO - Blob upload gear active.
 13:24:34     INFO - Preparing to upload files from /builds/slave/test/build/blobber_upload_dir.
 13:24:34     INFO - Files from /builds/slave/test/build/blobber_upload_dir are to be uploaded with <comm-central> branch at the following location(s): https://blobupload.elasticbeanstalk.com
 13:24:34     INFO - Running command: ['/builds/slave/test/build/venv/bin/python', '/builds/slave/test/build/venv/bin/blobberc.py', '-u', 'https://blobupload.elasticbeanstalk.com', '-a', '/builds/slave/test/oauth.txt', '-b', 'comm-central', '-d', '/builds/slave/test/build/blobber_upload_dir', '--output-manifest', '/builds/slave/test/build/uploaded_files.json']
 13:24:34     INFO - Copy/paste: /builds/slave/test/build/venv/bin/python /builds/slave/test/build/venv/bin/blobberc.py -u https://blobupload.elasticbeanstalk.com -a /builds/slave/test/oauth.txt -b comm-central -d /builds/slave/test/build/blobber_upload_dir --output-manifest /builds/slave/test/build/uploaded_files.json
 13:24:34     INFO -  Traceback (most recent call last):
 13:24:34     INFO -    File "/builds/slave/test/build/venv/bin/blobberc.py", line 253, in <module>
 13:24:34     INFO -      main()
 13:24:34     INFO -    File "/builds/slave/test/build/venv/bin/blobberc.py", line 235, in main
 13:24:34     INFO -      filetype_whitelist = get_server_whitelist(args['--url'])
 13:24:34     INFO -    File "/builds/slave/test/build/venv/bin/blobberc.py", line 69, in get_server_whitelist
 13:24:34     INFO -      return set(response.json().get('whitelist', []))
 13:24:34     INFO -    File "/builds/slave/test/build/venv/lib/python2.7/site-packages/requests/models.py", line 651, in json
 13:24:34     INFO -      return json.loads(self.text or self.content, **kwargs)
 13:24:34     INFO -    File "/builds/slave/test/build/venv/lib/python2.7/site-packages/simplejson/__init__.py", line 488, in loads
 13:24:34     INFO -      return _default_decoder.decode(s)
 13:24:34     INFO -    File "/builds/slave/test/build/venv/lib/python2.7/site-packages/simplejson/decoder.py", line 370, in decode
 13:24:34     INFO -      obj, end = self.raw_decode(s)
 13:24:34     INFO -    File "/builds/slave/test/build/venv/lib/python2.7/site-packages/simplejson/decoder.py", line 389, in raw_decode
 13:24:34     INFO -      return self.scan_once(s, idx=_w(s, idx).end())
 13:24:34     INFO -  simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
13:24:34 ERROR - Return code: 1
ahal, from traceback we need to know if https://blobupload.elasticbeanstalk.com/blobs/whitelist servered correctly.  Can we add log to see pulled json?
Flags: needinfo?(ahalberstadt)
So blobberc lives here:
https://github.com/mozilla/build-blobuploader

It definitely doesn't look like it changed recently (unless the repo moved?). For the record, Paul and I have seen this error too while looking into structured logging for unittests. Rail, do you have any idea why 'get_server_whitelist' is failing [1]?

[1] https://github.com/mozilla/build-blobuploader/blob/master/blobberc.py#L62
Component: General → Mozharness
Flags: needinfo?(ahalberstadt) → needinfo?(rail)
Product: Thunderbird → Release Engineering
QA Contact: jlund
Version: 51 Branch → unspecified
I bet it's related to bug 1298759 (the server had issues) and amazon was returning garbage.
Flags: needinfo?(rail)
Isn't this already fixed via bug 1298759?
Possibly. We saw this in try results from last week, and I don't see it in any current logs (though maybe it was intermittent?). Aleth, could you confirm if this is fixed on c-c and dupe the bug if so?
Flags: needinfo?(aleth)
(In reply to Andrew Halberstadt [:ahal] from comment #7)
> Possibly. We saw this in try results from last week, and I don't see it in
> any current logs (though maybe it was intermittent?). Aleth, could you
> confirm if this is fixed on c-c and dupe the bug if so?

Looks like this is fixed - thanks! (It didn't appear to be intermittent.)
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(aleth)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.