singer-io / singer-io/tap-gitlab

'NoneType' object has no attribute 'split'

Open
#20 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
16
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hi, I am currently using Stitchdata for Gitlab integration. After a few days of running smoothly, I suddenly got this error message: 'NoneType' object has no attribute 'split'. And the pipeline has not been working ever since. We haven't really made any changes on Git so I am not sure what caused the issue. Could anyone please advice? Thanks

2020-10-05 18:58:09,929Z tap - CRITICAL 'NoneType' object has no attribute 'split' 2020-10-05 18:58:09,929Z tap - Traceback (most recent call last): 2020-10-05 18:58:09,929Z tap - File "tap-env/bin/tap-gitlab", line 33, in <module> 2020-10-05 18:58:09,930Z tap - sys.exit(load_entry_point('tap-gitlab==0.5.1', 'console_scripts', 'tap-gitlab')()) 2020-10-05 18:58:09,930Z tap - File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_gitlab/__init__.py", line 292, in main 2020-10-05 18:58:09,930Z tap - raise exc 2020-10-05 18:58:09,930Z tap - File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_gitlab/__init__.py", line 289, in main 2020-10-05 18:58:09,930Z tap - main_impl() 2020-10-05 18:58:09,930Z tap - File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_gitlab/__init__.py", line 284, in main_impl 2020-10-05 18:58:09,930Z tap - do_sync() 2020-10-05 18:58:09,930Z tap - File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_gitlab/__init__.py", line 258, in do_sync 2020-10-05 18:58:09,930Z tap - gids = list(filter(None, CONFIG['groups'].split(' '))) 2020-10-05 18:58:09,930Z tap - AttributeError: 'NoneType' object has no attribute 'split' 2020-10-05 18:58:10,153Z target - INFO Using batch_size_prefernces of {'user_batch_size_preference': None, 'batch_size_preference': None, 'full_table_streams': []} 2020-10-05 18:58:10,154Z target - INFO Requests complete, stopping loop 2020-10-05 18:58:10,207Z main - INFO Target exited normally with status 0 2020-10-05 18:58:10,530Z main - INFO [smart-services] event successfully sent to kafka: com.stitchdata.extractionJobFinished [1] at offset None 2020-10-05 18:58:10,531Z main - INFO No tunnel subprocess to tear down 2020-10-05 18:58:10,531Z main - INFO Exit status is: Tap failed with code 1 and error message: "'NoneType' object has no attribute 'split'". Target succeeded.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in tap_gitlab/init.py at do_sync(), especially the CONFIG['groups'].split(' ') traceback location. Reproduce with the reported configuration and inspect how groups is populated before the split. Done means the pipeline handles this configuration without the shown AttributeError, with a test covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.