Git Product home page Git Product logo

Comments (11)

Germey avatar Germey commented on May 11, 2024 2

views.py line 116 change to request.body.decode('utf-8')
but this should not happen...

from gerapy.

microacup avatar microacup commented on May 11, 2024 1

@Germey and line 249.

data = json.loads(request.body.decode('utf-8'))

from gerapy.

thsheep avatar thsheep commented on May 11, 2024

Can be a little more detail??

from gerapy.

mrb957600057 avatar mrb957600057 commented on May 11, 2024

@thsheep
when crate a project,browser says "Failed to Save"
terminal say : TypeError: the JSON object must be str, not 'bytes'
how to do with it?

from gerapy.

mrb957600057 avatar mrb957600057 commented on May 11, 2024

may you tell me if service redis and mongod before start gerapy?

from gerapy.

Germey avatar Germey commented on May 11, 2024


got this traceback offline

from gerapy.

Germey avatar Germey commented on May 11, 2024

@mrb957600057 could you please provide the system info and pip list?

from gerapy.

Germey avatar Germey commented on May 11, 2024

same error on debian:

Request Method: | POST
-- | --
http://127.0.0.1:8000/api/client/create
2.0.1
TypeError
the JSON object must be str, not 'bytes'
/usr/lib/python3.5/json/__init__.py in loads, line 312
/usr/bin/python3
3.5.3
['/usr/local/bin',  '/usr/lib/python35.zip',  '/usr/lib/python3.5',  '/usr/lib/python3.5/plat-x86_64-linux-gnu',  '/usr/lib/python3.5/lib-dynload',  '/usr/local/lib/python3.5/dist-packages',  '/usr/lib/python3/dist-packages']
Mon, 22 Jan 2018 15:23:41 +0800

from gerapy.

mrb957600057 avatar mrb957600057 commented on May 11, 2024

OK! thank you! The problem has been resolved with your solution.
views.py line 116 and line 249 change to request.body.decode('utf-8')
@Germey @Germey @microacup

from gerapy.

Germey avatar Germey commented on May 11, 2024

@mrb957600057 thanks~ I'll try to add a middleware to solve these problems of this kind, thanks for your issue.

from gerapy.

Germey avatar Germey commented on May 11, 2024

fixed by adding middleware

from gerapy.

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.