chaoshu的个人博客分享 http://blog.sciencenet.cn/u/chaoshu

博文

json.decoder.JSONDecodeError: Extra data: line 1 column 1721

已有 4829 次阅读 2020-9-14 17:23 |个人分类:IoT|系统分类:科研笔记

def has_cached_observation(self) -> bool:
     """Returns whether or not a cached observation exists in the database.
     Returns:
         True if cached observation exists, False if not.
     """
     return True if len(self._cache_db) > 0 else False

发现问题出在len(self._cache_db),在cloudExporter中设置的db参数cache.json

     "cloudExporter": {
       "host": "http://192.168.31.144:443/",
       "user": "openadms",
       "password": "geovey",
       "db": "cache.json",
       "cache": "file"
     }

经过百度发现,估计是_cache_db.json文件内容太大了!

清除cache.json缓存文件就ok了;




https://wap.sciencenet.cn/blog-858128-1250541.html

上一篇:GNSS-IOT实现细节
下一篇:windows+nginx+postgresql
收藏 IP: 183.92.251.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-3-29 08:51

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部