spring-cloud-dataflow
spring-cloud-dataflow copied to clipboard
Unable to view log from task executions in Spring Cloud Dataflow UI
In v2.11.1, navigate to a task execution and click on "view log", the UI shows the spinner and does not show the logs Browser inspect shows the following errors
Mixed Content: The page at 'https://' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://'. This request has been blocked; the content must be served over HTTPS.
ERROR TypeError: d is not iterable at catchError (main.145f644157e8c472.js:1:279671) at main.145f644157e8c472.js:1:185042
This was working fine in v2.10
Can you please advice if there is a workaround for this? Changing browser security is not an option.
How is your application deployed? Are you behind a reverse proxy? The URL is produced based on the application knowledge of the server. https://docs.spring.io/spring-framework/docs/5.3.x/reference/html/web.html#filters-forwarded-headers
Thank you for the response. I have the following 2 comments to add
- The same setup and the same proxy settings work perfectly with v2.10. Is this a new change in v2.11?
- The problem does not manifest on the Task->View Log. However, Task Executions->View Log show this problem. Screenshots attached for reference
What Platform are you deploying your applications?
This is configured on CentOS8 on Kubernetes 1.25.8. Please note that this issue not observed in v2.10 on the same setup.
Thank you, K
@knkhats
Can you use the browser developer tools to view the JSON response when viewing the task.
the request will contain: /tasks/executions/{id}?schemaTarget={bootVersion}
This response should contain something like:
"_links": {
"tasks/logs": {
"href":
}
}
Can you verify that the url is the same as the application?
Hello @corneil , The application url has https://. The url in "_links": { "tasks/logs": { "href": has http:// Everything else in the url matches.