Closed
Bug 1186991
Opened 10 years ago
Closed 10 years ago
thclient post_collection results in "TypeError: name must be a byte string" in OpenSSL
Categories
(Tree Management Graveyard :: Treeherder: Client Libraries, defect, P2)
Tree Management Graveyard
Treeherder: Client Libraries
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: impossibus, Unassigned)
Details
Attachments
(2 files)
(This is essentially a summary of a conversation with mdoglio in #treeherder)
Posting a job_collection to treeherder.allizom.org with treeherder-client==1.6 yields |TypeError("name must be a byte string")| (see 'traceback' attachment), where |name| refers to |u'treeherder.allizom.org'|.
Context:
* The requests version is 2.7.0.
* My call to post_collection is here: https://github.com/mjzffr/firefox-media-tests/blob/pf-jenkins-th-update/treeherding.py#L292
* The call is triggered via this mozharness script: https://github.com/mjzffr/firefox-media-tests/blob/pf-jenkins-th-update/run_media_tests.py
Reporter | ||
Comment 1•10 years ago
|
||
All config options and environment info.
Comment 2•10 years ago
|
||
This maybe seems relevant:
https://github.com/shazow/urllib3/issues/515
Updated•10 years ago
|
Priority: -- → P1
Summary: TreeherderClient's post_collection raises a TypeError in OpenSSL (treeherder staging) → thclient post_collection results in "TypeError: name must be a byte string" in OpenSSL
Reporter | ||
Comment 3•10 years ago
|
||
I believe this issue is specific to Python 2.7.10. [1]
Verified that I can post results under 2.7.8, for example: https://treeherder.allizom.org/#/jobs?repo=mozilla-central&revision=1f77b78797d6&filter-job_group_symbol=VP
[1] Maybe relevant: "Issue #1865: ``bytes`` as an alias for ``str`` and b"" as an alias "" were
added." (https://hg.python.org/cpython/raw-file/15c95b7d81dc/Misc/NEWS)
Comment 4•10 years ago
|
||
Are you still seeing this? I was thinking of reporting this against the requests package - do you have any more information (OS version etc) that I can add to the report? Thanks :-)
Flags: needinfo?(mjzffr)
Priority: P1 → P2
Reporter | ||
Comment 5•10 years ago
|
||
Not anymore: I just run the same job under Python 2.7.9 and 2.7.10, and I don't hit any errors.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(mjzffr)
Resolution: --- → WORKSFORME
Comment 6•10 years ago
|
||
(In reply to Maja Frydrychowicz (:maja_zf) from comment #5)
> Not anymore: I just run the same job under Python 2.7.9 and 2.7.10, and I
> don't hit any errors.
Strange! Thank you for checking :-)
Updated•5 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•