Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get stats #440

Open
Artdue opened this issue Nov 22, 2024 · 1 comment
Open

Cannot get stats #440

Artdue opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Artdue
Copy link

Artdue commented Nov 22, 2024

Describe the bug
In console code 500
message: "Http failure response for https://{domain}/api/v1/projects/{projectId}/stats: 500 Internal Server Error"
In docker logs:
QueryFailedError: missing FROM-clause entry for table "projectlocale"
at PostgresQueryRunner.query (/opt/traduora/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SelectQueryBuilder.execute (/opt/traduora/node_modules/typeorm/query-builder/QueryBuilder.js:273:20) {
query: SELECT projectLocale.localeCode AS "localeCode", count(*) AS "translated" FROM "project_locale" "projectLocale" LEFT JOIN "translation" "translations" ON "translations"."project_locale_id"="projectLocale"."id" WHERE "projectLocale"."id" IN ($1, $2) AND "translations"."value" <> '' GROUP BY localeCode,
parameters: [
'---',
'---'
],
driverError: error: missing FROM-clause entry for table "projectlocale"
at /opt/traduora/node_modules/pg/lib/client.js:535:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PostgresQueryRunner.query (/opt/traduora/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25)

So it's kind of naming issue, stats won't load and export doesn't work
Tried to rename tables/columns, but new errors appear

To Reproduce
Steps to reproduce the behavior:

It's happening from the moment I choose project

Expected behavior
To see stats on the left, under the project name

Screenshots
If applicable, add screenshots to help explain your problem.

** Environment (please complete the following information):**

  • Device: Desctop
  • OS: Ubuntu
  • Browser: Chrome
  • Version: 119.0.6045.124
    App was deployed according to documentation, only config was adjusted
    Using postgres db
    Auth goes fine, but when project is chosen, i

Additional context
Add any other context about the problem here.

@Artdue Artdue added bug Something isn't working help wanted Extra attention is needed labels Nov 22, 2024
@samuelmbabhazi
Copy link
Contributor

@Artdue ,
For this I would like to have more context, please. I tried to reproduce it with PostgreSQL config as described in the problem, but I do not encounter any problems. The statistics are retrieved without any problems.

can you tell me how to reproduce this, and if possible attach a short video !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants