Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

Cannot read property 'total_time_spent' of undefined #34

@benchti

Description

@benchti

Hello, i get this error on version 1.7.0 ( with docker)

seems related to #27 .

ben@ben-ant:~$ gtt -V
1.7.0

ben@ben-ant:~$ gtt report --from="2017-01-01" --to="2017-11-11"
 Warning: Merge Requests are included in the report but not queried. 
🔍  Selected projects: xxx/xxx
🔍  Resolving "xxxx/xxx"... ✓
📦  Fetching issues... ✓
📎  Merging reports... ✓
⚙️️  Processing issues... ✗91) [----------------------------------------] 0% - 0m left
Error: could not process issues.
TypeError: Cannot read property 'total_time_spent' of undefined
    at resolve (/usr/local/share/.config/yarn/global/node_modules/gitlab-time-tracker/src/models/hasTimes.js:114:52)
    at Promise (<anonymous>)
    at promise.then (/usr/local/share/.config/yarn/global/node_modules/gitlab-time-tracker/src/models/hasTimes.js:107:38)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions