重现问题的步骤是什么?
使用 docker 和 docker compose
1. git克隆 https://github.com/mainflux/ui.git
2. 光盘界面
3. docker-compose -f docker/docker-compose.yml
4. http://localhost //UI 已启动 // 日志在后台运行
5. 使用 emailId 和密码注册/登录。
6. 转到事物--> 设备--> 单击操作下的“+”按钮。
7. 此处添加了新行,我们只能给出名称,其余字段即 [Type , ID] 不可编辑
8.给一些名字说“Device1”然后点击保存即“Tick”按钮
9. 现在尝试删除 Device1 ,UI 会提示您删除按提交
10.在UI中添加的行消失了,并且在屏幕右下角提示“无法删除事物错误:500内部服务器错误”
From Backend logs :
mainflux-things | {"level":"warn","message":"Method remove_thing for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTQyNTcxNzIsImlhdCI6MTU5NDIyMTE3MiwiaXNzIjoibWFpbmZsdXguYXV0aG4iLCJzdWIiOiJrbm93bG9raUBnbWFpbC5jb20iLCJ0eXBlIjowfQ.lpsQXA0Yx5L77x0CpVnVnqHGheQItRDMFXj1GjWR-h8 and thing ea3b9e5c-06a0-46cd-944a-2fcce37c8040 took 1.717998ms to complete with error: remove thing failed : remove thing from redis cache error : redis: nil.","ts":"2020-07-08T15:22:31.428751005Z"}
你是在什么环境下遇到这个问题的?
DigitalOcean 水滴 - Ubuntu Docker 5:19.03.1~3 于 18.04
我也遇到了这个问题。
The message is : Method remove_thing for token ******** and thing ********* took *****ms to complete with error: remove thing failed : remove thing from redis cache error : redis: nil.
@delvinggeeks看起来这不是 UI 错误。 它在这里修复: https ://github.com/mainflux/mainflux/pull/1220
请提取最新的核心服务,然后重试。 如果它仍然不起作用,请在 mainflux/mainflux repo 中打开一个问题。
嗨@manuio 。 我在逻辑上对 ui docker-compose 文件和 mainflux docker-compose 文件进行了比较,我没有看到任何重大变化。 上述问题仅出现在 ui 组件中,但使用 cli 或 curl 的 mainflux 我们可以毫无问题地删除东西
@liuxianqin这个问题应该通过@manuio提到的修复来解决。 请确认它已修复。
@delvinggeeks你能尝试提取最新的图像并再次测试。 如果问题仍然存在,请重新打开此问题。
是的,我已经测试过了。 问题已修复:+1:
@liuxianqin这个问题应该通过@manuio提到的修复来解决。 请确认它已修复。
在提取了一些新的最新图像后它工作了,谢谢。
最有用的评论
是的,我已经测试过了。 问题已修复:+1: