Issues with certain Plugin API endpoints failing with HTTP 501 Error

I am currently building a ChatGPT plugin for my grocery price comparison site Kassalapp.

Whenever i ask for ChatGPT to perform any kind of search, it always fails. (see image)
However, i also have the ability to simply lookup a product by ID or EAN:

And this works fine, I am unsure why the search endpoints are not working, but here is what i have found out:

  • Changing the search url to not overlap with the other endpoints did not have any effect (i changed it to be /search-for-products for testing)
  • It is not the API returning an error, i have replicated the same parameters on the production API and it works fine.
  • Restricting it to only 1 search result does not help
  • Inspecting the logs (both locally and on the server) shows that no request is made to the API endpoint at all, so it is not simply a failed request, it is the openapi proxy or internal system that has an issue with something in the api spec.

Here is the relevant JSON from the chatgpt API (devtools, copied from the network tab)

{
  "title": "Product Search Failure",
  "create_time": 1684274940.910038,
  "update_time": 1684275363.0,
  "mapping": {
    "873995ec-e333-4212-ad8a-654ad19183b0": {
      "id": "873995ec-e333-4212-ad8a-654ad19183b0",
      "message": {
        "id": "873995ec-e333-4212-ad8a-654ad19183b0",
        "author": {
          "role": "assistant",
          "metadata": {}
        },
        "create_time": 1684274955.823719,
        "content": {
          "content_type": "text",
          "parts": [
            "{\n  \"search\": \"grandiosa 4 oster\",\n  \"size\": 1\n}"
          ]
        },
        "status": "finished_successfully",
        "end_turn": false,
        "weight": 1.0,
        "metadata": {
          "model_slug": "gpt-4-plugins",
          "finish_details": {
            "type": "stop",
            "stop": "<|im_end|>"
          },
          "timestamp_": "absolute"
        },
        "recipient": "Kassalapp.searchProducts"
      },
      "parent": "aaa282bf-50e5-4501-a275-b4bc5e208d01",
      "children": [
        "32af0332-7bf8-4e08-a30c-ef671358c6a8"
      ]
    },
    "32af0332-7bf8-4e08-a30c-ef671358c6a8": {
      "id": "32af0332-7bf8-4e08-a30c-ef671358c6a8",
      "message": {
        "id": "32af0332-7bf8-4e08-a30c-ef671358c6a8",
        "author": {
          "role": "tool",
          "name": "Kassalapp.searchProducts",
          "metadata": {}
        },
        "create_time": 1684274955.824059,
        "content": {
          "content_type": "stderr",
          "text": "Error communicating with plugin: 501"
        },
        "status": "finished_successfully",
        "weight": 1.0,
        "metadata": {
          "model_slug": "gpt-4-plugins",
          "timestamp_": "absolute"
        },
        "recipient": "all"
      },
      "parent": "873995ec-e333-4212-ad8a-654ad19183b0",
      "children": [
        "cf073b7b-6b0f-4dc7-be98-d5b41145bf42"
      ]
    }
  },
  "moderation_results": [],
  "current_node": "d37280ca-f3d0-483f-85b2-40a44571fdcd",
  "plugin_ids": [
    "plugin-e8cb0147-50f3-42f2-a644-4145cd19d61e"
  ]
}

If you want to try it out:

“install unverified plugin” using the following domain:
kassal.app

Here are the manifest files and spec:

AI Plugin JSON
kassal DOT app/.well-known/ai-plugin.json

OpenAPI Spec:
kassal DOT app/docs/api.json

The API requires authentication, so you need an account, but signing up is free and access to the api is also free, you can signup here: kassal DOT app/register then click “Opprett API Nøkkel” on this page: kassal DOT app/profil/api the token that appears is what you enter into the input that asks for a token in ChatGPT.

Any help on resolving this or a statement from the ChatGPT staff would be appreciated.