- Issue created by @Vivek Panicker
Not able to use scraping bot as an automator.
Getting the following error:
The website encountered an unexpected error. Try again later.
Error: Typed property Drupal\scrapingbot\ScrapingBot::$apiKey must not be accessed before initialization in Drupal\scrapingbot\ScrapingBot->scrapeRaw() (line 169 of modules/contrib/ai_interpolator_scraping_bot/src/ScrapingBot.php).
Drupal\scrapingbot\Plugin\AiAutomatorType\DepthCrawlerRule->scrapeLink() (Line: 323)
Drupal\scrapingbot\Plugin\AiAutomatorType\DepthCrawlerRule->generate() (Line: 70)
Drupal\ai_automators\AiAutomatorRuleRunner->generateResponse() (Line: 70)
Drupal\ai_automators\Plugin\AiAutomatorProcess\DirectSaveProcessing->modify() (Line: 229)
Drupal\ai_automators\AiAutomatorEntityModifier->markFieldForProcessing() (Line: 129)
Drupal\ai_automators\AiAutomatorEntityModifier->saveEntity() (Line: 31)
ai_automators_entity_presave()
call_user_func_array() (Line: 355)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 307)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 354)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 217)
Drupal\Core\Entity\EntityStorageBase->invokeHook() (Line: 900)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook() (Line: 529)
Drupal\Core\Entity\EntityStorageBase->doPreSave() (Line: 753)
Drupal\Core\Entity\ContentEntityStorageBase->doPreSave() (Line: 483)
Drupal\Core\Entity\EntityStorageBase->save() (Line: 805)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (Line: 354)
Drupal\Core\Entity\EntityBase->save() (Line: 281)
Drupal\node\NodeForm->save()
call_user_func_array() (Line: 105)
Follow the steps mentioned here: https://git.drupalcode.org/project/scrapingbot#how-to-use-as-ai-automato...
NA
NA
NA
NA
NA
Active
1.0
Code