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

Running into TypeError within library sourcecode #93

Open
rgreweldinger opened this issue Jun 26, 2023 · 0 comments
Open

Running into TypeError within library sourcecode #93

rgreweldinger opened this issue Jun 26, 2023 · 0 comments

Comments

@rgreweldinger
Copy link

We encounter the following error:
request = service.placements().list(profileId=profileId)\n File \"/usr/local/airflow/.local/lib/python3.7/site-packages/googleapiclient/discovery.py\", line 980, in method\n for pvalue in pvalues:\nTypeError: 'int' object is not iterable", "timestamp": "2023-06-22T07:33:52.779813Z", "level": "ERROR"
We've investigated this and concluded that the error is in the library that you provide. More specifically, in the following piece of code (line 1065):

        for name, regex in parameters.pattern_params.items():
            if name in kwargs:
                if isinstance(kwargs[name], str):
                    pvalues = [kwargs[name]]
                else:
                    pvalues = kwargs[name]
                for pvalue in pvalues:
                    if re.match(regex, pvalue) is None:
                        raise TypeError(
                            'Parameter "%s" value "%s" does not match the pattern "%s"'
                            % (name, pvalue, regex)
                        )

As we did not change anything on our side, we are wondering if something changed on your side.
I hope you can help us with this. We are looking forward to your answer.

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

1 participant