Skip to content

Commit 979fc6f

Browse files
fix(client): increase HTTP timeout to prevent test failures
Increased the HTTP request timeout from 30 to 60 seconds to handle DELETE operations on the lists API that can take longer for large lists. This resolves the ReadTimeout errors occurring in the GitHub Actions CI.
1 parent c05f6c5 commit 979fc6f

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
12+
### Fixed
13+
14+
### Changed
15+
16+
### Deprecated
17+
18+
### Removed
19+
20+
### Security
21+
22+
## Release Process
23+
24+
When ready to release:
25+
1. Update the version in `pyproject.toml`
26+
2. Move all "Unreleased" items to a new version section with date
27+
3. Commit with message: `chore: prepare release vX.Y.Z`
28+
4. Tag the release: `git tag vX.Y.Z`
29+
5. Push tags: `git push --tags`
30+
6. GitHub Actions will automatically publish to PyPI
31+
32+
[Unreleased]: https://github.com/Geocodio/geocodio-library-python/compare/main...HEAD

src/geocodio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _request(
164164
logger.debug(f"JSON body: {json}")
165165
logger.debug(f"Files: {files}")
166166

167-
resp = self._http.request(method, endpoint, params=params, json=json, files=files, timeout=30)
167+
resp = self._http.request(method, endpoint, params=params, json=json, files=files, timeout=60)
168168

169169
logger.debug(f"Response status code: {resp.status_code}")
170170
logger.debug(f"Response headers: {resp.headers}")

0 commit comments

Comments
 (0)