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

ContinuousFeed NameError during unmarshalling of SourceResponse #92

Open
GKTheOne opened this issue Jun 11, 2024 · 1 comment
Open

ContinuousFeed NameError during unmarshalling of SourceResponse #92

GKTheOne opened this issue Jun 11, 2024 · 1 comment

Comments

@GKTheOne
Copy link

GKTheOne commented Jun 11, 2024

First let me apologise for the lack of specificity atm. I'm writing this at the end of my work day after I worked around the issue, so I'm writing this from memory. I do hope to come back and fill in some details, provide proper code, etc, but I may be told to focus my time/energy elsewhere now that our code is working again(🙄) 🙏

Using version 0.50.1, I encountered a NameError in the sources.get_source call, and traceback took me through utils.unmarshal_json to the unmarshal.from_dict call (and then into dataclasses_json library).
It seems to be choking on the models.SourceE2eTestCloud use in models.SourceConfiguration, as the NameError mentions that ContinuousFeed cannot be found (?, apologies, I've forgotten the exact message).

@felixboasso
Copy link

felixboasso commented Jul 4, 2024

Yes same error for me when trying to create a Source element
File "/usr/local/lib/python3.11/site-packages/airbyte_api/sources.py", line 63, in create_source out = utils.unmarshal_json(http_res.text, Optional[models.SourceResponse]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/airbyte_api/utils/utils.py", line 825, in unmarshal_json out = unmarshal.from_dict({"res": json_dict}, infer_missing=infer_missing) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/dataclasses_json/api.py", line 70, in from_dict return _decode_dataclass(cls, kvs, infer_missing) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 233, in _decode_dataclass init_kwargs[field.name] = _decode_generic(field_type, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 329, in _decode_generic res = _decode_type(type_arg, value, infer_missing) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 247, in _decode_type return _decode_generic(type_, value, infer_missing) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 321, in _decode_generic res = _decode_dataclass(origin, value, infer_missing) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 178, in _decode_dataclass types = get_type_hints(cls) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/typing.py", line 2377, in get_type_hints value = _eval_type(value, base_globals, base_locals) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/typing.py", line 395, in _eval_type return t._evaluate(globalns, localns, recursive_guard) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/typing.py", line 910, in _evaluate self.__forward_value__ = _eval_type( ^^^^^^^^^^^ File "/usr/local/lib/python3.11/typing.py", line 409, in _eval_type ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.__args__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/typing.py", line 409, in <genexpr> ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.__args__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/typing.py", line 395, in _eval_type return t._evaluate(globalns, localns, recursive_guard) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/typing.py", line 905, in _evaluate eval(self.__forward_code__, globalns, localns), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'ContinuousFeed' is not defined

Work with 0.50.0

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

No branches or pull requests

2 participants