github_tools/pr_comments.py --comments-after zygoloid 273
Loading https://github.com/carbon-language/carbon-lang/pull/273 ...Traceback (most recent call last):
File "github_tools/pr_comments.py", line 457, in <module>
main()
File "github_tools/pr_comments.py", line 438, in main
comments, threads_by_path = _fetch_comments(parsed_args)
File "github_tools/pr_comments.py", line 390, in _fetch_comments
client = github_helpers.Client(parsed_args)
File "github_tools/github_helpers.py", line 51, in __init__
self._client = gql.Client(
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/gql/client.py", line 42, in __init__
schema = build_client_schema(introspection)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 310, in build_client_schema
return GraphQLSchema(
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/schema.py", line 106, in __init__
self._type_map = GraphQLTypeMap(initial_types)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 31, in __init__
self.update(reduce(self.reducer, types, OrderedDict())) # type: ignore
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 142, in reducer
reduced_map = cls.reducer(reduced_map, getattr(field, "type", None))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 142, in reducer
reduced_map = cls.reducer(reduced_map, getattr(field, "type", None))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 85, in reducer
return cls.reducer(map_, type_.of_type)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 142, in reducer
reduced_map = cls.reducer(reduced_map, getattr(field, "type", None))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 85, in reducer
return cls.reducer(map_, type_.of_type)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 142, in reducer
reduced_map = cls.reducer(reduced_map, getattr(field, "type", None))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 100, in reducer
reduced_map = cls.reducer(reduced_map, t)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 142, in reducer
reduced_map = cls.reducer(reduced_map, getattr(field, "type", None))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 85, in reducer
return cls.reducer(map_, type_.of_type)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 142, in reducer
reduced_map = cls.reducer(reduced_map, getattr(field, "type", None))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 85, in reducer
return cls.reducer(map_, type_.of_type)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 142, in reducer
reduced_map = cls.reducer(reduced_map, getattr(field, "type", None))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/typemap.py", line 109, in reducer
field_map = type_.fields
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/pyutils/cached_property.py", line 22, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/definition.py", line 198, in fields
return define_field_map(self, self._fields)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/type/definition.py", line 212, in define_field_map
field_map = field_map()
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 163, in <lambda>
fields=lambda: build_field_def_map(object_introspection),
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 224, in build_field_def_map
[
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 232, in <listcomp>
args=build_input_value_def_map(f.get("args"), GraphQLArgument),
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 248, in build_input_value_def_map
[
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 249, in <listcomp>
(f["name"], build_input_value(f, argument_type))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 258, in build_input_value
default_value=build_default_value(input_value_introspection),
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/utils/build_client_schema.py", line 244, in build_default_value
return value_from_ast(parse_value(default_value), get_input_type(f["type"]))
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/language/parser.py", line 76, in parse_value
return parse_value_literal(parser, False)
File "/Users/richardsmith/.pyenv/versions/3.8.6/lib/python3.8/site-packages/graphql/language/parser.py", line 512, in parse_value_literal
raise unexpected(parser)
graphql.error.syntax_error.GraphQLSyntaxError: Syntax Error GraphQL (1:1) Unexpected Name "null"
1: null
^
This seems to happen for all PRs. (Tested 198, 199, 273.) Doesn't look like anything's changed in the script.
{'name': 'isVerified', 'description': 'Filter by if the domain is verified.', 'type': {'kind': 'SCALAR', 'name': 'Boolean', 'ofType': None}, 'defaultValue': 'null'}