Duplicate API/Services after importing into Microcks
See original GitHub issueIn a local Microcks (v.1.5.1-SNAPSHOT) I imported a graphql schema and a postman collection with mocked data, and another postman collection for rest services.
After that I exported the snapshot that I imported via api/import endpoint to Microcks which I bootstraps using the Helm package manager.
I tried to get the services I imported via the api/services endpoint and they returned duplicates and when I tried to call an endpoint to return the mocked data this is the error message:
7:29:29.646 [ERROR] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.IncorrectResultSizeDataAccessException: Query { "$java" : Query: { "name" : "XXX API", "version" : "1.0"}, Fields: {}, Sort: {} } returned non unique result.] with root cause org.springframework.dao.IncorrectResultSizeDataAccessException: Query { "$java" : Query: { "name" : "XXX API", "version" : "1.0"}, Fields: {}, Sort: {} } returned non unique result
I have already talked to @hguerrero about this issue
Issue Analytics
- State:
- Created a year ago
- Comments:10 (6 by maintainers)
For now, I was not able to reproduce duplicate imports when importing back on Microcks running on docker-compose.
Here’s for reference the content of the
microcks-repository.json
export file:I’m gonna try on a Kubernetes cluster with Microcks
1.5.0
installed with Helm as well.Hi @matteocastellotti
I’m going to check this. I’ll use:
Version 1.5.1-SNAPSHOT Build timestamp 2022-03-24T06:35:18Z
Will let you know my findings.