title: What is json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
body: <p>I am requesting a face comparing API. Where you send 2 pictures and it return if they are the same person or not Here is the link:
  <a href="https://www.faceplusplus.com/face-comparing/#demo" rel="nofollow noreferrer">Face++ API</a></p>
  
  <p>In the documentation, they mentioned you can request it like this:</p>
  
  <pre><code>curl -X POST "https://api-us.faceplusplus.com/facepp/v3/compare" \
  -F "api_key=&lt;api_key&gt;" \
  -F "api_secret=&lt;api_secret&gt;" \
  -F "face_token1=c2fc0ad7c8da3af5a34b9c70ff764da0" \
  -F "face_token2=ad248a809408b6320485ab4de13fe6a9"
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>result = json.loads(os.popen('curl -X POST "https://api-us.faceplusplus.com/facepp/v3/compare/api_key=myKey/api_secret=mySecret/https://us-mc-prod-asset.oss-us-west-1.aliyuncs.com/mc-official/scripts/demoScript/images/demo-pic33.jpg/https://us-mc-prod-asset.oss-us-west-1.aliyuncs.com/mc-official/scripts/demoScript/images/demo-pic39.jpg"').read())
  </code></pre>
  
  <p>But when I run it, I am getting this:</p>
  
  <pre><code>% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  Traceback (most recent call last):
    File "/Users/max/Desktop/Programming/Face/venv/face.py", line 15, in &lt;module&gt;
      result = json.loads(os.popen('curl -X POST "https://api-us.faceplusplus.com/facepp/v3/compare/api_key=myKey/api_secret=mySecret/https://us-mc-prod-asset.oss-us-west-1.aliyuncs.com/mc-official/scripts/demoScript/images/demo-pic33.jpg/https://us-mc-prod-asset.oss-us-west-1.aliyuncs.com/mc-official/scripts/demoScript/images/demo-pic39.jpg"').read())
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
      return _default_decoder.decode(s)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
      raise JSONDecodeError("Expecting value", s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>
  
  <p>I tried to do in another way, using requests:</p>
  
  <pre><code>result = requests.get( "https://api-us.faceplusplus.com/facepp/v3/compare/api_key=myKey/api_secret=mySecret/https://us-mc-prod-asset.oss-us-west-1.aliyuncs.com/mc-official/scripts/demoScript/images/demo-pic33.jpg/https://us-mc-prod-asset.oss-us-west-1.aliyuncs.com/mc-official/scripts/demoScript/images/demo-pic39.jpg")
  </code></pre>
  
  <p>But, I am getting this:</p>
  
  <pre><code>&lt;Response [404]&gt;
  </code></pre>