jeonghwan-kim / jeonghwan-kim.github.com

김정환 블로그 코드 저장소 입니다.
https://jeonghwan-kim.github.io/
BSD Zero Clause License
41 stars 9 forks source link

dev/2021/08/31/disqus-to-utterances #306

Closed utterances-bot closed 3 months ago

utterances-bot commented 9 months ago

블로그 댓글 서비스 교체: Disqus → Utterances 데이터 이관 | 김정환 블로그

https://jeonghwan-kim.github.io/dev/2021/08/31/disqus-to-utterances.html

Akbarsait commented 9 months ago

Hi, Thanks for writing this detailed post on the process. I running into issues while trying your script. Any idea? Disqus backup file(tmp5gNlHX) loaded: 55 posts and 243 comments found. TypeError: Cannot read properties of undefined (reading '0') at createComment (D:\myapps\disqus-to-utterances\src\github.ts:66:38) at Array.map () at Object.attachCommentOnIssue (D:\myapps\disqus-to-utterances\src\github.ts:49:31) at D:\myapps\disqus-to-utterances\src\index.ts:76:23 at Array.map () at D:\myapps\disqus-to-utterances\src\index.ts:76:8 at step (D:\myappse\disqus-to-utterances\src\index.ts:52:23) at Object.next (D:\myapps\disqus-to-utterances\src\index.ts:33:53) at fulfilled (D:\myapps\disqus-to-utterances\src\index.ts:24:58) PS D:\myapps\disqus-to-utterances>

jeonghwan-kim commented 9 months ago

@Akbarsait Thank you for using it.

Looking at the error log, I see that an exception occurred in this part.

This seems to be because there is no author value for the data from disqus. It says post.author is undefined value.

I think this can be solved by checking if the author value is in the exported disqus file.