Skip to content

Fix Uniprot decompression and refresh EBI test accessions - #56

Merged
timholy merged 1 commit into
mainfrom
teh/fix-network-tests
Jul 20, 2026
Merged

Fix Uniprot decompression and refresh EBI test accessions#56
timholy merged 1 commit into
mainfrom
teh/fix-network-tests

Conversation

@timholy

@timholy timholy commented Jul 20, 2026

Copy link
Copy Markdown
Member

Uniprot serves ID-mapping responses uncompressed unless the client negotiates gzip, and does not always honor the request when it does. Requesting compression and then unconditionally gunzipping the response therefore fails intermittently with a ZlibError. Suppress the Accept-Encoding header via decompress = false and read the body directly.

The EBI batch-query test used accession C3N734, which has since been withdrawn from Uniprot, so the query returned three records instead of four. Reviewed (SwissProt) accessions are not withdrawn the way unreviewed entries are; use four GPCR entries already exercised elsewhere in the suite.

Assisted-by: Claude Opus 4.8 noreply@anthropic.com

Uniprot serves ID-mapping responses uncompressed unless the client negotiates
gzip, and does not always honor the request when it does. Requesting compression
and then unconditionally gunzipping the response therefore fails intermittently
with a ZlibError. Suppress the Accept-Encoding header via `decompress = false`
and read the body directly.

The EBI batch-query test used accession C3N734, which has since been withdrawn
from Uniprot, so the query returned three records instead of four. Reviewed
(SwissProt) accessions are not withdrawn the way unreviewed entries are; use
four GPCR entries already exercised elsewhere in the suite.

Assisted-by: Claude Opus 4.8 <noreply@anthropic.com>
@timholy
timholy merged commit 10e9f48 into main Jul 20, 2026
3 checks passed
@timholy
timholy deleted the teh/fix-network-tests branch July 20, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant