GPT Schema Error - Could not find a valid URL in `servers`

Does anyone know why I am getting this error …Could not find a valid URL in servers
when importing a URL in config in actions?

Presumably your JSON schema is missing a valid URL, look near the top for something like this:

"servers": [
      "url": "https://whatever-your-site-url-is"

Thanks! Yes, I am aware of that, but how do I put that in the schema and import the url at the same time? What am I missing - apperciated.

where are you getting the schema from?

Alternatively, just add those lines to your schema once it’s imported, although that’s not an ideal solution.

we need more info.

I can only say

  • localhost doesnt seem to work right.
  • ngrok fixes it.
1 Like

We need more resources for schemas to work. I can’t get any apis to work with the schemas Ive been trying to make. Ive been working on it for 4 days and nothing. Any words of encourage or resources you can point me to? thx

I had the same error. I found that the .yaml from my plugin had the Server object inside the Info object. Delete the whitespace in front of the Server object. I was on openapi 3.0, not sure if there was a change to 3.1

maybe becuase youre not currently hosting an api on localhost? i thought it was more of a placemarker at this point i n"PROD?"

maybe becuase youre not currently hosting an api on localhost? I thought that was more of a placeholder when not in PROD?