Skip to content

get_source_code function consistently returns 404 errors #2

@johnkferguson

Description

@johnkferguson

The get_source_code function appears to be completely broken, returning 404 errors for all tested paths and crates.

Steps to Reproduce

Multiple attempts with different valid paths:

  1. Dioxus example:
{
  "crateName": "dioxus",
  "version": "0.7.0-alpha.1", 
  "path": "prelude/fn.use_signal.html"
}
  1. Serde example:
{
  "crateName": "serde",
  "version": "1.0.219",
  "path": "ser/mod.rs"
}

Expected Behavior

Should return source code content for valid paths.

Actual Behavior

All attempts return: Error getting source code: Failed to get source code: HTTP error\! status: 404

Additional Context

  • get_type_info provides sourceUrl links that appear valid
  • Other functions work correctly for the same crates/versions
  • Issue affects both stable and alpha releases

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