umami api client test ko with docker umami version 2.13.3
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, typescript
Hướng nghiên cứu
Start by reproducing the getMe and getWebsites calls from the issue against a self-hosted version 2.13.3 server, using the shown getClient and login flow. Inspect the client requests and the server-side UUID error to determine where the incompatible user identifier is introduced. Done means the affected calls no longer return the reported 504 error, with the behavior covered by an appropriate test if the repository provides one.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
https://github.com/boly38/action-umami-report/issues/59
I'm trying to play basis example (ex. I first would like to list websites)
- server with umami docker self-hosted
- self-hosted umami version
2.13.3
env
export UMAMI_API_CLIENT_USER_ID=admin
export UMAMI_API_CLIENT_PASSWORD=xxx-replace-by-admin-password-here
export UMAMI_API_CLIENT_SECRET=xxx-replace-by-app-secret-set-in-docker-compose
export UMAMI_API_CLIENT_ENDPOINT=https://myumami.example.fr/api
node
import {getClient} from '@umami/api-client';
const umamiUsername = process.env.UMAMI_API_CLIENT_USER_ID;
const umamiPassword = process.env.UMAMI_API_CLIENT_PASSWORD;
let client;
const getMeFixed = false;
{
client = getClient();
const {ok, data, status, error} = await client.login(umamiUsername, umamiPassword);
console.log(`login: ${JSON.stringify({ok, data, status, error}, null, 2)}`);
}
if (getMeFixed) {
const {ok, data, status, error} = await client.getMe();
console.log(`getMe: ${JSON.stringify({ok, data, status, error}, null, 2)}`);
}
{
const {ok, data, status, error} = await client.getWebsites();
console.log(`getWebsites: ${JSON.stringify({ok, data, status, error}, null, 2)}`);
}
result
login: {
"ok": true,
"data": {
"token": "==REDATED==",
"user": {
"id": "==REDATED==",
"username": "admin",
"role": "admin",
"createdAt": "2024-07-12T15:52:00.340Z",
"isAdmin": true
}
},
"status": 200
}
getWebsites: {
"ok": false,
"status": 504,
"error": "<html>\r\n<head><title>504 Gateway Time-out</title></head>\r\n<body>\r\n<center><h1>504 Gateway Time-out</h1></center>\r\n<hr><center>nginx</center
>\r\n</body>\r\n</html>\r\n"
}
but I got 504 error with server side error logs :
PrismaClientKnownRequestError:
Invalid `prisma.user.findUnique()` invocation:
Inconsistent column data: Error creating UUID, invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `m` at 3
at _n.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7749)
at _n.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7057)
at _n.request (/app/node_modules/@prisma/client/runtime/library.js:121:6741)
at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9355)
at async /app/.next/server/chunks/405.js:1:17597 {
code: 'P2023',
clientVersion: '5.17.0',
meta: {
modelName: 'User',
message: 'Error creating UUID, invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `m` at 3'
}
}
NB: it was the same kind of error for getMe use case.
this issue and error logs are close to umami-software/umami/issues/1964
I just try to create a !admin new user and switch env to use this new creds, login is ok but I got same issue for the getWebsites step .. :'(
any help / hint appreciated
regards
- Ngôn ngữ chính
- TypeScript
- Star
- 48
- Fork
- 18
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của umami-software/api-client
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
umami-software/api-client#11 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
umami-software/api-client#26 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 32/100
umami-software/api-client#25 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
umami-software/api-client#24 · 1 bình luận ·
-
Cannot get started in Nuxt 3Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 32/100
umami-software/api-client#20 ·
Tất cả issue của umami-software/api-client
Issue tương tự
-
a10y a10y-audit ai-driven-qa claude
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
linagora/twake-directory-manager#219 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0️⃣ phase/new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Pulse v7: buildPreferencesFromTelos() bypasses telosSectionOrFile(), renders empty on unified-TELOS installsCó thể đã có người làm @zephyr91 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
danielmiessler/LifeOS#2393 ·
Maintainer thường phản hồi trong vòng 4 ngày