Skip to content
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

Open
vinaysrini opened this issue Nov 19, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@vinaysrini
Copy link

Describe the bug
'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

To Reproduce
Steps to reproduce the behavior:

  1. create config.json with REST, sandbox:true, european:false
  2. tap-zuora -c config.json --discover > catalog.json
  3. See error

Expected behavior
catalog to be generated

Screenshots
n/a

Your environment

  • Version of tap: 1.0.0
  • Version of python 3.9.6

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'

@vinaysrini vinaysrini added the bug Something isn't working label Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant