Broken API-browser?

Iam using Graylog 6.3.3 (free version).

When I use a browser to access the URL http://localhost:8080/api/api-browser, I get an almost empty page:

I the only the line:
“This browser is a customized version of the great Swagger project.”

I found this this doc: API Browser

But I don’t see any restrictions there explaining why it shouldn’t work.

However, I found this URL in the HTML:

And I suspect that the https is hard-coded there, because I haven’t defined https anywhere Iam only use http.

Howdy! Can you confirm what you have configured in you server.conf (or the corresponding GRAYLOG_ environment variables for docker/containers) for

  • http_publish_uri
    • must be configured to the hostname of your Graylog node (if you have more than one graylog node the value is set for each graylog node.
    • When accessing the non-global api browser, the hostname in the URI/URL must match what is configured here.
  • http_external_uri
    • This is an optional config
    • Typically this is used if you have more than one graylog node behind a load balancer, or if you want to use a different uri than the publish uri to reach your graylog node.
    • When you use the global API (/api/api-browser/global/index.html), the hostname in the URI/URL must match what is configured here.

Also can you try using /api/api-browser/global/index.html to see if you get anything?

Thanks!

Hi,
I was wrong, I really found this line in my docker-compose.yml

  GRAYLOG_HTTP_EXTERNAL_URI: "https://myhost.mynet/"

When I change https to http I still get only a blank page with http://localhost:8080/api/api-browser

But fortunately, everything works with /api/api-browser/global/index.html

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.