airbytehq / airbytehq/PyAirbyte

Something went wrong in the connector - "source-github"

Đang mở
#399 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
344
Fork
77
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
35

Mô tả

```
import airbyte as ab
source = ab.get_source(
"source-github",
install_if_missing=True,
config={
"repositories": ["airbytehq/quickstarts"],
"credentials": {
"personal_access_token": ab.get_secret("GITHUB_PERSONAL_ACCESS_TOKEN"),
},
},
)
source.check()
source.set_streams(["pull_requests", "issues", "reviews", "stargazers"])
cache = ab.get_default_cache()
result = source.read(cache=cache)
```

error:
```
Writing PyAirbyte logs to file: C:\Users\OBAIDM~1\AppData\Local\Temp\airbyte\logs\2024-09-27\airbyte-log-J8SKMYTPJ.log
Writing `source-github` logs to file: C:\Users\OBAIDM~1\AppData\Local\Temp\airbyte\logs\source-github\source-github-log-J8SKMYTQ6.log
Connection check succeeded for `source-github`.
C:\Users\Obaid Muneer\Desktop\prosp\ai-sdk-internal-knowledge-base\backend_py\github.py:17: DeprecationWarning: The 'set_streams' method is deprecated and will be removed in a future version. Please use the 'select_streams' method instead.
source.set_streams(["pull_requests", "issues", "reviews", "stargazers"])
ERROR: Something went wrong in the connector. See the logs for more details.
Traceback (most recent call last):
File "C:\Users\Obaid Muneer\Desktop\prosp\ai-sdk-internal-knowledge-base\backend_py\github.py", line 17, in
source.set_streams(["pull_requests", "issues", "reviews", "stargazers"])
File "C:\Users\Obaid Muneer\AppData\Local\Programs\Python\Python311\Lib\site-packages\airbyte\sources\base.py", line 99, in set_streams
self.select_streams(streams)
File "C:\Users\Obaid Muneer\AppData\Local\Programs\Python\Python311\Lib\site-packages\airbyte\sources\base.py", line 147, in select_streams
available_streams = self.get_available_streams()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Obaid Muneer\AppData\Local\Programs\Python\Python311\Lib\site-packages\airbyte\sources\base.py", line 219, in get_available_streams
return [s.name for s in self.discovered_catalog.streams]
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Obaid Muneer\AppData\Local\Programs\Python\Python311\Lib\site-packages\airbyte\sources\base.py", line 325, in discovered_catalog
self._discovered_catalog = self._discover()
^^^^^^^^^^^^^^^^
File "C:\Users\Obaid Muneer\AppData\Local\Programs\Python\Python311\Lib\site-packages\airbyte\sources\base.py", line 209, in _discover
for msg in self._execute(["discover", "--config", config_file]):
File "C:\Users\Obaid Muneer\AppData\Local\Programs\Python\Python311\Lib\site-packages\airbyte\_connector_base.py", line 440, in _execute
raise exc.AirbyteConnectorFailedError(
airbyte.exceptions.AirbyteConnectorFailedError: Connector failed. (AirbyteConnectorFailedError)
------------------------------------------------------------
AirbyteConnectorFailedError: Connector failed.
Please review the log file for more information.
Connector Name: 'source-github'
Exit Code: 1
Log file: C:\Users\OBAIDM~1\AppData\Local\Temp\airbyte\logs\source-github\source-github-log-J8SKMYTQ6.log

```
would be apricated for help

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.