Skip to content

Error is occured at list a Schema #39

Open
@jihyungSong

Description

@jihyungSong

I am encountering the following error message when querying the Schema (list) in the repository service. I have currently installed it using the Helm chart. the chart version is 1.12.12. The repository image is cloudforet/repository:1.12.5.

> helm list
NAME       	NAMESPACE	REVISION	UPDATED                             	STATUS  	CHART                     	APP VERSION
cloudforet 	spaceone 	5       	2023-12-26 22:40:25.170089 +0900 KST	deployed	spaceone-1.12.12          	1.12.12

Pod log

2023-12-26T23:42:28.558Z [DEBUG] a692a8b3b8199047c33f86db34954579 domain-17db7164329b bluese05@gmail.com Schema.list (authentication_api_key_handler.py:45) [_check_api_key] check api key state (api-key-e0fb57a341a8)
2023-12-26T23:42:28.578Z [INFO] a692a8b3b8199047c33f86db34954579 domain-17db7164329b bluese05@gmail.com Schema.list (service.py:111) (REQUEST) => {"query": {}, "repository_id": "repo-managed"}
2023-12-26T23:42:28.585Z [ERROR]     (api.py:69) (Error) => 'SchemasInfo' load failed. (reason = Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.)
	error_code = ERROR_LOCATOR
	status_code = INTERNAL
	message = 'SchemasInfo' load failed. (reason = Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.)
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/locator.py", line 47, in get_info
    return getattr(info_module, name_or_object)(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/info/schema_info.py", line 39, in SchemasInfo
    return schema_pb2.SchemasInfo(results=list(
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/info/schema_info.py", line 35, in SchemaInfo
    return schema_pb2.SchemaInfo(**info)
TypeError: Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/pygrpc/api.py", line 91, in wrapper
    response_or_iterator = func(self, request_or_iterator, context)
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/api/v1/schema.py", line 38, in list
    return self.locator.get_info('SchemasInfo', schemas_data, total_count, minimal=self.get_minimal(params))
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/service/service.py", line 50, in __exit__
    raise exc_val
  File "/usr/local/lib/python3.8/site-packages/spaceone_repository-1.12.5-py3.8.egg/spaceone/repository/api/v1/schema.py", line 38, in list
    return self.locator.get_info('SchemasInfo', schemas_data, total_count, minimal=self.get_minimal(params))
  File "/usr/local/lib/python3.8/site-packages/spaceone_core-0.0.0-py3.8.egg/spaceone/core/locator.py", line 55, in get_info
    raise ERROR_LOCATOR(name=name_or_object, reason=e, _meta={'type': 'info'})
spaceone.core.error.ERROR_LOCATOR:
	error_code = ERROR_LOCATOR
	status_code = INTERNAL
	message = 'SchemasInfo' load failed. (reason = Parameter to MergeFrom() must be instance of same class: expected google.protobuf.ListValue got float.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions