There has been a recent issue I am facing with java play framework. A route, set in the routes file, is attached to a method in the controller.
When I am looking at the logs, I see that the method in the controller is being called twice when only one call is made to the server to the attached route.
Is this an issue with the framework?
routes:
POST /production/publication/success controllers.Application.importDataAndUpdate()
Application.java
Set<String> requestHeader = request().headers().keySet();
Iterator<String> it = requestHeader.iterator();
while (it.hasNext()) {
Logger.debug(request().getHeader(it.next()));
}
When the payload in the call is big then the logs show that the method in application java is being called twice. Why does this happen?