The bot works fine for Twitter links, but for Instagram links, the following message is shown:
Link could not be scraped, please check it or try again later
According to the investigation I did in puppeteer log, it seems that the Instagram problem is due to timeout, no other message is shown in the puppeteer runs output except timeout.
TimeoutError: Waiting for selector `#btn-submit` failed: Waiting failed: 30000ms exceeded
at Timeout.<anonymous> (/usr/src/bots/social-media-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js:59:37)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
you can check the website which is used to scrape instagram data INSTA_PAGE_URL=https://snapinsta.app/. Maybe the id "btn-submit" is removed from the submit button
The bot works fine for Twitter links, but for Instagram links, the following message is shown:
Link could not be scraped, please check it or try again later
According to the investigation I did in puppeteer log, it seems that the Instagram problem is due to timeout, no other message is shown in the puppeteer runs output except timeout.