Skip to content

Cookie parsing issue and frontend blank screen on malformed tweet entities #3

@virtuecho

Description

@virtuecho

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:

fixRangegetEntitiesenrichTweetTweetContent

It looks like some tweet entity or media data may be incomplete or malformed, and one problematic tweet can crash the whole frontend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions