云函数返回 "stackTrace":"re.findall is not a function?

发布于 6 年前作者 olei9995 次浏览最后编辑 6 年前来自 ask

求助,如上:我用request-promise 如从网页获取json数据,准备用re模块解析,便引入了re模块,在云函数后台报错 "errorCode":1,"errorMessage":"user code exception caught","stackTrace":"re.findall is not a function\nTypeError: re.findall is not a function\n

请问哪里错了,该怎么解决?

1 回复
rshen
rshen1 楼4 年前

re是哪个库?