Skip to content

Commit ecadf88

Browse files
committed
[#29] Handle 429 error properly
Return ::anomalies/busy with proper error body.
1 parent 38072e3 commit ecadf88

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

ChangeLog.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77

88
## [Unreleased] ##
99

10+
## [0.4.1] - 2024-03-18 ##
11+
12+
### Fixed ###
13+
14+
- HTTP error code 429 is not handled properly ([#29](https://github.com/AdGoji/mollie/issues/29)).
15+
1016
## [0.4.0] - 2024-02-28 ##
1117

1218
### Added ###
@@ -94,7 +100,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
94100
- Mandates management ([#1](https://github.com/AdGoji/mollie/issues/1)).
95101
- Subscriptions management ([#1](https://github.com/AdGoji/mollie/issues/1)).
96102

97-
[unreleased]: https://github.com/AdGoji/mollie/compare/0.4.0..HEAD
103+
[unreleased]: https://github.com/AdGoji/mollie/compare/0.4.1..HEAD
104+
[0.4.1]: https://github.com/AdGoji/mollie/compare/0.4.0..0.4.1
98105
[0.4.0]: https://github.com/AdGoji/mollie/compare/0.3.6..0.4.0
99106
[0.3.6]: https://github.com/AdGoji/mollie/compare/0.3.5..0.3.6
100107
[0.3.5]: https://github.com/AdGoji/mollie/compare/0.3.4..0.3.5

build.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[deps-deploy.deps-deploy :as dd]))
55

66
(def lib 'com.adgoji/mollie)
7-
(def version "0.4.0")
7+
(def version "0.4.1")
88
(def class-dir "target/classes")
99
(def basis (b/create-basis {:project "deps.edn"}))
1010
(def jar-file (format "target/%s-%s.jar" (name lib) version))

src/com/adgoji/mollie/client.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
(404 410) ::anomalies/not-found
9090
405 ::anomalies/unsupported
9191
500 ::anomalies/fault
92-
503 ::anomalies/busy)
92+
(429 503) ::anomalies/busy)
9393
error {::anomalies/category anomaly
9494
:error body}]
9595
(if throw-exceptions?

0 commit comments

Comments
 (0)