Skip to content

Receiving API errors when messaging through Telegram and using Nous Portal auth #28

@drewzeee

Description

@drewzeee

I'm currently getting the following error when sending a message through telegram:

[Telegram] Connected and polling for updates
👋 This is mini-swe-agent version 1.17.3.
Loading global config from '/home/andrew/.config/mini-swe-agent/.env'
(╥_╥) error, retrying...
⚠️ API call failed (attempt 1/6): AuthenticationError
⏱️ Time elapsed before failure: 0.27s
📝 Error: Error code: 401 - {'error': {'message': 'No cookie auth credentials found', 'code': 401}}

It looks like the CLI interface resolves dynamically granted credentials from auth.json and updates the environment variables, but the Gateway interface (hermes-agent running Telegram polling) missed this step and instead relies on static api keys from the .env file or environment. Consequently, mini-swe-agent running via the Telegram adapter wasn't receiving the proper auth tokens, causing the failure during API calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions