Action test to free public Github API fails

Hi team, i was making a GPTs and wanted to create an action which simply read a README.md from public github repo. My first test was successful and I was able to get ChatGPT to ask me “what do you want me to do with this data?” . After i tried to ask something, it failed but after that i was never able to get a succcessful test.

Here is the open api schema:

openapi: 3.0.0
info:
  title: GitHub README Access API
  version: 1.0.0
paths:
  /repos/owner/repo/contents/README.md:
    get:
      summary: Get README from owner/repo
      operationId: getReadme
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  content:
                    type: string
                    format: byte
      security:
        - ApiKeyAuth: []

Here is what happens when testing:

Call the api.github.com API with the getReadme operation
Tested getReadme
[debug] Calling HTTP endpoint
{
  "domain": "api.github.com",
  "method": "get",
  "path": "/repos/owner/repo/contents/README.md",
  "operation": "getReadme",
  "operation_hash": "2f899069ae642f2898b065094f6af345ba0dffe2",
  "is_consequential": false,
  "params": {}
}
[debug] Response received
{
  "response_data": {
    "message": "Not Found",
    "documentation_url": "https://docs.github.com/rest"
  },
  "status_code": 404,
  "action_id": "g-f26fe3e25f3b7694ece4b5df0b7395fc56993334"
}
Talked to
It seems there was an issue accessing the requested information from the RunaCapital GitHub repository. The API call did not succeed, possibly due to changes in the repository's availability or structure. If you have another specific software or category in mind for which you need open source alternatives, please let me know, and I'll assist you accordingly.

Any reason why this would be happening? Even though I am using public github API for call, i even added an auth with my API key but it still seems the call is failing.

When I do a simple get from Postman for /repos/owner/repo/contents/README.md i get a responses.

/repos/{owner}/{repo}/contents/{path}

{owner} & {repo} & {path} is variables

{path} = README.md or path to folder/file

right, i just put owner and repo replacing the production values i had. but thats essentially what i have but its still saying ‘Not found’ . It worked one time and thats it, next time without any code change, it stops working.

use this API Schema ( no Authentication )

{
  "openapi": "3.0.0",
  "info": {
    "title": "GitHub API",
    "version": "1.0.0",
    "description": "API for accessing content from GitHub repositories"
  },
  "servers": [
    {
      "url": "https://api.github.com",
      "description": "GitHub API server"
    }
  ],
  "paths": {
    "/repos/{owner}/{repo}/contents/{path}": {
      "get": {
        "operationId": "getRepositoryContent",
        "summary": "Get repository content",
        "description": "Retrieves the contents of a file or directory in a repository",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "Owner of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Name of the repository",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "Path to the file or directory",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "sha": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Content not found"
          }
        }
      }
    }
  }
}

thank you. I was trying without the auth first and it was not working but must be my formatting.