Dash ("-") in openapi url leads to GPT error when creating action

I am creating an action within a custom GPT and when there is a dash in the URL of the openAPI spec it shows an error (Hmm…something seems to have gone wrong). When I remove the dash, the error is gone.

Not working:
{
“openapi”: “3.1.0”,
“info”: {
“title”: “Some Title”,
“description”: “api desc”,
“version”: “v1.0.0”
},
“servers”: [
{
“url”: “url-dash(dot)de
}
],

Working:
{
“openapi”: “3.1.0”,
“info”: {
“title”: “Some Title”,
“description”: “api desc”,
“version”: “v1.0.0”
},
“servers”: [
{
“URL”: urldash(dot)de"
}
],

I can confirm, I am seeing this same behavior. I was not able to find any work arounds here.

Experiencing the same behavior with my API that’s hosted on DigitalOcean (which has dashes in its URLs)

Ah - is that what the problem is. I am seeing the same thing with an API deployed to replit, where you have no choice about having a “-” in the URL…

Tried URL encode it with

%2D

But it did not work.

It seems that this problem has been fixed. I can send requests to my url now.

1 Like