airbytehq / airbytehq/airbyte

[source-amazon-seller-partner] Manual Authorization doesn't work with cloud Airbyte, only OAUTH works with "Re-authenticate" button

オープン
#80,342 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
area/connectors autoteam community connectors/source/amazon-seller-partner needs-triage team/use type/bug
主要言語
Python
スター
22.1k
フォーク
5.3k
PR マージ指標
PR 指標を取得中

説明

### Connector Name

source-amazon-seller-partner

### Connector Version

5.7.9

### What step the error happened?

Configuring a new connector

### Relevant information

When trying to setup the manual authorization with the said source connector, the following error shows up:
Configuration check failed
'Encountered an error while checking availability of stream Orders. Error: 400 Client Error: Bad Request for url: https://api.amazon.com/auth/o2/token'
It doesn't happen when the automatic option is selected. App credentials are verified to work with the third-party API client and they work with the community Airbyte instance manual setup, but it doesn't work with the cloud.

### Relevant log output

```shell
Logs: check_connection_source job

2026-06-22 13:25:50 ERROR 2026-06-22 13:25:50 error Encountered an error while checking availability of stream Orders. Error: 400 Client Error: Bad Request for url: https://api.amazon.com/auth/o2/tokenError traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/checks/check_stream.py", line 113, in _check_stream_availability
stream_is_available, reason = evaluate_availability(stream, logger)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/checks/check_stream.py", line 26, in evaluate_availability
availability = stream.check_availability()
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/concurrent/default_stream.py", line 144, in check_availability
next(iter(partition.read()))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py", line 91, in read
for stream_data in self._retriever.read_records(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self._schema_loader.get_json_schema(), self._stream_slice
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 460, in read_records
yield from self._read_pages(record_generator, _slice)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 398, in _read_pages
response = self._fetch_next_page(stream_slice, next_page_token)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 315, in _fetch_next_page
return self.requester.send_request(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
path=self._paginator_path(
^^^^^^^^^^^^^^^^^^^^^^^^^^
...<22 lines>...
log_formatter=self.log_formatter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 467, in send_request
headers=self._request_headers(
~~~~~~~~~~~~~~~~~~~~~^
stream_state, stream_slice, next_page_token, request_headers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 315, in _request_headers
headers = self._get_request_options(
stream_state,
...<4 lines>...
extra_headers,
)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 298, in _get_request_options
auth_options_method(),
~~~~~~~~~~~~~~~~~~~^^
File "/airbyte/integration_code/source_declarative_manifest/components.py", line 130, in get_auth_header
return super().get_auth_header()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/airbyte/integration_code/source_declarative_manifest/components.py", line 75, in get_auth_header
"x-amz-access-token": self.get_access_token(),
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 109, in get_access_token
self.refresh_and_set_access_token()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 120, in refresh_and_set_access_token
token, expires_in = self.refresh_access_token()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 183, in refresh_access_token
response_json = self._make_handled_request()
File "/usr/local/lib/python3.13/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 283, in _make_handled_request
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.amazon.com/auth/o2/token
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/checks/check_stream.py", line 113, in _check_stream_availability
stream_is_available, reason = evaluate_availability(stream, logger)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/checks/check_stream.py", line 26, in evaluate_availability
availability = stream.check_availability()
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/concurrent/default_stream.py", line 144, in check_availability
next(iter(partition.read()))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py", line 91, in read
for stream_data in self._retriever.read_records(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self._schema_loader.get_json_schema(), self._stream_slice
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 460, in read_records
yield from self._read_pages(record_generator, _slice)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 398, in _read_pages
response = self._fetch_next_page(stream_slice, next_page_token)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 315, in _fetch_next_page
return self.requester.send_request(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
path=self._paginator_path(
^^^^^^^^^^^^^^^^^^^^^^^^^^
...<22 lines>...
log_formatter=self.log_formatter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 467, in send_request
headers=self._request_headers(
~~~~~~~~~~~~~~~~~~~~~^
stream_state, stream_slice, next_page_token, request_headers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 315, in _request_headers
headers = self._get_request_options(
stream_state,
...<4 lines>...
extra_headers,
)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 298, in _get_request_options
auth_options_method(),
~~~~~~~~~~~~~~~~~~~^^
File "/airbyte/integration_code/source_declarative_manifest/components.py", line 130, in get_auth_header
return super().get_auth_header()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/airbyte/integration_code/source_declarative_manifest/components.py", line 75, in get_auth_header
"x-amz-access-token": self.get_access_token(),
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 109, in get_access_token
self.refresh_and_set_access_token()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 120, in refresh_and_set_access_token
token, expires_in = self.refresh_access_token()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 183, in refresh_access_token
response_json = self._make_handled_request()
File "/usr/local/lib/python3.13/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
File "/usr/local/lib/python3.13/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 283, in _make_handled_request
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.amazon.com/auth/o2/token
2026-06-22 13:25:50 ERROR 2026-06-22 13:25:50 error Check failed
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info Checking for optional control message...
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info Optional control message not found. Skipping...
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info Writing output of e55879a8-0ef8-4557-abcf-ab34c53ec460_5275958c-7fad-48b4-bbc6-7f628b179a9b_0_check to the doc store
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info Marking workload e55879a8-0ef8-4557-abcf-ab34c53ec460_5275958c-7fad-48b4-bbc6-7f628b179a9b_0_check as successful
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info Deliberately exiting process with code 0.
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info ----- END CHECK -----
2026-06-22 13:25:50 INFO 2026-06-22 13:25:50 info
```

### Contribute

- [x] Yes, I want to contribute

---
**Internal Tracking:** https://github.com/airbytehq/oncall/issues/12951

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。