Giter VIP home page Giter VIP logo

Comments (5)

fundead avatar fundead commented on July 18, 2024

Hi Scott,

Thanks heaps for finding this one and the comprehensive report. I've managed to repro this locally and am working on a fix, will look at getting this out in a point release in the very near term.

Regards,

Callum Gavin
Mindscape Limited

from raygun4py.

fundead avatar fundead commented on July 18, 2024

So as it turns out, this appeared to most likely be a bug/unimplemented feature in jsonpickle. With the previous jsonpickle 0.7.0 dep, adding a unicode environment variable with a high code point such as ☼ (0xc2 0xa4) causes the test suite to throw the UnicodeDecodeError: 'utf8' codec can't decode byte 0xa4. I also previous repro'd your bytestring example on Windows where it threw the same error.

These look to be fixed by bumping jsonpickle to the latest v0.9.2, most likely due to including the fix at jsonpickle/jsonpickle#110. The end result is that large binary values such as the unicode sun and bytestrings appear in the Raygun payload as

"byteString": {
    "py/bytes": "=8D=80=92uK!M=ED"
}

Seems to be passing on travis, if you want to pull down the PR and run python setup.py install you would be able to confirm the fix, however as this appears to resolve an outstanding bug I'll look at getting this released later today if there's no objections.

from raygun4py.

ScottSturdivant avatar ScottSturdivant commented on July 18, 2024

Hi Callum,

Thanks a lot for taking a look into it. I won't be able to apply the PR until tomorrow, but glancing over it, it certainly seems promising. So feel free to go ahead and merge in it and cut the release. Should I run into any troubles with v3.0.2, I'll just submit a new issue!

Thanks again!

from raygun4py.

ScottSturdivant avatar ScottSturdivant commented on July 18, 2024

OK, I did manage to get this pulled down and applied. All looks good!

from raygun4py.

fundead avatar fundead commented on July 18, 2024

Great to hear! Releasing this now as v3.0.2.

from raygun4py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.