I encountered two issues while running this project locally.
1. Cookie format from Copy as cURL is not recognized
When copying the UserTweets request from Chrome DevTools, the cookie may be exported as a separate cookie option instead of a normal cookie header.
In this case, the crawler reports that the cURL is missing cookie, even though the copied cURL actually contains cookies.
It seems the parser only recognizes cookies when they appear as a cookie header, but does not recognize the browser-exported cookie format.
2. Frontend becomes blank after loading
After generating tweet data and running pnpm dev, the page loads briefly and then becomes blank.
The browser console shows this error:
Cannot read properties of undefined (reading 'indices')
The stack trace points to tweet rendering, especially around:
fixRange → getEntities → enrichTweet → TweetContent
It looks like some tweet entity or media data may be incomplete or malformed, and one problematic tweet can crash the whole frontend.
I encountered two issues while running this project locally.
1. Cookie format from
Copy as cURLis not recognizedWhen copying the
UserTweetsrequest from Chrome DevTools, the cookie may be exported as a separate cookie option instead of a normalcookieheader.In this case, the crawler reports that the cURL is missing
cookie, even though the copied cURL actually contains cookies.It seems the parser only recognizes cookies when they appear as a
cookieheader, but does not recognize the browser-exported cookie format.2. Frontend becomes blank after loading
After generating tweet data and running
pnpm dev, the page loads briefly and then becomes blank.The browser console shows this error:
Cannot read properties of undefined (reading 'indices')The stack trace points to tweet rendering, especially around:
fixRange→getEntities→enrichTweet→TweetContentIt looks like some tweet entity or media data may be incomplete or malformed, and one problematic tweet can crash the whole frontend.