Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest has invalid JSON and prevents plugin from loading #40

Closed
areibman opened this issue May 25, 2023 · 2 comments
Closed

Manifest has invalid JSON and prevents plugin from loading #40

areibman opened this issue May 25, 2023 · 2 comments

Comments

@areibman
Copy link

areibman commented May 25, 2023

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": "legal@example.com",
    "legal_info_url": "http://example.com/legal"
}

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

@areibman
Copy link
Author

cc: @logankilpatrick

@logankilpatrick
Copy link
Contributor

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants