Comments (11)
views.py line 116 change to request.body.decode('utf-8')
but this should not happen...
from gerapy.
@Germey and line 249.
data = json.loads(request.body.decode('utf-8'))
from gerapy.
Can be a little more detail??
from gerapy.
@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.
may you tell me if service redis and mongod before start gerapy?
from gerapy.
from gerapy.
@mrb957600057 could you please provide the system info and pip list?
from gerapy.
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.
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.
@mrb957600057 thanks~ I'll try to add a middleware to solve these problems of this kind, thanks for your issue.
from gerapy.
fixed by adding middleware
from gerapy.
Related Issues (20)
- python3.10 任务无法运行和显示 HOT 1
- 如何在线配置spider?
- Wrong CSS values in Web CSS Selector UI
- 创建任务后无法删除,且查看任务状态加载失败,帮忙看看原因
- windows10 谷歌浏览器无法上传爬虫代码文件zip HOT 2
- DB error executing 'update_job' (database is locked). Retrying with a new DB connection... HOT 3
- docker germey/gerapy 镜像 cron 任务无法按时运行
- 崔大,启用异步的TWISTED_REACTOR时候,部署就会报错 HOT 1
- 定时任务-到期不执行,或执行一段时间后 变成负值 然后不执行任务 HOT 1
- python3.7 安装换败
- 点击任务状态提示加载失败 HOT 1
- Gerapy任务管理选择多台主机,调度2台,剩下2台未调度
- Python Package Compatibility Issue HOT 1
- Spider Works in Terminal Not in Gerapy
- v0.9.12 run.sh 似乎有问题
- scrapy运行无日志,gerapy请求则会报错 HOT 1
- gerapy构建docker的文件中,run.sh文件编写错误 HOT 1
- 项目管理,创建项目,clone选择分支会报错
- 打包失败 HOT 6
- 项目名称包含 空格 中文名,项目加载失败且无法删除
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gerapy.