mifi / SimpleInstaBot

Simple Instagram bot GUI
MIT License
601 stars 85 forks source link

Cannot read property 'user' of undefined #36

Closed rsh1337 closed 3 years ago

rsh1337 commented 3 years ago

Navigating to user -

Waiting 1 sec

Error: Evaluation failed: TypeError: Cannot read property 'user' of undefined at puppeteer_evaluation_script:1:61

Sleeping 15.449751204256607 hours...

someone can help me?

mifi commented 3 years ago

What do you see on screen when this happens? could you take a screenshot?

Kirtlonsanders commented 3 years ago

SimpleInstaBotError Hey @mifi thanks for replying to my email. This is the error we are seeing. For me, the bot successfully logs into user account and navigates properly. After that the 'Error' occurs and a sleep mode is activated.

mifi commented 3 years ago

Thanks. What about the browser window itself? The instagram window?

Kirtlonsanders commented 3 years ago

@mifi I don't see any physical errors on the instagram window.

mifi commented 3 years ago

what do you see? someone's insta page? your own insta page? feed?

Kirtlonsanders commented 3 years ago

The order is: Bot signs in Feed is opened Bot opens profile page After sitting on the profile page for 2 seconds, the error occurs.

I do not know if it is a settings issue but I ran the bot again. I have a another account that I have owned for 2 years and tried the bot with same settings. Everything work perfectly.. I am not sure what could be different unless the bot requires a slightly more "seasoned" account.

mifi commented 3 years ago

Ok thanks. How new is the account that gives the error? approx how many followers/following? Is it a "business account"?

Deret007 commented 3 years ago

I have the same issue. My account is a one-month-old business account and has 27 followers

mifi commented 3 years ago

Would be nice if the others who also are getting this error could give feedback about your accounts (e.g. is it a business account? how old, followers etc)

Deret007 commented 3 years ago

OK, could be the number of followers my problem? On another account is everithing fine. You can write me DM on that account @kavarnikvklidu_official Thank you Dawe

mifi commented 3 years ago

Are any of your other accounts also business accounts?

Kirtlonsanders commented 3 years ago

Hey @mifi both of my accounts are business accounts. The one that the bot works on is just an older one.

mifi commented 3 years ago

I really don't know what is causing this, because I cannot reproduce it

trananhtung commented 3 years ago
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'user')
    at __puppeteer_evaluation_script__:1:61
    at ExecutionContext._evaluateInternal (D:\Project_Dev\Instagram\instauto-master\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ExecutionContext.evaluate (D:\Project_Dev\Instagram\instauto-master\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
    at async Object.unfollowOldFollowed (D:\Project_Dev\Instagram\instauto-master\node_modules\instauto\index.js:689:22)
    at async D:\Project_Dev\Instagram\instauto-master\example.js:74:29

This is error message.

mifi commented 3 years ago

If someone can give me account details for an account that causes this issue I can try to look into it. other than that i don't know how to fix because I cannot reproduce. can email to simpleinstabot@yankee.no Or show me exactly how to reproduce with a new fresh instagram account.

stefpriols commented 3 years ago

I have the same issue. The account is:

igoros777 commented 3 years ago

Seeing the same error. It logs in, saves login information, opens my profile page, and spits out that error. My account is a couple of years old. Just a couple of hundred followers/following. It is a business account, though, so maybe that's why.

mifi commented 3 years ago

If someone can try to run these snippets inside the SimpleInstaBot's Instagram browser window javascript console and give me back the response, that would be helpful:

JSON.stringify(window._sharedData.entry_data.ProfilePage[0].graphql, null, 2)
Array.from(document.getElementsByTagName('script')).find(el => el.innerHTML.startsWith('window.__additionalDataLoaded(\'feed\',')).innerHTML.replace(/^window.__additionalDataLoaded\('feed',({.*})\);$/, '$1')
Array.from(document.getElementsByTagName('script')).find(el => el.innerHTML.startsWith('window._sharedData')).innerHTML.replace(/^window._sharedData ?= ?({.*});$/, '$1')
Array.from(document.getElementsByTagName('a')).find(el => el.attributes?.href?.value.includes(`${username}/followers`)).innerText

You can use Option + + J (on macOS), or Shift + CTRL + J (on Windows/Linux) to open devtools.

Make sure you run the command after getting the error Cannot read property 'user' of undefined, and make sure that you open the dev tools on the correct window (the instagram page)

If you feel it's private information you can email to simpleinstabot@yankee.no

stefpriols commented 3 years ago

I tried to run your snippets in Javascript console. I don't know if I did it correctly but I share with you the response.

  1. JSON.stringify(window._sharedData.entry_data.ProfilePage[0].graphql, null, 2) Schermata 2021-09-10 alle 14 36 00

  2. Array.from(document.getElementsByTagName('script')).find(el => el.innerHTML.startsWith('window.__additionalDataLoaded(\'feed\',')).innerHTML.replace(/^window.__additionalDataLoaded\('feed',({.*})\);$/, '$1') Schermata 2021-09-10 alle 14 36 16

  3. Array.from(document.getElementsByTagName('script')).find(el => el.innerHTML.startsWith('window._sharedData')).innerHTML.replace(/^window._sharedData ?= ?({.*});$/, '$1')

{"config":{"csrf_token":"eX1JxU7aPcwKpTGkeeJIB9YPAvtKVd2k","viewer":{"biography":"\ud83d\udccd Turin, Italy\n\ud83c\udfac Videomaker | Colorist\n\ud83d\udcf7 Photography on @stefpriols","business_address_json":null,"business_contact_method":null,"business_email":null,"business_phone_number":null,"can_see_organic_insights":true,"category_name":"Music Video","external_url":"https://linktr.ee/priola.stefano","fbid":"17841448816313200","full_name":"Stefano Priola","has_phone_number":true,"has_profile_pic":true,"has_tabbed_inbox":true,"hide_like_and_view_counts":true,"id":"48825603210","is_joined_recently":false,"is_private":false,"is_professional_account":true,"profile_pic_url":"https://instagram.ftrn3-2.fna.fbcdn.net/v/t51.2885-19/s150x150/240489438_2013573802131100_211685325694788120_n.jpg?_nc_ht=instagram.ftrn3-2.fna.fbcdn.net\u0026_nc_ohc=JPJ1MsEZSmcAX9_cZEb\u0026edm=ABfd0MgBAAAA\u0026ccb=7-4\u0026oh=b0809e0237fb6b140c46d17b3cf418bc\u0026oe=6141D25B\u0026_nc_sid=7bff83","profile_pic_url_hd":"https://instagram.ftrn3-2.fna.fbcdn.net/v/t51.2885-19/s320x320/240489438_2013573802131100_211685325694788120_n.jpg?_nc_ht=instagram.ftrn3-2.fna.fbcdn.net\u0026_nc_ohc=JPJ1MsEZSmcAX9_cZEb\u0026edm=ABfd0MgBAAAA\u0026ccb=7-4\u0026oh=049389e3c79932ec40d1bf432d0eec76\u0026oe=6142CCE3\u0026_nc_sid=7bff83","should_show_category":true,"should_show_public_contacts":true,"username":"priola.stefano","badge_count":"{\"seq_id\": 197, \"badge_count\": 0, \"badge_count_at_ms\": 1631277260538}"},"viewerId":"48825603210"},"country_code":"IT","language_code":"en","locale":"en_US","entry_data":{"ProfilePage":[{}]},"hostname":"www.instagram.com","is_whitelisted_crawl_bot":false,"connection_quality_rating":"EXCELLENT","deployment_stage":"c2","platform":"web","nonce":"D7SV86Ny3+dlu6HirfU+cA==","mid_pct":10.7799,"zero_data":{},"cache_schema_version":3,"server_checks":{"hfe":true},"knobx":{"ig/acquisition:enable_404_react_routing":true,"ig/acquisition:enable_logged_out_visitor_signals":true,"ig/acquisition:enable_new_mweb_content_wall":true,"ig/direct:enable_direct_message_link_reporting":true,"ig/edm_cors:add_crossorigin_attrs":true,"ig/footer:footer_directory_rename_killswitch":true,"ig/hashtags_directory:is_enabled":true,"ig/session:login_activity_web_killswitch":false,"ig/stories:show_users_you_hide_stories_from":true,"ig/web:disable_live_tap_to_play":false,"ig/web:disable_unencrypted_push":true,"ig/web:enable_api_for_web":true,"ig/web:enable_browser_history_fix":true,"ig/web:enable_get_thread_items":true,"ig/web:enable_osp_logging":true,"ig/web:enable_oz_player":true,"ig/web:log_unexpected_virtual_scroll_values":false,"ig/web:logging_prefer_null_over_empty_strings_when_logging":true,"ig/web:one_tap_login_killswitch":false,"ig/web:profile_posts_timeout":25000,"ig/web:rupload_url_fix":true},"to_cache":{"gatekeepers":{"account_dedupe_enabled_on_ig_frontend":true,"blue_badge_ig_form_notability_updates_django":false,"browser_vapid_push_ig":true,"carbon_iglite_web_upsells":false,"carbon_iglite_web_upsells_eligible_countries":false,"carbon_v1_upsell":false,"copyright_restore_video_dialog_use_igcoredialog2":false,"distilley_falco_endpoint":true,"enable_ig_web_organic_like_in_ig_insights":true,"fbpay_ig_auth_and_pin_gk":false,"ig_3p_login_blocking_interstitial":true,"ig_acquisition_preload_test_gk":false,"ig_branded_content_disclosure_live_web":true,"ig_business_category_directory":false,"ig_challenge_bloks_js":false,"ig_clips_trends_manager_nominations_page":false,"ig_digital_fan_club_exclusive_stories_consumption":false,"ig_direct_super_react_partial_deltas":false,"ig_disable_hashtag_recents_tab":false,"ig_disclaimer_for_ios_14":true,"ig_disclaimer_for_south_korea_change":false,"ig_donations_enable_idv_in_checkout_flow":false,"ig_dyi_on_fb":true,"ig_eating_disorder_checkpoint_enabled":true,"ig_embeds_client_logging":false,"ig_epd_dogfooding":false,"ig_escalation_challenge_covid19_content_enabled":false,"ig_fb_error_normalize":true,"ig_frontend_async_qe_gk":true,"ig_frx_logged_out_users":false,"ig_frx_logged_out_users_v2":false,"ig_fundraiser_3ds_client_master":true,"ig_fx_account_center_web_nux":false,"ig_fx_comet_master":true,"ig_gl_web_fb_employees":false,"ig_gl_web_resource_timing":false,"ig_gl_web_seo_hashtag_directory":true,"ig_gl_web_seo_profile_directory":true,"ig_gl_web_video_logging":true,"ig_gl_web_zero_special_pricing":false,"ig_guides_web":true,"ig_interactions_daisy_global_network_test_rollout":true,"ig_interest_search_targeting_gk":false,"ig_japan_logged_out_users":false,"ig_jserr_old_pipeline_sunset":true,"ig_lite_data_saver_qp":false,"ig_lite_v1_blocking_page":true,"ig_live_www_badge_on_profile":true,"ig_live_www_in_home_stories_tray":true,"ig_live_www_viewer":true,"ig_logged_in_consent":true,"ig_misinfo_notification_landing_page":true,"ig_mnh_removal_02_08_2021":false,"ig_new_password_reset_page":true,"ig_notification_sms_setting_reminders":false,"ig_oauth_permission_title":true,"ig_payments_eea_charity_new_cap_apply":false,"ig_pw_sev_04_02_2019":false,"ig_pw_sev_04_15_2019":false,"ig_reels_enable_curation_nomination":false,"ig_reels_feed_on_web_dogfooding":false,"ig_reels_iab_deeplink":false,"ig_reels_v2_launch":true,"ig_shopping_bag_icon_redesign":false,"ig_shopping_checkout_launch_no_device":false,"ig_shopping_web":false,"ig_shopping_web_bag":false,"ig_show_asid_in_apps_and_webs":true,"ig_stories_fundraiser_sticker_intl_master":true,"ig_ufac_recaptcha_delayed_disable_content":true,"ig_uhl_web":false,"ig_user_pronouns_consumption":true,"ig_voting_info_center_web":true,"ig_web_age_collection_settings":false,"ig_web_allow_follower_removal":true,"ig_web_bloks_payload_debug_logger":false,"ig_web_browser_tools":false,"ig_web_client_format_plaintext_passwords":true,"ig_web_client_password_encryption":true,"ig_web_client_redact_plaintext_passwords":true,"ig_web_comment_impression":false,"ig_web_creation_dovetail":false,"ig_web_creation_location_migration":true,"ig_web_dark_mode_button":false,"ig_web_data_saver_qp":false,"ig_web_deprecate_legacy_redux_cache_events":false,"ig_web_digital_moment_creation_gk":false,"ig_web_direct_desktop_caching":false,"ig_web_direct_frx_migration":true,"ig_web_direct_reply_gif":true,"ig_web_direct_thread_frx_migration":false,"ig_web_dovetail":false,"ig_web_dynamic_explore_logging":true,"ig_web_email_notifications_api":true,"ig_web_email_settings_route_migration":true,"ig_web_explore_logging_q3":true,"ig_web_feed_caching_fix":true,"ig_web_feed_creation":false,"ig_web_feed_creation_design_v2":false,"ig_web_feed_creation_filter_thumbnails":false,"ig_web_feed_creation_rollout":false,"ig_web_feed_creation_thumbnail_scaler":false,"ig_web_feed_creation_v2_dogfooding":false,"ig_web_force_in_feed_stories":false,"ig_web_fx_cal_redirect_fix":false,"ig_web_fx_cal_reg":true,"ig_web_fx_multi_linking_ig_to_ig_sso":true,"ig_web_h1_2020_p0_logging_deprecation_business":false,"ig_web_h1_2020_p0_logging_deprecation_creation":false,"ig_web_h1_2020_p0_logging_deprecation_direct":false,"ig_web_h1_2020_p0_logging_deprecation_profile":false,"ig_web_h1_2020_p0_ods_migration_a2hs":false,"ig_web_h1_2020_p0_ods_migration_cache":false,"ig_web_h1_2020_p0_ods_migration_notifications":false,"ig_web_h1_2020_p0_ods_migration_profile_pic":false,"ig_web_h1_2020_p0_ods_migration_related_media":false,"ig_web_h1_2020_p0_ods_migration_story_video":false,"ig_web_h2_2020_p0_logging_deprecation_profilechain":false,"ig_web_h2_2020_p0_logging_migration_postoptions":false,"ig_web_h2_2021_p0_ods_migration_block_user":false,"ig_web_h2_2021_p0_ods_migration_follow_user":false,"ig_web_h2_2021_p0_ods_migration_likes":false,"ig_web_h2_2021_p0_ods_migration_save_posts_v2":false,"ig_web_h2_2021_p0_ods_migration_saved_collections":false,"ig_web_h2_2021_p0_ods_migration_show_more":false,"ig_web_h2_2021_p0_ods_migration_typeahead":false,"ig_web_h2_2021_p0_ods_migration_unblock_user":false,"ig_web_h2_2021_p0_ods_migration_unfollow_user":false,"ig_web_h2_2021_p0_ods_migration_unlike":false,"ig_web_h2_2021_p0_ods_migration_validation":false,"ig_web_h2_2021_p0_ods_migration_virtual_grid":false,"ig_web_iglite":false,"ig_web_image_perf_logging":false,"ig_web_instagram_organic_brand_profile":false,"ig_web_instagram_organic_comment":true,"ig_web_instagram_organic_comment_like":false,"ig_web_instagram_organic_comment_unlike":false,"ig_web_instagram_organic_like":true,"ig_web_instagram_organic_unlike":true,"ig_web_instagram_thumbnail_click_v2":true,"ig_web_instagram_thumbnail_impression":true,"ig_web_interaction_tracing":false,"ig_web_lite_story_performance_logging":true,"ig_web_logging_stories":true,"ig_web_lynx_for_http_only":true,"ig_web_modernize_client_connection_event":false,"ig_web_modernize_zero_falco_event":true,"ig_web_nametag":true,"ig_web_oba_rollout":false,"ig_web_oz_player":true,"ig_web_reels_audio_page":true,"ig_web_responsiveness_logging":false,"ig_web_rm_article17_translations":true,"ig_web_scroll_perf_logging":false,"ig_web_scroll_perf_tracking":false,"ig_web_seo_category_directory":true,"ig_web_seo_category_directory_footer_links":false,"ig_web_south_korea_tos_reg":false,"ig_web_stories_gallery_rollout":false,"ig_web_stories_impression_logging_migration":true,"ig_web_story_refresh_native_endpoint":false,"ig_web_story_video_dash_info":false,"ig_web_typing_perf_logging":false,"ig_web_uri_parsing_fix":true,"ig_www_live_for_charity_can_accept_payment":true,"ig_www_live_for_charity_consumption":true,"igd_web_client_logging_feature_gating_gk":true,"igd_web_error_logging_feature_gating_gk":true,"igd_web_forwarding_feature_gating_gk":false,"igd_web_heart_sticker_feature_gating_gk":false,"igd_web_image_feature_gating_gk":true,"igd_web_links_feature_gating_gk":false,"igd_web_master_feature_gating_gk":true,"igd_web_message_actions_feature_gating_gk":true,"igd_web_message_preview_feature_gating_gk":true,"igd_web_message_report_feature_gating_gk":true,"igd_web_messenger_rebrand":true,"igd_web_quoted_reply_feature_gating_gk":false,"igd_web_reactions_feature_gating_gk":true,"igd_web_sharesheet_feature_gating_gk":true,"igd_web_story_reaction_feature_gating_gk":true,"igd_web_story_reply_feature_gating_gk":true,"igd_web_story_share_feature_gating_gk":true,"igd_web_text_feature_gating_gk":true,"igd_web_thread_report_feature_gating_gk":false,"igd_web_unsend_feature_gating_gk":true,"igpcp_convert_with_page_id":false,"igtv_upsell_cs":false,"igweb_distillery_fx_master":true,"instagram_login_gdp":true,"interop_ig_master_suppression_web_override":false,"privacy_center_ig":false,"remove_fbc_button":false,"social_wifi_ig_code_bypass":false,"tmp_ig_whitelist_srt_ips":false},"qe":{"app_upsell":{"g":"","p":{}},"igl_app_upsell":{"g":"","p":{}},"notif":{"g":"","p":{}},"onetaplogin":{"g":"","p":{}},"felix_clear_fb_cookie":{"g":"control","p":{"is_enabled":"true","blacklist":"fbsr_124024574287414"}},"felix_creation_duration_limits":{"g":"dogfooding","p":{"maximum_length_seconds":"3600","minimum_length_seconds":"60"}},"felix_creation_fb_crossposting":{"g":"control","p":{"is_enabled":"false"}},"felix_creation_fb_crossposting_v2":{"g":"control","p":{"is_enabled":"true","display_version":"2"}},"felix_creation_validation":{"g":"control","p":{"edit_video_controls":"true","description_maximum_length":"2200","max_video_size_in_bytes":"3600000000","minimum_length_for_feed_preview_seconds":"60","title_maximum_length":"75","valid_cover_mime_types":"image/jpeg,image/png","valid_video_extensions":"mp4,mov","valid_video_mime_types":"video/mp4,video/quicktime"}},"post_options":{"g":"control","p":{"use_refactor":"true","enable_igtv_embed":"true"}},"sticker_tray":{"g":"","p":{}},"web_sentry":{"g":"test","p":{"show_feedback":"true"}},"fxcal_ig_fbconnect_loggedout_holdouts":{"p":{"303ad1a5eedffa753154ef2c6083a4e5":true,"48d7c64d7adf7cbd2f84bfcb56bd6d62":true,"4a4821fbdaf0ad6813abb69f4449ab94":true},"l":{},"qex":true},"ig_ar_effects_tab_and_preview":{"p":{"271c5747c5d825ad02e0ae3e106a4b2b":false,"ba1b59bd49abfec3f0366736f6076d36":false},"l":{},"qex":true},"ig_dovetail_launch":{"p":{},"l":{},"qex":true},"ig_epd_cookie_consent":{"p":{"637f248b90392580466aca7636cba9dd":true,"a8002c8e75c9a1e0d76d4cd72bc6e990":false,"e4a9f3c6111907662df78767f95b6887":false},"l":{"637f248b90392580466aca7636cba9dd":true,"a8002c8e75c9a1e0d76d4cd72bc6e990":true,"e4a9f3c6111907662df78767f95b6887":true},"qex":true},"ig_fb_graph_differentiation":{"p":{"4bf9b04d2d462d81231417819e271a5f":5},"l":{},"qex":true},"ig_feed_daisy_controls_universe":{"p":{"edbf7d67eee710ed4db977d909356070":false},"l":{},"qex":true},"ig_growth_embeds":{"p":{},"l":{},"qex":true},"ig_growth_logged_in_conversion":{"p":{"929e553b694b4e29c37768bee9bfc768":false,"dee406ba4ade238d39f217eeda5cd306":false},"l":{},"qex":true},"ig_growth_logged_out_conversion":{"p":{"018a4c4e626a442cac02c9b0aea7893a":false,"05956afe0d1745c0b06b31bb66c280b2":false,"2058ae09cfa860cbd20916f5238bc31f":false,"22d239ce285e9bcafd44d0c7c176c62f":false,"2354569d7f9b7b410eee989c441efbee":"control","346fcc49491b3702a7776ef4122c24cd":false,"35756d3249266d0c8269cb58f751b7cf":"control","3e160d50cfa7be81d09cdb16ed629205":false,"4aea4a9c3ba5ec70755da0da630135ea":false,"4d23f1db39cc77ea98d09e869377b01b":0,"4e357f7a9ea5416b0afd2517a1898ad8":false,"51b203318f93c610418e26b5b79f2ad4":false,"55ada51a698e5696d0410bcdf8c833a2":false,"5deaed03dfb0d03be073a92608a9944f":true,"695285bd80b064794859d242d8cafb47":false,"7c9eda38191e115ed5ec3eaddd828ea1":false,"82db62710e04042da7c3501f8dd7b6f0":3,"901f0a4d46fd21ea3b5444653cff44be":false,"91c1e06dd077f57b9f79b6e8b0d5896b":"v1","925ec4a46caef2ebbaca2fd109cab4dd":"halfsheet","9bdfdee181e67439396f43d8544f3508":false,"9ca996ebf267e2fe815fa36d771b06f1":false,"a20104d68a2e866d36c8dffdcd3f1922":false,"a70662d614e89b6ebc952d39d83e48e4":true,"a96cb4364cee522c40efaec861dba4ff":true,"abc22cfadf809f61e4ccf666071b8d4b":false,"bb9608c922c53d6d5a58c2231a5cdefb":false,"c9396d32de96267920317c2b10f756f8":false,"cf8162ace58e940baae6903ccc131cf8":false,"d1205f1a5b4e74ff7165b43038e32d1f":false,"e08ab89d1dd0149261e84cb269d60eae":false,"e7addd82f0fcf52ddceb89ba8e902c4b":false,"f7115fc7cd40f271861908c2d41be4c5":false,"f76f28ddd87c83d95dd9222da11fa291":false,"fe51ba5e7f3dccc3b72d46ff1fd5b86d":"control","ff0885e010a2fd2d8ff723cf5170f75d":false},"l":{},"qex":true},"ig_growth_seo_content_optimization":{"p":{"1a575b2675f3565cc803451d6aa84e88":false},"l":{},"qex":true},"ig_growth_seo_experiments_holdout_universe":{"p":{"33c6763176079b3fc1dbec9f80ab7705":false,"e82587939d8c8e20276760f74280c0fb":false},"l":{},"qex":true},"ig_growth_seo_owner_level_universe":{"p":{"00097e3aad2beecc98dde3fb6f30a2cd":false,"1ebd468e67c84f94507888409d7193e7":false},"l":{},"qex":true},"ig_insights_media_on_web_universe":{"p":{"09b47335b393ecfc7a6b13effc962f06":true},"l":{"09b47335b393ecfc7a6b13effc962f06":true},"qex":true},"ig_interactions_project_daisy":{"p":{"e6828e76c2cb016725cad0774e14453b":false},"l":{},"qex":true},"ig_interactions_project_daisy_for_anonymous_users_on_web":{"p":{"16cfa41e1dedd8cd4eeb02a52e01dfdb":false},"l":{},"qex":true},"ig_interactions_project_daisy_network_tests_universe":{"p":{"f75356c33a82b6a2c5ad1fade572b3b9":false},"l":{},"qex":true},"ig_live_web_logged_out":{"p":{"e97c537b22f23f06239cf7314c3533bc":false},"l":{},"qex":true},"ig_live_web_player_h1_2020":{"p":{},"l":{},"qex":true},"ig_live_web_video_playback_2020":{"p":{"1b79e091531d2467b7be4942b0dc23d1":true},"l":{},"qex":true},"ig_reels_insights_on_web_universe":{"p":{},"l":{},"qex":true},"ig_seo_test_universe":{"p":{"0c4fa98879112c4ce6ed59420970a76e":false,"76e90fee95509c2dbd660d8f027ac37c":false},"l":{},"qex":true},"ig_smb_web_contact_buttons_universe":{"p":{"5826ebc561370b032b106ffa74e996ee":false},"l":{},"qex":true},"ig_smb_web_foa_collect_contact_info":{"p":{},"l":{},"qex":true},"ig_smb_web_igpcp_ats_to_nux_universe":{"p":{"699a016b0a3214c623f677285444c7f2":false},"l":{},"qex":true},"ig_smb_web_nux_display_contact_info":{"p":{"e95909a1e7127fe68e2f75caa5ad33b3":false},"l":{"e95909a1e7127fe68e2f75caa5ad33b3":true},"qex":true},"ig_stories_sticker_tray":{"p":{},"l":{},"qex":true},"ig_web_acc_recovery_flow":{"p":{"085dcb8c8aee1e548e37de701cd9fb70":false},"l":{},"qex":true},"ig_web_api_universe":{"p":{},"l":{},"qex":true},"ig_web_bloks_portability":{"p":{"24c1783646680eb1b4905135382071a1":false,"3a77179c10a93cc192e91dba825a2797":false,"5e20b1b0d867ad04643100c9a6f7a919":false,"e4a8e0f3c898d3fc629c53370c9ab024":false},"l":{},"qex":true},"ig_web_bundles":{"p":{},"l":{},"qex":true},"ig_web_comment_from_feed":{"p":{"72c0f02444b62fa8385ca267d9052137":false},"l":{},"qex":true},"ig_web_connections_product_h2_2019":{"p":{"e81f2fb43c0a8a14f277d0a59d8c1188":false},"l":{},"qex":true},"ig_web_dash_for_vod_universe_v2":{"p":{"18f81d7df2a3bc06bee75a3cb68ff424":3,"5ae7170767ef9fcc376814b05213b72d":0.85,"5bee57fe982f547ddebfa57bd7f2c986":8.0,"8f7e0e14437d98261ba1cc855fe77434":0.95,"c6524bb8a0e6f4d43759d9ed2eb56ac4":false,"cc7a581b3510c33b76eb598470b2cf99":0.0,"f7d1e1c33d80ef84e533c5d226a6c3eb":15},"l":{},"qex":true},"ig_web_direct_creator_inbox_universe":{"p":{"ed9eb219d7eb8ddadfc1cb8ca157d7d5":true},"l":{},"qex":true},"ig_web_direct_interop_universe":{"p":{},"l":{},"qex":true},"ig_web_direct_permanent_raven_universe":{"p":{"9bee2620057d443bb9fb713f7c992f0e":true},"l":{},"qex":true},"ig_web_direct_universe":{"p":{"5acf8c5db742aa24fdee4924a1a426a2":false},"l":{},"qex":true},"ig_web_dynamic_explore_universe":{"p":{"02b1b2664fe2bd1bb09a55f702127b19":true,"4832070c2411572cb4cb2470b6b02096":true,"4f8111d44f013cd7f0f7fff1c15557bd":true,"a25acac9a903834b0aa8b9146229fee9":true,"a6b9b9e0dc1a9ab1d71705ca1883a44b":false,"ad57acba3f99e9cd00aa8acff86e26ed":true,"b4f9fbd8e6863bf4b67d432db90367cb":false,"cf7809f98311b6963f0b7846b5b86960":false,"e55a95e7bdff2be7eeac05a19fb5edb2":true},"l":{},"qex":true},"ig_web_explore_hover_universe":{"p":{"b988c368e283bc9c6f883e082514b24a":false},"l":{},"qex":true},"ig_web_feed_migration_h2_2021":{"p":{"51e79b60f5be65f18177871b620a4a9f":false,"93f6a0339935be6c26cf5c40a8a78156":false},"l":{},"qex":true},"ig_web_fxcal_nux_holdout_universe":{"p":{"50372b591eb5911ad5fd277f83e88162":true},"l":{},"qex":true},"ig_web_h1_2020_accounts":{"p":{"091ad1a0bb6c4da1ffb5699a64e26536":false,"1bca79aa3d77173b7e0a07ff786dd662":"switch_text","28a0485bae4335bb747786803fcee1db":true,"462a2a95aade503bedd5a1785d251129":false,"b2a14bfb960fb0eb86950720b900b813":"chevron"},"l":{},"qex":true},"ig_web_h1_2020_app_upsells":{"p":{"af069090f87d0afc94dca34ec07d2b87":true,"babe870c0e3313f8e57c49b40cadca58":true},"l":{},"qex":true},"ig_web_h1_2020_connections":{"p":{"3cb10d8a64e8823f9c149ef92053c038":false},"l":{},"qex":true},"ig_web_h1_2020_feed":{"p":{"32b436ac46df6b715e0e49f5cabdc149":true,"9c701a6aa0bd917a4bf6da46933396c8":false,"df554028de1a4149cefc00d636dde5f1":true},"l":{},"qex":true},"ig_web_h1_2020_post_page":{"p":{"af13927e95df1353cf37a164e2c2d5b9":true},"l":{},"qex":true},"ig_web_h1_2020_reg_login":{"p":{"4bb4cab18e90bd7568b7c2e82fc5b96d":false,"4cc89a29fc4e59883c556baaf87ee336":true,"924ff1bfece9d437c31f36cb08d0cd55":false,"a6b43c5441ab19b7b39e005e49cc9bb2":false,"c3b60d9e03f26cb6af133762e459bd11":false,"de78f2b3d694cd63f07bc2edf02f283c":true},"l":{},"qex":true},"ig_web_h1_2020_reg_login_2":{"p":{"519be4f49d3af78a4db0468e36f70621":false,"788e5d60de1e90e51b95e621c516232e":false,"a34a281c4483301a962b266fd334f26e":true,"a722070f9e931d1c7a415572019ebda7":false,"b9c360d80f29171e932e39a67b02d8a3":true,"dec1fe47e3bd674ea738880f344a4621":false},"l":{},"qex":true},"ig_web_h1_2020_settings":{"p":{"5617c2eba57e50c27805ec4b85754d1b":false},"l":{},"qex":true},"ig_web_h1_2021_creation":{"p":{"4730b74fda3c6e0b2ac30c47fbf5cea8":true,"724faf7fc10c41433915c7cb70a22d8c":true,"a9af916f374edf10fc56d24dd606d766":true},"l":{"4730b74fda3c6e0b2ac30c47fbf5cea8":true,"724faf7fc10c41433915c7cb70a22d8c":true},"qex":true},"ig_web_h1_2021_direct":{"p":{"1d7c7e36710f7af88bd45959fa74c8c0":true,"6d0b2dea043ba852c49579e9935f4424":true,"75718dc5f308c98c2fe6c2ae26c2ecea":true},"l":{},"qex":true},"ig_web_h1_2021_live":{"p":{"44273ead0bca12991479e98ae73cf8c5":false,"6b548f674fe570eb9c76aff6a6827b42":false,"7331a8a4b5fb6acf7968629934a229e7":true,"7dd06b469a36dd81e9a9c972ce86f11e":false,"a6f9d4c93f0421088e1584eae7d3674a":false,"d3a7850f615828a50315bfdf04109821":false,"f091672721fc04eb3564f408b3e646f7":true},"l":{},"qex":true},"ig_web_h1_2021_post":{"p":{"1b31a43552fa16f724567ae6baf4dd73":false,"320fc07a07179c87afe8611e0f6fb401":false,"554de371cb9963639a7ae26fd42c6d4f":false,"73b01179c367076ed78d84174cad5330":false,"f4a453646b021ba4e515b53e84c8950b":false},"l":{},"qex":true},"ig_web_h1_2021_search":{"p":{"14f190bffef6b265b47f0606cde52c3d":true,"426f2b379502974c3237fd47e278882c":true,"6ceed04aa64fd5821a904885b024fafa":true,"ae81fb6c9d26573dc5d0b2511727fea2":true,"c32acef64510cf9ed23a294911edbd13":true},"l":{},"qex":true},"ig_web_h2_2019_performance":{"p":{"a94baf448e9d11ada31b2ff4290df8cb":0.2,"afede4682ab504a7bc304a8a48e96b4f":"inside_media"},"l":{},"qex":true},"ig_web_h2_2019_reg_login":{"p":{"38d3a612eaa2ac59e21321c659565b61":false,"f8fd7cd2dc317a81ec7b3b5c33940957":false},"l":{},"qex":true},"ig_web_h2_2020_direct":{"p":{"7eb1503ce5e8c359c67d9429e46ae636":true,"cedb5f0b55bb5fdffbe64bec4b2ee3ca":true},"l":{},"qex":true},"ig_web_h2_2020_post":{"p":{"0bb9ca9c6977806957cc0c0ee9f3b886":false,"47ad004d88fa28d42349f15f799239e6":false,"47f70321a258d9ca29fff06faa2fc858":false},"l":{},"qex":true},"ig_web_h2_2020_search":{"p":{"116d0462d6903fccc8bd92ba7bc3998c":false},"l":{},"qex":true},"ig_web_h2_2020_stories":{"p":{"9f6322c3c6938f4999421c663a1a09d1":true,"efd75dacdc4aba1d027aa261afea27fd":true,"fa495ea373826588c94ca5150375b23d":true},"l":{},"qex":true},"ig_web_h2_2021_post":{"p":{"01925c04edf774b7f294f8aca6eb3329":false},"l":{},"qex":true},"ig_web_h2_2021_reg_login":{"p":{"ab93588338e21c1330f638f1a2450297":false},"l":{},"qex":true},"ig_web_ios_universal_link_fallback_fix3":{"p":{"dc64dbc2238bdd285d42cecd34a3b620":true},"l":{},"qex":true},"ig_web_ios_universal_links_blacklist":{"p":{"efac6108ebe61e3f05dfe94f7fed3577":"^/explore/.*|^/accounts/activity/$"},"l":{},"qex":true},"ig_web_like_list":{"p":{},"l":{},"qex":true},"ig_web_lite_rainbow_hashtags":{"p":{"070b183806480004c58e87fe34af65f4":""},"l":{},"qex":true},"ig_web_nav_logged_in_universe":{"p":{"f2cd9e4229a0c1ba1ddc3defcb0ab447":true},"l":{},"qex":true},"ig_web_navigation":{"p":{"115a482da3193d44c4cbf2e737a1e569":false,"4fc1f5377e477d4256f128bf3e5e81f4":true,"7ccf1c9d7ae5a8950e32502eae613a72":true,"d9fed40a50f9480aec087d9ef7849559":false,"e2ecc96ce6aa31e5d557eaa47826d47c":true},"l":{},"qex":true},"ig_web_new_activity_feed_2020":{"p":{"131df1b73a4995ae3b0d65d73e516a5d":true,"2955345422cc6cfa9b8e4ffa98194a76":true},"l":{},"qex":true},"ig_web_new_suggested_users_2020":{"p":{},"l":{},"qex":true},"ig_web_nux_universe":{"p":{"d71f5281d23877fb16e51afe6fa0db15":false,"f6fb87464ed36798cfb1e6b5f2b6f9e5":false},"l":{},"qex":true},"ig_web_oba_revamped":{"p":{"517411206c3aaf4d86ac4b5015b4e3af":true,"5a0b890202aa215a5a7f31991de3afba":false,"babdd3e626e59955167dd31a2b98d93d":true},"l":{},"qex":true},"ig_web_one_tap":{"p":{"541605322e6c5f39a0a6fee9d0852810":false,"7cab67e8645b0d95f96df38d592e0b45":false,"a34cd56a24085aa00e1fa99be1119f2a":false},"l":{},"qex":true},"ig_web_profile_migration_h2_2021":{"p":{"07614dad80da34fd370900ba3ce23002":false},"l":{},"qex":true},"ig_web_search":{"p":{"07f2483613a3ee9388417126f8709cae":true,"5ecd6393464cfa4ef00eee48fabb085f":true},"l":{},"qex":true},"ig_web_stories_tray":{"p":{"34fed6fde2759ba172c0166eda460d91":false,"d8118551b4099d61db8828c411077db5":true},"l":{},"qex":true},"ig_web_tag_page_universe":{"p":{"e540041d41cc0fcfc84991110763dc61":false},"l":{},"qex":true},"ig_web_unsupported_browsers_2020":{"p":{"dfda63b579f42990e22bfbb34e6bb2b1":true},"l":{},"qex":true},"ig_web_upcoming_events":{"p":{"670e866093fcd6dacbe15c5734a8273a":true},"l":{},"qex":true},"ig_web_video_h1_2021":{"p":{"81c86bb21d0991a7d717d3557ebca50e":true,"8f4dbc758a73716819e2c2780c2d5d34":true,"9f66698cb60b3dba6dd0d93d0b90a003":true,"c5b6b9deb55642878a45129573e85703":true,"cbd8572eb0bdc067081d65c844916094":false},"l":{},"qex":true},"ig_web_video_h2_2021":{"p":{"e4a27023c26aff27129bcdac10319f7d":false},"l":{},"qex":true},"ig_web_video_universe_2020_h1":{"p":{"455a6d3a0577005f1d8f0d8add7c1770":false,"a885f0e637c46b4348af217031416435":true},"l":{},"qex":true},"igtv_web_profile_grid_cropping":{"p":{"2a9189d3516d8b41a2cc4bde9dbcd3ee":true},"l":{},"qex":true},"igtv_www_upload_captions_h2_2020":{"p":{"c70623adc26934453be35299db403133":true},"l":{},"qex":true},"instagram_challenge_web_logout_button":{"p":{"5a2cd87d80cbae23991bd55bbd39b533":false},"l":{},"qex":true},"mani_fb_to_ig_sso":{"p":{"2810cf3650e49f9b4e752a49b9420ba6":false,"2ec0c82747441c2efca4c3558978cfe0":true},"l":{},"qex":true},"photos_and_videos_text_qe":{"p":{"663f886eb589b66770d4e578842e62ac":"Pictures and Videos","d05005147e2b93bff31a9324fb82a3ec":false},"l":{},"qex":true},"rainy_test_url_path_universe":{"p":{"30ef65cd29875c4b3b1e61e5c52d8a2e":false,"bab77bbc16d47fffed61767e11b1f45a":false,"d839003d78d2829174b7d4039601178b":false,"f2f73b1a443efbe87200a12735c5d838":false},"l":{},"qex":true}},"probably_has_app":true},"device_id":"B04000DC-1EBB-4FC3-A45B-5A3F1A4D0DF5","browser_push_pub_key":"BIBn3E_rWTci8Xn6P9Xj3btShT85Wdtne0LtwNUyRQ5XjFNkuTq9j4MPAVLvAFhXrUU1A9UxyxBA7YIOjqDIDHI","encryption":{"key_id":"179","public_key":"7b85467e2a188cee4d6486d49f8950f2fc60466db492de18d3f8f304e731910b","version":"10"},"is_dev":false,"signal_collection_config":{"bbs":100,"ctw":null,"dbs":100,"fd":60,"hbc":{"hbbi":30,"hbcbc":2,"hbi":60,"hbv":"8016896c474a102772472482c07d8324","hbvbc":0},"i":60,"rt":1024,"sbs":1,"sc":{"c":[[30000,838801],[30001,838801],[30002,838801],[30003,838801],[30004,838801],[30005,838801],[30006,573585],[30007,838801],[30008,838801],[30009,838801],[30010,838801],[30012,838801],[30013,838801],[30015,806033],[30018,806033],[30019,806033],[30040,806033],[30093,806033],[30094,806033],[30095,806033],[30100,541591],[30101,541591],[30102,541591],[30103,541591],[30104,541591],[30106,806039],[30107,806039],[38000,541427],[38001,806643]],"t":1618437631},"sid":13},"consent_dialog_config":{"is_user_linked_to_fb":false,"should_show_consent_dialog":false,"should_use_winning_variant_qe":null},"privacy_flow_trigger":{"flow_name":null,"mobile_deeplink":null,"trigger_behavior":null,"ttl":1800},"rollout_hash":"61b862e2a33c","bundle_variant":"es6","frontend_env":"prod"}

  1. Array.from(document.getElementsByTagName('a')).find(el => el.attributes?.href?.value.includes(${username}/followers)).innerText Schermata 2021-09-10 alle 14 37 02
mifi commented 3 years ago

Thanks alot. Actually if you could run one last snipped and copy paste the response here, it would be super helpful:

JSON.stringify(window.__additionalData)

and then just to be sure:

window.location.href

For reference I found people having the same problem over at InstaPy:

stefpriols commented 3 years ago
  1. JSON.stringify(window.__additionalData) Schermata 2021-09-10 alle 20 05 25

  2. window.location.href Schermata 2021-09-10 alle 20 05 40

mifi commented 3 years ago

Wow nothing there also… do you see the same in normal chrome? The problem is that instabot needs to get the ‘id’ of the user that we are browsing because it needs to run a graphql query on that id. Need to find another way of getting that id. Or if you could dump the raw html from google chrome at:

view-source:https://www.instagram.com/priola.stefano/

then i can look for any id inside the html

stefpriols commented 3 years ago

Yes, I see the same in normal chrome. view-source_https___www.instagram.compriola.stefano.html.zip

mifi commented 3 years ago

thanks. this is strange because this dump you shared does indeed contain the needed data, so it's different from inside simpleinstabot:

JSON.stringify(window._sharedData.entry_data.ProfilePage[0].graphql, null, 2)
{  "user": {    "biography": "📍 Turin, Italy🎬 Videomaker | Colorist📷 Photography on @stefpriols",    "blocked_by_vie........
mifi commented 3 years ago

I suddenly managed to reproduce the problem on my own computer now. great success! 🙌

mifi commented 3 years ago

Ok a fix is on the way...

mifi commented 3 years ago

This is now fixed and the next version should work