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

unmarshaling response: json #1

Closed
burjuyz opened this issue Mar 20, 2024 · 2 comments
Closed

unmarshaling response: json #1

burjuyz opened this issue Mar 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@burjuyz
Copy link

burjuyz commented Mar 20, 2024

Версия marzbana v0.4.4
image: gozargah/marzban:dev
В логах насыпает
2024/03/20 09:09:35 Error unmarshaling response: json: cannot unmarshal number into Go struct field User.users.expire of type string

@kutovoys
Copy link
Owner

@burjuyz Спасибо за issue
Повторил у себя.
Проблема в том что я неправильно обрабатываю поле expire от api.
Поправлю к следующему релизу, заодно добавив новые метрики по expire подписок.

@kutovoys kutovoys self-assigned this Mar 20, 2024
@kutovoys kutovoys added the bug Something isn't working label Mar 20, 2024
@kutovoys
Copy link
Owner

Пофиксил в f0a57ff
Заодно добавил новую метрику: marzban_user_expiration_date

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

No branches or pull requests

2 participants