地图打印出现400错误,是由于ArcGIS Server发布服务命名的Bug造成

       最近在利用arcgis api for js开发一个打印的功能,起初为了服务名称能规范点,发布的服务都是带后缀MapServer,如在这个项目上命名为GridMapServer,就会出现地图打印功能出现400错误,只要重新起一个名字就行了,希望能帮到大家。这个错误花了几天的时间排查最后才发现,神坑......

"Error executing tool.: Layer "grid500": Failed to create layer from service at http://localhost:6080/arcgis/rest/services/

GridMapServer/MapServer/0.↵ERROR: code:400, Invalid URL, Bad syntax in request.↵Failed to execute (Export Web Map).↵Failed to execute (Export Web Map Task)."

猜你喜欢

转载自blog.csdn.net/lynchee/article/details/80207172