Sentry responded with an API error: APIError(No JSON data was found)

When I met python2 and python3, the problems were different.
python2:

raven test http://6a4e2cbbece649d79fb40c8511217dbc:b09b1b592d4c496db3a18cb61b1a63fd@sentry.corp.bianlifeng.com/4
Using DSN configuration:
  http://***@sentry.corp.bianlifeng.com/4

Client configuration:
  base_url       : http://sentry.corp.bianlifeng.com
  project        : 4
  public_key     : 6a4e2cbbece649d72fb40c8511217dbc
  secret_key     : b09b1b592d41496db3a18cb61b1a63fd

Sending a test message... Event ID was '7c7c7d10ba2d43faa7026f0c4e68a7f8'
No handlers could be found for logger "sentry.errors"
error!

python3:

raven test http://6a4e2cbbece649d79fb40c8511217dbc:b09b1b592d4c496db3a18cb61b1a63fd@sentry.corp.bianlifeng.com/4
Using DSN configuration:
  http://***@sentry.corp.bianlifeng.com/4

Client configuration:
  base_url       : http://sentry.corp.bianlifeng.com
  project        : 4
  public_key     : 6a4e2cbbece449d79fb40c8511217dbc
  secret_key     : b09b1b591d4c496db3a18cb61b1a63fd

Sending a test message... Event ID was 'a1a2c98f27e0492f960bc123407094d8'
Sentry responded with an API error: APIError(No JSON data was found)
['This is a test message generated using ``raven test``']
error!

Env:

# python2
raven==6.8.0
python2.7.9

# python3
raven==6.8.0
python3.6.5

whats the problem?

There’s a good chance the problem is the same, and the server is misconfigured.

No handlers could be found for logger “sentry.errors”

That means “we are trying to log an error, but its theres no output handler”. That error could (and likely is) the same as the one you’re seeing in Python 3.