Skip to content

JavaScript Error in Backend #3

Description

@zwenn

First of all, thank you very much for developing this extension.

While testing the extension (version 3.0.0 with Typo3 v13.4.32 on nginx), I encountered a JavaScript error during the page analysis in the backend.

The analysis stops with the message: "Page could not be analyzed."

The following errors are displayed in the Firefox Developer Tools under Console:
ajax-request.js?bust=1784029779:13
POST https://meine.domain.de/typo3/ajax/sitescore/analyze?token=235908d…&language=0 500 (Internal Server Error)
fetch @ ajax-request.js?bust=1784029779:13
send @ ajax-request.js?bust=1784029779:13
post @ ajax-request.js?bust=1784029779:13
#analyzePageClick @ Backend.js?bust=1784029779:71
(anonymous) @ Backend.js?bust=1784029779:31

Backend.js?bust=1784029779:273 Sitescore: Analysis failed undefined
#handleAnalysisError @ Backend.js?bust=1784029779:273
#analyzePageClick @ Backend.js?bust=1784029779:78
await in #analyzePageClick
(anonymous) @ Backend.js?bust=1784029779:31


fetch @ ajax-request.js?bust=1784029779:13
-> this.fetch = t => fetch(t)

send @ ajax-request.js?bust=1784029779:13
-> const t = await this.fetch(new Request(this.url,this.getMergedOptions(e)));

post @ ajax-request.js?bust=1784029779:13
-> n = await this.send({

#analyzePageClick @ Backend.js?bust=1784029779:71
-> const response = await new AjaxRequest(url + separator + 'language=' + language).post({pageId});

(anonymous) @ Backend.js?bust=1784029779:31
-> analyzeButton.addEventListener('click', () => this.#analyzePageClick(container));

Backend.js?bust=1784029779:273 Sitescore: Analysis failed undefined
#handleAnalysisError @ Backend.js?bust=1784029779:273
-> console.error('Sitescore: Analysis failed', errorMessage);

#analyzePageClick @ Backend.js?bust=1784029779:78
-> this.#handleAnalysisError(errorEl, loadingEl, error.message);

(anonymous) @ Backend.js?bust=1784029779:31
-> analyzeButton.addEventListener('click', () => this.#analyzePageClick(container));

I integrated a language model from IONOS and followed the instructions in the description ("Implementing a Custom LLM Repository").

I can access the model locally via the shell.

Maybe you have an idea of what I can do or where the problem might be.

Thank you very much for your help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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