singer-io / tap-taboola

A Singer tap for extracting data from the Taboola API
GNU Affero General Public License v3.0
2 stars 11 forks source link

Extraction error #10

Open neelance opened 3 years ago

neelance commented 3 years ago

Since a few days the Taboola extraction fails with the error Expecting value: line 1 column 1 (char 0). Is anyone else seeing this issue? Any advice?

Full logs:

2021-10-14 03:00:14,289Z   main - INFO Running tap-taboola version 0.2.1 and target-stitch version 3.2.0
2021-10-14 03:00:15,444Z   main - INFO [smart-services] building smart service producer: topic( com.stitchdata.extractionJobStarted ), use_ssl( true )
2021-10-14 03:00:15,449Z   main - INFO [smart-services] building smart service producer: topic( com.stitchdata.extractionJobFinished ), use_ssl( true )
2021-10-14 03:00:15,450Z   main - INFO [smart-services] building smart service producer: topic( com.stitchdata.streamRecordCount ), use_ssl( true )
2021-10-14 03:00:15,999Z   main - INFO [smart-services] event successfully sent to kafka: com.stitchdata.extractionJobStarted [40] at offset None
2021-10-14 03:00:16,030Z   main - INFO Current state: {}
2021-10-14 03:00:16,030Z   main - INFO Starting tap: tap-env/bin/tap-taboola --config /tmp/tap_config.json --state /tmp/tap_state.json
2021-10-14 03:00:16,033Z   main - INFO Starting target: target-env/bin/target-stitch --config /tmp/target_config.json
2021-10-14 03:00:16,376Z    tap - INFO Starting sync.
2021-10-14 03:00:16,377Z    tap - INFO Generating new token with password auth
2021-10-14 03:00:16,720Z target - INFO Using batch_size_prefernces of {'user_batch_size_preference': None, 'full_table_streams': [], 'batch_size_preference': None}
2021-10-14 03:00:17,202Z    tap - INFO Got response code: 200
2021-10-14 03:00:17,202Z    tap - INFO Got an access token.
2021-10-14 03:00:17,203Z    tap - CRITICAL Expecting value: line 1 column 1 (char 0)
2021-10-14 03:00:17,205Z    tap - Traceback (most recent call last):
2021-10-14 03:00:17,205Z    tap -   File "tap-env/bin/tap-taboola", line 33, in <module>
2021-10-14 03:00:17,205Z    tap -     sys.exit(load_entry_point('tap-taboola==0.2.1', 'console_scripts', 'tap-taboola')())
2021-10-14 03:00:17,205Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_taboola/__init__.py", line 332, in main
2021-10-14 03:00:17,205Z    tap -     raise exc
2021-10-14 03:00:17,205Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_taboola/__init__.py", line 329, in main
2021-10-14 03:00:17,205Z    tap -     main_impl()
2021-10-14 03:00:17,205Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_taboola/__init__.py", line 322, in main_impl
2021-10-14 03:00:17,205Z    tap -     do_sync(args)
2021-10-14 03:00:17,206Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_taboola/__init__.py", line 295, in do_sync
2021-10-14 03:00:17,206Z    tap -     password=config.get('password'))
2021-10-14 03:00:17,206Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_taboola/__init__.py", line 104, in generate_token
2021-10-14 03:00:17,206Z    tap -     token_result = get_token_password_auth(client_id, client_secret, username, password)
2021-10-14 03:00:17,206Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_taboola/__init__.py", line 71, in get_token_password_auth
2021-10-14 03:00:17,206Z    tap -     result = {"token": response.json().get('access_token', None)}
2021-10-14 03:00:17,206Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/requests/models.py", line 897, in json
2021-10-14 03:00:17,206Z    tap -     return complexjson.loads(self.text, **kwargs)
2021-10-14 03:00:17,206Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/simplejson/__init__.py", line 516, in loads
2021-10-14 03:00:17,206Z    tap -     return _default_decoder.decode(s)
2021-10-14 03:00:17,206Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/simplejson/decoder.py", line 370, in decode
2021-10-14 03:00:17,206Z    tap -     obj, end = self.raw_decode(s)
2021-10-14 03:00:17,206Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/simplejson/decoder.py", line 400, in raw_decode
2021-10-14 03:00:17,206Z    tap -     return self.scan_once(s, idx=_w(s, idx).end())
2021-10-14 03:00:17,206Z    tap - simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2021-10-14 03:00:17,251Z target - INFO Requests complete, stopping loop
2021-10-14 03:00:17,317Z   main - INFO Target exited normally with status 0
2021-10-14 03:00:19,015Z   main - INFO [smart-services] event successfully sent to kafka: com.stitchdata.extractionJobFinished [25] at offset None
2021-10-14 03:00:19,023Z   main - INFO No tunnel subprocess to tear down
2021-10-14 03:00:19,023Z   main - INFO Exit status is: Tap failed with code 1 and error message: "Expecting value: line 1 column 1 (char 0)". Target succeeded.
lingxuuuu commented 2 years ago

I experience something very similar with a different tap, I wonder did you find cause and solution? Thanks