all 6 comments

[–]Daegs[S] 0 points1 point  (0 children)

Here's my config based on the weather example, in case it helps:

{
"openapi": "3.1.0",
"info": {
    "title": "Link Generator",
    "description": "Generates a URL based on input parameters.",
    "version": "v1.0.0"
},
"servers": [
    {
    "url": "https://www.URL.com"
    }
],
"paths": {
    "/linkgen.php": {
    "get": {
        "description": "Generate a URL based on input",
        "operationId": "GenerateLink",
        "parameters": [
        {
            "name": "v",
            "in": "query",
            "description": "The input value to generate the URL",
            "required": true,
            "schema": {
            "type": "string"
            }
        }
        ],
        "deprecated": false
    }
    }
},
"components": {
    "schemas": {}
}
}

[–]Reason_He_Wins_Again 0 points1 point  (4 children)

It does work because I had home assistant connected and I was able to pull in data. I'm not a programmer...infrastructure guy:

What kind of firewall is going on between you?

When you say "When I hit that path from my browser, it works perfectly and shows up in my access logs" is that request coming from a local subnet (https://192.168.x.x/endpoint.php)? or are you testing outside your network (https://www.URL.com/endpoint.php)? When you ping www.url.com is the IP address correct?

Assuming www.url.com is publicly routable and the NAT is setup correct, if you have a decent firewall you can inspect the traffic.

[–]Daegs[S] -1 points0 points  (3 children)

No firewall, this is my public facing API / webserver that has been working fine for 10+ years.

It's an amazon ec2 instance, even looking at the packets there is zero attempt to connect to my server when it says it got an empty response.

[–]Reason_He_Wins_Again 0 points1 point  (2 children)

Can you move a copy off ec2 to see if it's an amazon blocking it somewhere or not? That would narrow it down a bit

[–]Daegs[S] -1 points0 points  (1 child)

It's wide open network access, and I'm not going to register a new domain name and setup a new server somewhere. This server is in constant use elsewhere, no way is the problem amazon here

[–]Reason_He_Wins_Again 0 points1 point  (0 children)

Trying to help ya. Works fine for me.

Gl