Skip to content

Commit b22321b

Browse files
devin-ai-integration[bot]bot_apk
andauthored
fix(source-linkedin-ads): replace deprecated MessageRepresentationAirbyteTracedErrors with AirbyteTracedException (#76040)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: bot_apk <apk@cognition.ai>
1 parent e23ee94 commit b22321b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

airbyte-integrations/connectors/source-linkedin-ads/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ data:
1111
connectorSubtype: api
1212
connectorType: source
1313
definitionId: 137ece28-5434-455c-8f34-69dc3782f451
14-
dockerImageTag: 5.6.6
14+
dockerImageTag: 5.6.7
1515
dockerRepository: airbyte/source-linkedin-ads
1616
documentationUrl: https://docs.airbyte.com/integrations/sources/linkedin-ads
1717
externalDocumentationUrls:

airbyte-integrations/connectors/source-linkedin-ads/unit_tests/test_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
from airbyte_cdk.models import SyncMode
1414
from airbyte_cdk.sources.declarative.concurrent_declarative_source import ConcurrentDeclarativeSource
1515
from airbyte_cdk.sources.streams import Stream
16-
from airbyte_cdk.sources.streams.http.http_client import MessageRepresentationAirbyteTracedErrors
1716
from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator
1817
from airbyte_cdk.sources.types import Record, StreamSlice
18+
from airbyte_cdk.utils.traced_exception import AirbyteTracedException
1919
from unit_tests.utils import run_read
2020

2121
from .conftest import find_stream, get_source, load_json_file
@@ -106,7 +106,7 @@ def test_should_retry_on_error(self, error_code, requests_mock, mocker):
106106
"GET", "https://api.linkedin.com/rest/adAccounts", [{"status_code": error_code, "json": {"elements": []}}]
107107
)
108108
stream._stream_partition_generator._partition_factory._retriever.requester.exit_on_rate_limit = True
109-
with pytest.raises(MessageRepresentationAirbyteTracedErrors):
109+
with pytest.raises(AirbyteTracedException):
110110
list(run_read(stream))
111111

112112
def test_manifest_maps_429_to_rate_limited(self):

docs/integrations/sources/linkedin-ads.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ No workaround has been identified to manage this issue as of 2025, February.
212212

213213
| Version | Date | Pull Request | Subject |
214214
|:-----------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
215+
| 5.6.7 | 2026-04-02 | [76040](https://github.com/airbytehq/airbyte/pull/76040) | Replace deprecated MessageRepresentationAirbyteTracedErrors with AirbyteTracedException in tests |
215216
| 5.6.6 | 2026-04-01 | [75583](https://github.com/airbytehq/airbyte/pull/75583) | Add `oauth_connector_input_specification` with granular scopes |
216217
| 5.6.5 | 2026-03-30 | [75597](https://github.com/airbytehq/airbyte/pull/75597) | Map HTTP 429 responses to RATE_LIMITED instead of RETRY for proper indefinite backoff on rate-limited requests |
217218
| 5.6.4 | 2026-02-10 | [72831](https://github.com/airbytehq/airbyte/pull/72831) | Upgrade LinkedIn API version from 202502 to 202601 |

0 commit comments

Comments
 (0)