How to solve No JSON object could be decoded when calling the GP service of ArcGIS Server?

This problem occurs because the returned result is in html format, not json format, so it cannot be parsed.

The solution is also very simple, just add 'f':'json'or when requesting the service. 'f':'pjson'The difference between the two is that json is more compact and pjson is easier to read.

Guess you like

Origin blog.csdn.net/esa72ya/article/details/110492472