Skip to content

400 Bad Request error #282

@TheBest-Name

Description

@TheBest-Name

Which version of Nextcloud are you using?

32.0.6

Which version of PHP context_chat are you using?

5.3.1

Which version of backend context_chat are you using?

5.3.0

Nextcloud deployment method?

apache non-docker

Describe the Bug

I am getting this error and I don't know if it is hurting indexing.
[WARNING|multipart]: Found invalid character 32 in header at 36346
INFO: - "PUT /loadSources HTTP/1.1" 400 Bad Request

To Reproduce

I used php -f cron.php "OCA\ContextChat\BackgroundJobs\IndexerJob" "OCA\ContextChat\BackgroundJobs\ActionJob" "OCA\ContextChat\BackgroundJobs\SubmitContentJob" "OCA\ContextChat\BackgroundJobs\StorageCrawlJob" "OCA\ContextChat\BackgroundJobs\InitialContentImportJob"

PHP logs (Warning these might contain sensitive information)

{"reqId":"dlMJdUIG3ZxUKz1JpLhX","level":3,"time":"2026-03-03T18:26:46+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","scriptName":"/NextCloud/cron.php","message":"[SubmitContentJob] Error in SubmitContentJob : Error during request to Context Chat Backend (ExApp): Expected keys "loaded_sources" and "sources_to_retry" in response. Please upgrade the Context Chat Backend app to the latest version.","userAgent":"--","version":"32.0.6.1","occ_command":["/NextCloud/cron.php"],"exception":{"Exception":"RuntimeException","Message":"Error during request to Context Chat Backend (ExApp): Expected keys "loaded_sources" and "sources_to_retry" in response. Please upgrade the Context Chat Backend app to the latest version.","Code":0,"Trace":[{"file":"/NextCloud/apps/context_chat/lib/BackgroundJobs/SubmitContentJob.php","line":100,"function":"indexSources","class":"OCA\ContextChat\Service\LangRopeService","type":"->"},{"file":"/NextCloud/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\ContextChat\BackgroundJobs\SubmitContentJob","type":"->"},{"file":"/NextCloud/lib/public/BackgroundJob/QueuedJob.php","line":43,"function":"start","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/NextCloud/lib/public/BackgroundJob/QueuedJob.php","line":29,"function":"start","class":"OCP\BackgroundJob\QueuedJob","type":"->"},{"file":"/NextCloud/cron.php","line":175,"function":"execute","class":"OCP\BackgroundJob\QueuedJob","type":"->"}],"File":"/NextCloud/apps/context_chat/lib/Service/LangRopeService.php","Line":309,"message":"[SubmitContentJob] Error in SubmitContentJob : Error during request to Context Chat Backend (ExApp): Expected keys "loaded_sources" and "sources_to_retry" in response. Please upgrade the Context Chat Backend app to the latest version.","exception":{},"CustomMessage":"[SubmitContentJob] Error in SubmitContentJob : Error during request to Context Chat Backend (ExApp): Expected keys "loaded_sources" and "sources_to_retry" in response. Please upgrade the Context Chat Backend app to the latest version."}}

Ex-App logs (Warning these might contain sensitive information)

[WARNING|multipart]: Found invalid character 32 in header at 36346
INFO: - "PUT /loadSources HTTP/1.1" 400 Bad Request

Server logs (if applicable)

I don't know if this is applicable but,
[PHP] Warning: fopen(/data/context_chat.log.1): Failed to open stream: No such file or directory at /NextCloud/apps/context_chat/lib/Controller/LogController.php#39
GET /apps/context_chat/download-logs-nextcloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions