singer-io / tap-kustomer

GNU Affero General Public License v3.0
2 stars 13 forks source link

object of type 'NoneType' has no len() [Stitch Kustomer integration] #11

Open cantide5ga opened 3 years ago

cantide5ga commented 3 years ago

Brought to the attention of the community here: https://singer-io.slack.com/archives/C01FBBY150U/p1605818676001700

This is for a Kustomer integration with Stitch.

Believe this is the relevant part of the error:

2020-11-19 13:25:31,745Z    tap -     config.get('page_size_limit', RESULT_RETURN_LIMIT)))
2020-11-19 13:25:31,745Z    tap -   File "/code/orchestrator/tap-env/lib/python3.5/site-packages/tap_kustomer/sync.py", line 223, in sync_endpoint
2020-11-19 13:25:31,745Z    tap -     total_page = len(response.get('data'))
2020-11-19 13:25:31,746Z    tap - TypeError: object of type 'NoneType' has no len()
2020-11-19 13:25:31,895Z target - INFO Using batch_size_prefernces of {'user_batch_size_preference': None, 'full_table_streams': [], 'batch_size_preference': None}
2020-11-19 13:25:31,895Z   main - INFO State update: adding currently_syncing = "kobjects"
2020-11-19 13:25:31,897Z target - INFO Requests complete, stopping loop
2020-11-19 13:25:31,951Z   main - INFO Target exited normally with status 0
2020-11-19 13:25:32,803Z   main - INFO [smart-services] event successfully sent to kafka: com.stitchdata.extractionJobFinished [39] at offset None
2020-11-19 13:25:32,804Z   main - INFO No tunnel subprocess to tear down
2020-11-19 13:25:32,804Z   main - INFO Exit status is: Discovery succeeded. Tap failed with code 1 and error message: "object of type 'NoneType' has no len()". Target succeeded.
olimills commented 3 years ago

Hi, do you have any update on this issue? I've experienced it since we moved to Kustomer.

rquigley commented 3 years ago

We also ran into this issue. It likely points to your api key lacking the correct roles/permissions Take a look at https://support.kustomer.com/en_us/permissions-for-common-api-requests-HkltTBZbN for the roles/permissions needed for each operation.

albertocarr commented 3 years ago

I have the same issue and providing the correct (I think) permissions I cannot start to work the process, I only need conversations data. Can someone help me with this?