Skip to content

Commit 52744ec

Browse files
sviandemarcosmarxm
andauthored
feat(source-getlago): ignore 405 response for customer usage (#45193)
Co-authored-by: Marcos Marx <[email protected]>
1 parent bb1833c commit 52744ec

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

airbyte-integrations/connectors/source-getlago/manifest.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,17 @@ definitions:
318318
$ref: "#/definitions/base_requester"
319319
path: /customers/{{stream_slice.customer_external_id}}/current_usage
320320
http_method: GET
321+
error_handler:
322+
type: CompositeErrorHandler
323+
error_handlers:
324+
- type: DefaultErrorHandler
325+
response_filters:
326+
- type: HttpResponseFilter
327+
action: IGNORE
328+
predicate: >-
329+
{{response.status == 405 and response.code ==
330+
'no_active_subscription' }}
331+
http_codes: []
321332
record_selector:
322333
type: RecordSelector
323334
extractor:

airbyte-integrations/connectors/source-getlago/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ data:
22
connectorSubtype: api
33
connectorType: source
44
definitionId: e1a3866b-d3b2-43b6-b6d7-8c1ee4d7f53f
5-
dockerImageTag: 0.5.0
5+
dockerImageTag: 0.6.0
66
dockerRepository: airbyte/source-getlago
77
githubIssueLabel: source-getlago
88
icon: getlago.svg

docs/integrations/sources/getlago.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ This source can sync data from the [Lago API](https://doc.getlago.com/docs/guide
3232

3333
| Version | Date | Pull Request | Subject |
3434
| :------ | :--------- | :-------------------------------------------------------- | :---------------------------------------- |
35+
| 0.6.0 | 2024-09-06 | [45193](https://github.com/airbytehq/airbyte/pull/45193) | Endpoint customer usage ignore 405 response |
3536
| 0.5.0 | 2024-08-23 | [44613](https://github.com/airbytehq/airbyte/pull/44613) | Refactor connector to manifest-only format |
3637
| 0.4.11 | 2024-08-17 | [44273](https://github.com/airbytehq/airbyte/pull/44273) | Update dependencies |
3738
| 0.4.10 | 2024-08-12 | [43800](https://github.com/airbytehq/airbyte/pull/43800) | Update dependencies |

0 commit comments

Comments
 (0)