I am not getting map legend in GWC WMTS or WMS service, QGIS returns an error "Returned legend image is flawed". but when I am accessing that layer using WMS in QGIS, Map legend is showing with the layer. Also, When I am accessing a small area with the same style, Map legend is showing in GWC WMS service. I am using GeoServer version 2.12.2. GWC WMS link: http://localhost/geoserver/gwc/service/wms? WMS link: http://localhost/geoserver/wms?
Anyone knows why Map legend is not working in GWC WMS and WMTS?