← Back to team overview

graphite-dev team mailing list archive

Re: [Question #205774]: exceptions.TypeError: must be encoded string without NULL bytes, not str

 

Question #205774 on Graphite changed:
https://answers.launchpad.net/graphite/+question/205774

    Status: Open => Solved

Mike Wylie confirmed that the question is solved:
I have a solution.  To be clear there was no fault with the graphite
tools either.

My code to send data to graphite is written in Jython and there were
some problems with standard python code so the guy setting it up for me
resorted to java and used an ObjectOutputStream to send the data.

It's taken me a while to figure it out, but ObjectOutput stream sends
the text as an object, and must add a little binary padding at the start
of my metrics, causing all of my problems.  I swapped out to using a
Java PrintWriter, which is specifically for text and hey presto. My
metrics are now clean.

Thanks for the help Michael, you gave me enough to crack it in the end.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.