This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
'xml.etree.ElementTree.Element' object has no attribute 'getchildren' #13
Labels
bug
Something isn't working
Describe the bug
'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
catalog to be generated
Screenshots
n/a
Your environment
Additional context
time=2021-11-19 20:01:01 name=singer level=INFO message=Starting discover time=2021-11-19 20:01:01 name=singer level=INFO message=GET: https://rest.apisandbox.zuora.com/v1/describe /usr/local/lib64/python3.9/site-packages/cryptography/hazmat/backends/openssl/x509.py:15: CryptographyDeprecationWarning: This version of cryptography contains a temporary pyOpenSSL fallback path. Upgrade pyOpenSSL now. warnings.warn( time=2021-11-19 20:01:02 name=singer level=INFO message=METRIC: {"type": "timer", "metric": "http_request_duration", "value": 0.7979657649993896, "tags": {"endpoint": "v1/describe", "status": "succeeded"}} time=2021-11-19 20:01:02 name=singer level=INFO message=GET: https://rest.apisandbox.zuora.com/v1/describe/Account time=2021-11-19 20:01:02 name=singer level=INFO message=METRIC: {"type": "timer", "metric": "http_request_duration", "value": 0.2519099712371826, "tags": {"endpoint": "v1/describe/Account", "status": "succeeded"}} time=2021-11-19 20:01:02 name=singer level=CRITICAL message='xml.etree.ElementTree.Element' object has no attribute 'getchildren' Traceback (most recent call last): File "/usr/local/bin/tap-zuora", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/site-packages/singer/utils.py", line 229, in wrapped return fnc(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/tap_zuora/__init__.py", line 124, in main do_discover(client, force_rest) File "/usr/local/lib/python3.9/site-packages/tap_zuora/__init__.py", line 71, in do_discover catalog = {"streams": discover_streams(client, force_rest)} File "/usr/local/lib/python3.9/site-packages/tap_zuora/discover.py", line 175, in discover_streams stream = discover_stream(client, stream_name, force_rest) File "/usr/local/lib/python3.9/site-packages/tap_zuora/discover.py", line 94, in discover_stream field_dict = get_field_dict(client, stream_name) File "/usr/local/lib/python3.9/site-packages/tap_zuora/discover.py", line 51, in get_field_dict for field_element in etree.find("fields").getchildren(): AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
The text was updated successfully, but these errors were encountered: