plugins-quickstart icon indicating copy to clipboard operation
plugins-quickstart copied to clipboard

Manifest has invalid JSON and prevents plugin from loading

Open areibman opened this issue 1 year ago • 1 comments

Description

The manifest file contains a trailing comma, so this is a malformed JSON. This creates a CORS error:

Failed to fetch localhost manifest. Check to ensure your localhost is running and your localhost server has CORS enabled.

Proposed fix

Format the JSON to remove this comma on line 12 of ai-plugin.json: "url": "http://localhost:5003/openapi.yaml",

New manifest:

{
    "schema_version": "v1",
    "name_for_human": "TODO Plugin (no auth)",
    "name_for_model": "todo",
    "description_for_human": "Plugin for managing a TODO list, you can add, remove and view your TODOs.",
    "description_for_model": "Plugin for managing a TODO list, you can add, remove and view your TODOs.",
    "auth": {
        "type": "none"
    },
    "api": {
        "type": "openapi",
        "url": "http://localhost:5003/openapi.yaml"
    },
    "logo_url": "http://localhost:5003/logo.png",
    "contact_email": "[email protected]",
    "legal_info_url": "http://example.com/legal"
}

I've attached a PR that resolves this issue. #41

areibman avatar May 25 '23 23:05 areibman

cc: @logankilpatrick

areibman avatar May 26 '23 00:05 areibman

Fixed!

logankilpatrick avatar Jun 06 '23 13:06 logankilpatrick