Issues
Error#7e0b41aa
TypeError
Cannot read properties of undefined (reading 'username')
src/parse.ts › mapUser · twitter-scraper
Events
932
Users
121
First seen
May 28
Last seen
14m ago
Tags
actorseemuapps/twitter-scraperbuild1.2.0originAPIuserIsPayingtruerelease1.2.0
Input
actor run input{
"username": "elonmusk",
"maxTweets": 200,
"includeReplies": false,
"includeRetweets": false,
"sinceDate": "2026-05-01",
"proxyConfiguration": {
"useApifyProxy": true
}
}Stack trace
most recent call firstmapUsersrc/parse.ts:64in app
59export function mapUser(tweet: TimelineTweet): UserRecord {60 const author = tweet.author;6162 return {63 id: author?.id ?? tweet.authorId,64 username: author.username,65 displayName: author.displayName,66 avatarUrl: author.profileImageUrl,67 followersCount: author.followersCount ?? 0,68 verified: author.isVerified === true,69 };
Array.mapnode:internal
handleTimelinesrc/parse.ts:51in app
46export async function handleTimeline(response: TimelineResponse) {47 const tweets = response.data?.timeline?.entries ?? [];48 const originals = tweets.filter((tweet) => !tweet.isRetweet);4950 logger.info(`Parsing ${originals.length} timeline entries`);51 const users = originals.map(mapUser);5253 await Dataset.pushData(54 originals.map((tweet, index) => ({ ...tweet, author: users[index] })),55 );56}
mainsrc/main.ts:22in app
17await Actor.init();1819const input = await Actor.getInput<Input>();20const client = new TwitterClient({ proxyConfiguration });21const timeline = await client.fetchTimeline(input.username);22await handleTimeline(timeline);2324logger.info('Timeline stored successfully');25await Actor.exit();
Breadcrumbs
leading up to the error- logtweet.author was null for id 1788…−0s
- httpGET /graphql/UserTweets → 200 (entries: 40)−1s
- navigationcursor → page 3−4s
- httpGET /graphql/UserTweets → 200 (entries: 40)−6s