Skip to content

Crawler crashes if httpmsg contains invalid characters #205

@bwalkerl

Description

@bwalkerl

I've traced an invalid data error back to 'httpmsg' => '<none>', which fails the persistent validation checks for PARAM_TEXT. Cloudflare is returning HTTP/1.1 522 <none> in the header

194a20f9045c:633129 2025-08-14 16:12:41 Adhoc task failed: tool_crawler\task\adhoc_crawl_task,Error: Data submitted is invalid
194a20f9045c:633129 2025-08-14 16:12:41 Debug info:
194a20f9045c:633129 2025-08-14 16:12:41 httpmsg: Data submitted is invalid
194a20f9045c:633129 2025-08-14 16:12:41 Backtrace:
194a20f9045c:633129 2025-08-14 16:12:41 * line 683 of /admin/tool/crawler/classes/robot/crawler.php: call to core\persistent->update()
194a20f9045c:633129 2025-08-14 16:12:41 * line 587 of /admin/tool/crawler/classes/robot/crawler.php: call to tool_crawler\robot\crawler->crawl()
194a20f9045c:633129 2025-08-14 16:12:41 * line 86 of /admin/tool/crawler/lib.php: call to tool_crawler\robot\crawler->process_queue()
194a20f9045c:633129 2025-08-14 16:12:41 * line 54 of /admin/tool/crawler/classes/task/adhoc_crawl_task.php: call to tool_crawler_crawl()
194a20f9045c:633129 2025-08-14 16:12:41 * line 411 of /lib/cronlib.php: call to tool_crawler\task\adhoc_crawl_task->execute()
194a20f9045c:633129 2025-08-14 16:12:41 * line 252 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
194a20f9045c:633129 2025-08-14 16:12:41 * line 272 of /lib/cronlib.php: call to cron_run_adhoc_task()
194a20f9045c:633129 2025-08-14 16:12:41 * line 155 of /admin/cli/adhoc_task.php: call to cron_run_failed_adhoc_tasks()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions