Skip to content

HTTP 404 on Login #156

@keithah

Description

@keithah

All authentication attempts fail with HTTP Code 404: Not Found, indicating that Monarch Money has changed their API endpoints.

Environment

  • Library Version: v0.1.15 (latest)
  • Python: 3.13.7
  • Platform: macOS 15.6 (ARM64)
  • Date: August 19, 2025

Issue Details

What's Broken

All login attempts fail immediately with:

LoginFailedException: HTTP Code 404: Not Found

This occurs even with test credentials, indicating the authentication endpoint itself no longer exists.

What I've Tested

  1. Clean Installation: Uninstalled and reinstalled v0.1.15 from PyPI
  2. Session Reset: Removed .mm directory as recommended in v0.1.15 release notes
  3. Multiple Approaches: Tested with both test credentials and different authentication methods

Root Cause Analysis

I investigated Monarch Money's current web application and found:

  1. Current Architecture: The web app (https://app.monarchmoney.com) is now a React SPA
  2. API Endpoint: Uses GraphQL at https://api.monarchmoney.com/graphql
  3. Authentication: Appears to use GraphQL mutations instead of REST endpoints
  4. Missing Endpoints: The old REST authentication endpoints that this library relies on no longer exist

Evidence

Current Web App CSP Header shows these API endpoints:

connect-src 'self' ... https://api.monarchmoney.com https://events-api.monarchmoney.com ...

Testing endpoints directly:

  • https://api.monarchmoney.com/auth/login/ → 404 Not Found ❌
  • https://api.monarchmoney.com/graphql → 401 Unauthorized (but exists) ✅

Test Script Output

🧪 TEST 2: Authentication (Test Credentials)
---------------------------------------------
Testing with: test@example.com / testpassword
❌ Login failed: HTTP Code 404: Not Found
   Error type: LoginFailedException
   🔍 Analysis: HTTP 404 - Authentication endpoint doesn't exist
   💡 This suggests Monarch Money changed their API endpoints

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