airbytehq / airbytehq/airbyte

Netsuite Community Connector fail to synchronize campaign and check

Đang mở
#69,274 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area/connectors autoteam community needs-triage team/extensibility team/use type/bug
Ngôn ngữ chính
Python
Star
22.1k
Fork
5.3k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

### Connector Name

netsuite

### Connector Version

0.1.27

### What step the error happened?

During the sync

### Relevant information

As i try to synchronize all the tables to my dwh, i got an error to synchronize this two tables.

How to replicate create a nesuite (source)
Add your netsuite credentials.

Optional Fiels:
- campaign
- check

### Relevant log output

```shell
2025-11-11 10:26:22 error {"type":"https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.6","title":"Method Not Allowed","status":405,"o:errorDetails":[{"detail":"This operation is not allowed for a campaign record. Use one of the following valid operations: edit, create, delete, load.","o:errorCode":"INVALID_METHOD"}]}

2025-11-11 10:26:22 error Encountered an exception while reading stream campaign
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/abstract_source.py", line 129, in read
stream_is_available, reason = stream_instance.check_availability(logger, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/core.py", line 329, in check_availability
return self.availability_strategy.check_availability(self, logger, source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/availability_strategy.py", line 56, in check_availability
is_available, reason = self.handle_http_error(stream, logger, source, error)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/availability_strategy.py", line 85, in handle_http_error
raise error
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/availability_strategy.py", line 50, in check_availability
get_first_record_for_slice(stream, stream_slice)
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/utils/stream_helper.py", line 40, in get_first_record_for_slice
return next(records_for_slice)
^^^^^^^^^^^^^^^^^^^^^^^
File "/airbyte/integration_code/source_netsuite/streams.py", line 202, in read_records
yield from super().read_records(stream_slice=stream_slice, stream_state=stream_state, **kwargs)
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/http.py", line 472, in read_records
yield from self._read_pages(
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/http.py", line 488, in _read_pages
request, response = self._fetch_next_page(stream_slice, stream_state, next_page_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/http.py", line 513, in _fetch_next_page
response = self._send_request(request, request_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/http.py", line 412, in _send_request
return backoff_handler(user_backoff_handler)(request, request_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/http.py", line 371, in _send
raise exc
File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/streams/http/http.py", line 368, in _send
response.raise_for_status()
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 405 Client Error: Method Not Allowed for url: https://****.suitetalk.api.netsuite.com/services/rest/record/v1/campaign?q=lastModifiedDate+AFTER+%2201%2F01%2F2023%22+AND+lastModifiedDate+BEFORE+%2201%2F31%2F2023%22
2025-11-11 10:26:22 info Marking stream campaign as STOPPED
```

### Contribute

- [ ] Yes, I want to contribute

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.