Closed alanhamlett closed 11 months ago
The error happens when project couldn't be auto-detected. I'll create a validation to not call file experts endpoint when entity, project or project root count is empty.
{"caller":"pkg/api/fileexperts.go:36","func":"api.(*Client)","level":"debug","message":"fileexpert: {\"entity\":\"/Users/gandarez/.wakatime/wakatime.log\",\"project\":\"\",\"project_root_count\":4}","now":"2023-08-26T17:03:09-03:00","os/arch":"darwin/arm64","version":"<local-build>"}
{"caller":"pkg/api/fileexperts.go:64","func":"api.(*Client)","level":"debug","message":"bad request at \"https://api.wakatime.com/api/v1/users/current/file_experts\". body: \"{\\\"errors\\\": {\\\"project\\\": [\\\"This field is required.\\\"]}}\"","now":"2023-08-26T17:03:10-03:00","os/arch":"darwin/arm64","version":"<local-build>"}
I’m seeing this error from wakatime-cli:
This could be: