Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRITICAL can't compare offset-naive and offset-aware datetimes #31

Open
brylie opened this issue Aug 26, 2020 · 2 comments
Open

CRITICAL can't compare offset-naive and offset-aware datetimes #31

brylie opened this issue Aug 26, 2020 · 2 comments

Comments

@brylie
Copy link

brylie commented Aug 26, 2020

When running the tap-chargebee in sync mode, it fails with the following traceback:

INFO METRIC: {"type": "counter", "metric": "record_count", "value": 100, "tags": {"endpoint": "events"}}
ERROR can't compare offset-naive and offset-aware datetimes
ERROR Failed to sync endpoint events, moving on!
CRITICAL can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
  File "./tap-chargebee/bin/tap-chargebee", line 8, in <module>
    sys.exit(main())
  File "/home/brylie/Code/MaaS_Global/singer/tap-chargebee/lib/python3.8/site-packages/singer/utils.py", line 192, in wrapped
    return fnc(*args, **kwargs)
  File "/home/brylie/Code/MaaS_Global/singer/tap-chargebee/lib/python3.8/site-packages/tap_chargebee/__init__.py", line 27, in main
    runner.do_sync()
  File "/home/brylie/Code/MaaS_Global/singer/tap-chargebee/lib/python3.8/site-packages/tap_framework/__init__.py", line 81, in do_sync
    raise e
  File "/home/brylie/Code/MaaS_Global/singer/tap-chargebee/lib/python3.8/site-packages/tap_framework/__init__.py", line 71, in do_sync
    stream.sync()
  File "/home/brylie/Code/MaaS_Global/singer/tap-chargebee/lib/python3.8/site-packages/tap_framework/streams.py", line 142, in sync
    return self.sync_data()
  File "/home/brylie/Code/MaaS_Global/singer/tap-chargebee/lib/python3.8/site-packages/tap_chargebee/streams/base.py", line 193, in sync_data
    max_date = max(
TypeError: can't compare offset-naive and offset-aware datetimes
@fosk06
Copy link

fosk06 commented May 10, 2021

Hello,
I have the same issue

@fosk06
Copy link

fosk06 commented May 10, 2021

INFO METRIC: {"type": "counter", "metric": "record_count", "value": 54, "tags": {"endpoint": "customers"}}
ERROR can't compare offset-naive and offset-aware datetimes
ERROR Failed to sync endpoint customers, moving on!
CRITICAL can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "./tapvenv/bin/tap-chargebee", line 11, in
load_entry_point('tap-chargebee==1.0.3', 'console_scripts', 'tap-chargebee')()
File "/Users/tTrividic/code/python/data-workflows/tapvenv/lib/python3.7/site-packages/singer/utils.py", line 192, in wrapped
return fnc(*args, **kwargs)
File "/Users/tTrividic/code/python/data-workflows/tapvenv/lib/python3.7/site-packages/tap_chargebee/init.py", line 27, in main
runner.do_sync()
File "/Users/tTrividic/code/python/data-workflows/tapvenv/lib/python3.7/site-packages/tap_framework/init.py", line 81, in do_sync
raise e
File "/Users/tTrividic/code/python/data-workflows/tapvenv/lib/python3.7/site-packages/tap_framework/init.py", line 71, in do_sync
stream.sync()
File "/Users/tTrividic/code/python/data-workflows/tapvenv/lib/python3.7/site-packages/tap_framework/streams.py", line 142, in sync
return self.sync_data()
File "/Users/tTrividic/code/python/data-workflows/tapvenv/lib/python3.7/site-packages/tap_chargebee/streams/base.py", line 195, in sync_data
parse(item.get(bookmark_key))
TypeError: can't compare offset-naive and offset-aware datetimes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants