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

debug url output does not surface port #21

Open
teb510 opened this issue Aug 19, 2024 · 1 comment
Open

debug url output does not surface port #21

teb510 opened this issue Aug 19, 2024 · 1 comment

Comments

@teb510
Copy link

teb510 commented Aug 19, 2024

if i make a call with the debug output when it shows the entire final request - the url does not include the port - the request below was for localhost:8000/anything:

 {
    "action": "value",
    "name": "response_body",
    "type": "application/json",
    "value": {
      "args": {},
      "data": "",
      "files": {},
      "form": {},
      "headers": {
        "Accept": "*/*",
        "Content-Type": "application/json",
        "Host": "httpbin.org",
        "User-Agent": "curl/8.7.1",
        "X-Amzn-Trace-Id": "Root=1-66c3707c-1f49e42b531803940e2b5503",
        "X-Datakit-Debug-Trace": "1",
        "X-Foo": "Bar",
        "X-Forwarded-Host": "localhost",
        "X-Forwarded-Path": "/anything",
        "X-Hello": "World",
        "X-Kong-Request-Id": "13335a7261ab48470673f84dd7802955",
        "X-Name": "United States"
      },
      "json": null,
      "method": "GET",
      "origin": "192.168.65.1, 66.27.103.214",
      "url": "https://localhost/anything"
    }
  }
@hishamhm
Copy link
Collaborator

hishamhm commented Nov 4, 2024

Anything under value is actual response body. So, the url key there was produced by httpbin.org/anything, not by Datakit.

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