weakish
weakish
目前 Node.js SDK 有这样的功能: ```js env DEBUG=leancloud:request:error lean up ```
```js const d = await new AV.Query('TestObject').get('5f27bc73fbb489000824300d') console.log(d.get('testList')) listData = d.get('testList') listData.push('debug') await d.save() ``` 上面这段 JS 代码,最终云端的 `testList` 会包含 `debug` 这个值,但是等效的 Python 代码,`testList` 并不会包含 `debug` 这个值。 python SDK 的...
> Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2,...
更详细的调试日志
现在调试日志用的是 requests (也就是 urllib3)的日志,只有 url 和 status code,没有 POST 请求的 body,也没有 http header。 顺便记录下 python 3 下如何开启完整日志: ```python import http.client http.client.HTTPConnection.debuglevel=5 import logging logging.basicConfig(level=logging.DEBUG) import leancloud # leancloud.init(...) ```
参考 leancloud/javascript-sdk#579 的做法(js 用的是 polly.js,python 对应的库是 vcrpy)
有些 REST API 提供的功能没有支持,比如 `/1.2/rtm/clients/{client_id}/messages` related ticket: 20970 related forum topic: [20706](https://forum.avoscloud.com/t/python-sdk-1-1-api/20706)