Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 获得<;回应202>;作为此代码的输出,无法获取json_Python_Python 3.x_Azure_Python Requests_Http Post - Fatal编程技术网

Python 获得<;回应202>;作为此代码的输出,无法获取json

Python 获得<;回应202>;作为此代码的输出,无法获取json,python,python-3.x,azure,python-requests,http-post,Python,Python 3.x,Azure,Python Requests,Http Post,代码片段来自此网站,您可以将其用作参考 您能详细描述一下您的问题吗?问题是什么?202其可能会更正postPloadRangeResponse的状态代码。json()给出错误“json.decoder.JSONDecodeError:期望值:第1行第1列” rangeData = { "type": "FeatureCollection", "features": [ { "type":

代码片段来自此网站,您可以将其用作参考

您能详细描述一下您的问题吗?问题是什么?202其可能会更正postPloadRangeResponse的状态代码。json()给出错误“json.decoder.JSONDecodeError:期望值:第1行第1列”
 rangeData = {
 "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          polyBounds
        ]
      }
    }
  ]
}

# Upload the range data to Azure Maps Data service.
uploadRangeResponse = requests.post("https://us.atlas.microsoft.com/mapData?subscription-key={}&api-version=2.0&dataFormat=geojson".format(subscriptionKey), json = rangeData)