andrewmlim commented on pull request #319:
URL: https://github.com/apache/nifi-registry/pull/319#issuecomment-830366080


   > Related to my last comment, here are the messages in the error dialogs I 
have found so far:
   > 
   > * Non flow definition JSON file: "Cannot create versioned flow snapshot - 
flowContents must not be null"
   > * Incomplete flow definition JSON file: "Deserialization of uploaded JSON 
failed"
   > 
   > It would be great if we could make these error messages more user 
friendly. But that could definitely be done as a separate Jira/PR. I wouldn't 
block this PR to address this.
   
   For the incomplete flow definition JSON file, the error I see now when 
importing is: "Unexpected end-of-input: expected close marker for Object (start 
marker at [Source: 
(org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream);
 line: 1, column: 1]) at [Source: 
(org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream);
 line: 2, column: 1]"
   
   which is more specific to the issue (that there is no closing } in the 
JSON), but less readable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to