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

WARN goose::providers::openrouter: Failed to get usage data: No usage data in response forces new session. #1170

Open
myevolve opened this issue Feb 10, 2025 · 5 comments
Assignees
Labels
bug Something isn't working help wanted Great issue for non-Block contributors

Comments

@myevolve
Copy link

myevolve commented Feb 10, 2025

Describe the bug
The message "WARN goose::providers::openrouter: Failed to get usage data: No usage data in response" appears and goose stops waiting for input. When this happens, sometimes "try again" or "continue" will work and goose will continue. Most times, a new session is required. And just now, even a new session gives the same error.

To Reproduce
Steps to reproduce the behavior:

  1. Start goose and give it a development task
  2. The message usually will appear after goose has been running/working for 30-60 min, this includes stops asking for input.
  3. When the message appears, sometimes goose will recover and continue.
  4. Usually when the message appears, a new session has to be started, resuming session doesn't work.

Expected behavior
The error message doesn't prevent goose from continuing and goose is able to compensate and inform user more details.

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

Please provide following information:

  • **OS & Arch: Ubuntu 24.04 x86
  • Interface: [CLI]
  • Version: [v1.0.5]
  • Extensions enabled: [Developer, Computer Controller]
  • Provider & Model: [openrouter/anthropic/claude-3.5-sonnet]

Additional context
Add any other context about the problem here.

@salman1993 salman1993 added bug Something isn't working help wanted Great issue for non-Block contributors labels Feb 10, 2025
@yingjiehe-xyz
Copy link
Collaborator

Hi @myevolve, does it show any error message? Failed to get usage data is a warning, it should not block using goose

@myevolve
Copy link
Author

What I mean by blocking goose is that no matter what I type, the same message repeats itself and the only way to get goose working again is to quit and start a new session. There are times it does come back, but I've had to restart the session probably close to equal or more times it came back. The complete message is WARN goose::providers::openrouter: Failed to get usage data: No usage data in response.

@yingjiehe-xyz
Copy link
Collaborator

I see, can you add you log here? you can find it under ~/.config/goose/logs/cli/xxx/xxxx.log

@gabcoyne
Copy link

gabcoyne commented Feb 10, 2025

The quick fix for this is to open the jsonl file for the session and remove lines where the content array is empty, i.e. [] and change providers. I found that if I change providers without deleting I run into different errors per-provider.

@myevolve
Copy link
Author

Thank you @gabcoyne!

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 Great issue for non-Block contributors
Projects
None yet
Development

No branches or pull requests

5 participants