Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

logging not working with raven 5.0.0 and Sentry 6.3.3 #467

Closed
mircoc opened this issue Jun 26, 2014 · 1 comment
Closed

logging not working with raven 5.0.0 and Sentry 6.3.3 #467

mircoc opened this issue Jun 26, 2014 · 1 comment

Comments

@mircoc
Copy link

mircoc commented Jun 26, 2014

Hi!

I'm having this error: Client/server version mismatch Unsupported protocol version (5)
using Sentry 6.3.3 and the logging module since some weeks. I think that it's happened after Raven 5.0.0 upgrade, as before was working great.

import logging
from raven import Client
from raven.handlers.logging import SentryHandler

RAVEN_CLIENT_URI = "http://aidsuofhoaisufh:asidufhaisufdh@sentry.myhostname.com/8"

def init_logger(name='ingestion'):
  logger = logging.getLogger(name)
  raven_client = Client(RAVEN_CLIENT_URI, timeout=2, auto_log_stacks=True)
  sh = SentryHandler(raven_client)
  sh.setLevel(logging.ERROR)
  logger.addHandler(sh)
  return logger

logger = init_logger("test")
logger.error("let's see if it work")

>>> Unable to capture event: Client/server version mismatch: Unsupported protocol version (5)
Failed to submit message: u"let's see if it work"

pip freeze | grep raven
raven==5.0.0

Sentry 6.3.3

Thanks in advance,
Mirco

@dcramer
Copy link
Member

dcramer commented Jun 26, 2014

You need to upgrade the server. On Thu, Jun 26, 2014 at 9:11 AM -0700, "Mirco Cipriani" notifications@github.com wrote:

Hi!

I'm having this error: Client/server version mismatch Unsupported protocol version (5)
using Sentry 6.3.3 and the logging module since some weeks. I think that it's happened after Raven 5.0.0 upgrade, as before was working great.

import logging
from raven import Client
from raven.handlers.logging import SentryHandler

RAVEN_CLIENT_URI = "http://aidsuofhoaisufh:asidufhaisufdh@sentry.myhostname.com/8"

def init_logger(name='ingestion'):
logger = logging.getLogger(name)
raven_client = Client(RAVEN_CLIENT_URI, timeout=2, auto_log_stacks=True)
sh = SentryHandler(raven_client)
sh.setLevel(logging.ERROR)
logger.addHandler(sh)
return logger

logger = init_logger("test")
logger.error("let's see if it work")

Unable to capture event: Client/server version mismatch: Unsupported protocol version (5)
Failed to submit message: u"let's see if it work"

pip freeze | grep raven
raven==5.0.0

Sentry 6.3.3

Thanks in advance,
Mirco

—Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants