Skip to content

Instantly share code, notes, and snippets.

@whoisstan
Created August 21, 2017 12:31
Show Gist options
  • Save whoisstan/dcba1471094b984514c436fd395364e2 to your computer and use it in GitHub Desktop.
Save whoisstan/dcba1471094b984514c436fd395364e2 to your computer and use it in GitHub Desktop.
Unhandled rejection Error: Integer is unsafe
const obj={
"_id": "5998e0e7190855d671bbce52",
"source_creator": {
"type": "scripts",
"id": "55ec63d54db0c69c6293baa5"
},
"source_property": {
"id": "5998e0e6e33c9cd672b21727"
},
"type": "user",
"parent": "588a380faaaaaec3f4e65d2b",
"value": {
"created_at": "Sun Aug 20 00:39:14 +0000 2017",
"id": 899068272867328000,
"id_str": "899068272867328002",
"text": "RT @RedApplePol: The rise and humiliating fall of #ChrisCantwell🎃#Charlottesville’s starring ‘fascist’ - The Washington Post https://t.co/C…",
"truncated": false,
"entities": {
"hashtags": [
{
"text": "ChrisCantwell",
"indices": [
50,
64
]
},
{
"text": "Charlottesville",
"indices": [
65,
81
]
}
],
"symbols": [],
"user_mentions": [
{
"screen_name": "RedApplePol",
"name": "redapplepolitics",
"id": 3309219794,
"id_str": "3309219794",
"indices": [
3,
15
]
}
],
"urls": []
},
"metadata": {
"iso_language_code": "en",
"result_type": "recent"
},
"source": "<a href=\"http://twitter.com/#!/download/ipad\" rel=\"nofollow\">Twitter for iPad</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 225137098,
"id_str": "225137098",
"name": "Pam",
"screen_name": "Cleopatra40",
"location": "",
"description": "Huge N&V fan, been watching since Sept. 1992. They're what got me hooked. Write #YR/Newman based fanfiction, have my own series. Love to talk about the show,N&V",
"url": "https://t.co/VfChM2Bs7l",
"entities": {
"url": {
"urls": [
{
"url": "https://t.co/VfChM2Bs7l",
"expanded_url": "http://cleoscafe.wordpress.com/",
"display_url": "cleoscafe.wordpress.com",
"indices": [
0,
23
]
}
]
},
"description": {
"urls": []
}
},
"protected": false,
"followers_count": 2548,
"friends_count": 2417,
"listed_count": 245,
"created_at": "Fri Dec 10 19:57:30 +0000 2010",
"favourites_count": 4332,
"utc_offset": -14400,
"time_zone": "Eastern Time (US & Canada)",
"geo_enabled": false,
"verified": false,
"statuses_count": 153371,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "DBE9ED",
"profile_background_image_url": "http://pbs.twimg.com/profile_background_images/378800000051118571/49573c3a025720d9f5cc467a86386080.jpeg",
"profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/378800000051118571/49573c3a025720d9f5cc467a86386080.jpeg",
"profile_background_tile": true,
"profile_image_url": "http://pbs.twimg.com/profile_images/663215487661289473/WkfY6lHd_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/663215487661289473/WkfY6lHd_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/225137098/1351478643",
"profile_link_color": "CC3366",
"profile_sidebar_border_color": "FFFFFF",
"profile_sidebar_fill_color": "E6F6F9",
"profile_text_color": "333333",
"profile_use_background_image": true,
"has_extended_profile": false,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false,
"translator_type": "none"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweeted_status": {
"created_at": "Sun Aug 20 00:33:47 +0000 2017",
"id": 899066901904502800,
"id_str": "899066901904502785",
"text": "The rise and humiliating fall of #ChrisCantwell🎃#Charlottesville’s starring ‘fascist’ - The Washington Post https://t.co/CqvgAnm3NH",
"truncated": false,
"entities": {
"hashtags": [
{
"text": "ChrisCantwell",
"indices": [
33,
47
]
},
{
"text": "Charlottesville",
"indices": [
48,
64
]
}
],
"symbols": [],
"user_mentions": [],
"urls": [
{
"url": "https://t.co/CqvgAnm3NH",
"expanded_url": "https://www.washingtonpost.com/news/the-intersect/wp/2017/08/18/the-rise-and-humiliating-fall-of-charlottesvilles-starring-fascist/?undefined=&utm_term=.d0a45fce6556&wpisrc=nl_most&wpmm=1",
"display_url": "washingtonpost.com/news/the-inter…",
"indices": [
108,
131
]
}
]
},
"metadata": {
"iso_language_code": "en",
"result_type": "recent"
},
"source": "<a href=\"http://twitter.com/#!/download/ipad\" rel=\"nofollow\">Twitter for iPad</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 3309219794,
"id_str": "3309219794",
"name": "redapplepolitics",
"screen_name": "RedApplePol",
"location": "New York NY 10022 ",
"description": "@DumbassTrukp @PrinceTheMusic #Trump🤡#POTUS #Hillary #MMFlint #Michigan #Wisconsin #AMJoy #msnbc #cnn #mmfa #msnbc #Hardball #DNC #GOP #FBI #CIA #DemForce",
"url": "https://t.co/zz2soLue6Y",
"entities": {
"url": {
"urls": [
{
"url": "https://t.co/zz2soLue6Y",
"expanded_url": "http://www.democrats.com",
"display_url": "democrats.com",
"indices": [
0,
23
]
}
]
},
"description": {
"urls": []
}
},
"protected": false,
"followers_count": 3858,
"friends_count": 2959,
"listed_count": 71,
"created_at": "Sat Aug 08 01:57:47 +0000 2015",
"favourites_count": 15071,
"utc_offset": -25200,
"time_zone": "Pacific Time (US & Canada)",
"geo_enabled": true,
"verified": false,
"statuses_count": 22935,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "C0DEED",
"profile_background_image_url": "http://pbs.twimg.com/profile_background_images/631407096815206400/6uyitj-U.jpg",
"profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/631407096815206400/6uyitj-U.jpg",
"profile_background_tile": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/796362439336067072/usw8cCqa_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/796362439336067072/usw8cCqa_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/3309219794/1480363711",
"profile_link_color": "FF691F",
"profile_sidebar_border_color": "000000",
"profile_sidebar_fill_color": "000000",
"profile_text_color": "000000",
"profile_use_background_image": true,
"has_extended_profile": false,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false,
"translator_type": "none"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"retweet_count": 5,
"favorite_count": 6,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"lang": "en"
},
"is_quote_status": false,
"retweet_count": 5,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"lang": "en"
},
"name": "re-tweet",
"updatedAt": "2017-08-20T01:07:51.055Z",
"createdAt": "2017-08-20T01:07:51.055Z",
"sortable_id": 1770651,
"__v": 0,
"parent_model": null
};
io.sockets.in("1234").emit("change", obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment