EDIT :
I replaced the url to my arcgis server by the IP address and everything worked. It was probably a problem with the web adaptor.
I am trying to print a map that I made with ArcGIS Server 10.2 and ArcGIS javascript API. If I remove the layers from ArcGIS Server it works (with ESRI basemap)