[
https://issues.apache.org/jira/browse/NIFIREG-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16339249#comment-16339249
]
Daniel Chaffelson commented on NIFIREG-129:
-------------------------------------------
Here's the Python output - there's nothing in the nifi-registry-app.log because
it's not getting out of the client.
{noformat}
def get_latest_flow_ver(bucket_id, flow_id):
try:
return registry.BucketFlowsApi().get_latest_flow_version(
bucket_id, flow_id
)
except ApiExceptionR as e:
raise ValueError(e.body)
>>versioning.get_latest_flow_ver(bucket.identifier, flow.identifier)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/versioning.py", line 230,
in get_latest_flow_ver
bucket_id, flow_id
File
"/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/apis/bucket_flows_api.py",
line 853, in get_latest_flow_version
(data) = self.get_latest_flow_version_with_http_info(bucket_id, flow_id,
**kwargs)
File
"/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/apis/bucket_flows_api.py",
line 940, in get_latest_flow_version_with_http_info
collection_formats=collection_formats)
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/api_client.py",
line 326, in call_api
_return_http_data_only, collection_formats, _preload_content, _request_timeout)
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/api_client.py",
line 161, in __call_api
return_data = self.deserialize(response_data, response_type)
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/api_client.py",
line 239, in deserialize
return self.__deserialize(data, response_type)
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/api_client.py",
line 279, in __deserialize
return self.__deserialize_model(data, klass)
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/api_client.py",
line 629, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/api_client.py",
line 279, in __deserialize
return self.__deserialize_model(data, klass)
File "/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/api_client.py",
line 631, in __deserialize_model
instance = klass(**kwargs)
File
"/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/models/versioned_flow_snapshot.py",
line 60, in __init__
self.snapshot_metadata = snapshot_metadata
File
"/Users/dchaffey/PycharmProjects/Nipyapi/nipyapi/registry/models/versioned_flow_snapshot.py",
line 90, in snapshot_metadata
raise ValueError("Invalid value for `snapshot_metadata`, must not be `None`")
ValueError: Invalid value for `snapshot_metadata`, must not be `None`{noformat}
> swagger spec missing snapshot_metadata param for bucket_flows_api
> -----------------------------------------------------------------
>
> Key: NIFIREG-129
> URL: https://issues.apache.org/jira/browse/NIFIREG-129
> Project: NiFi Registry
> Issue Type: Bug
> Affects Versions: 0.1.0, 0.2.0
> Reporter: Daniel Chaffelson
> Assignee: Kevin Doran
> Priority: Major
>
> When calling methods to retrieve versioned flows from the bucket_flows_api (
> get_flow, get_flow_version, get_latest_flow_version, etc) the spec calls for
> a bucket_id and a flow_id, however the endpoint returns the error "Invalid
> value for `snapshot_metadata`, must not be `None`"
> Presumably there is a parameter missing.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)