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)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: impossibus, Unassigned)

Details

Attachments

(2 files)

Attached file traceback
(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
All config options and environment info.
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
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)
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
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
(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 :-)
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: