iT邦幫忙

0

TypeError: Converting circular structure to JSON該怎麼解決node js

用node.js寫line bot的時候一直遇到TypeError: Converting circular structure to JSON的問題,這個問題是data structure有問題,我嘗試用async/await和flatMap來解決,但是都不行,想請問是否能夠教我這個菜雞如何解決?https://ithelp.ithome.com.tw/upload/images/20220627/20139655XjTwwdURVg.png
https://ithelp.ithome.com.tw/upload/images/20220627/20139655mMuokxUJTc.png
https://ithelp.ithome.com.tw/upload/images/20220627/20139655bhepAW9Tyt.png
https://ithelp.ithome.com.tw/upload/images/20220627/20139655Oxba57wpP5.png

你不覺得, 你的JSON資料是有問題的嗎??
froce iT邦大師 1 級 ‧ 2022-06-28 14:42:35 檢舉
這JSON格式讓我想到某政府機關的開放資料也是這種奇怪的格式。XD
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答