Hello,

I've never been able to get the REST API browser to work in either 1.x or 
2.x.  I'm accessing through a proxy, but both the web UI and API usage work 
fine.

When I access the browser page at https://xxx.example.com:8081/api-browser

(8081 is my proxied port for the API), I get a kind of table-of-contents 
page, show in the first screenshot.  Notice that I have a login username 
and password on the upper right, even though I am logged into the graylog 
UI on the same browser.  There is no login button though, and entering a 
username and password and pressing enter does nothing.

If I click on any of the items in the table of contents, or any of the 
links on the left side except "Raw", nothing happens.  If I click on "Raw", 
I sometimes get some JSON, and sometimes (after 2.0 upgrade) get an 
exception pretty-printed back from the server, e.g.:

*java.net.URISyntaxException: Illegal character in path at index 50: 
http://logger.i.solaforce.com:80/api-docs/streams/{streamid}/alarmcallbacks*

     1: 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.getRequestUri(GrizzlyHttpContainer.java:491)
     2: 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:366)
     3: 
org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224)
     4: 
com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
     5: 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
     6: 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
     7: java.lang.Thread.run(Thread.java:745)

*Root Cause: java.net.URISyntaxException: Illegal character in path at 
index 50: 
http://logger.i.solaforce.com:80/api-docs/streams/{streamid}/alarmcallbacks*

     1: java.net.URI$Parser.fail(URI.java:2848)
     2: java.net.URI$Parser.checkChars(URI.java:3021)
     3: java.net.URI$Parser.parseHierarchical(URI.java:3105)
     4: java.net.URI$Parser.parse(URI.java:3053)
     5: java.net.URI.(URI.java:588)
     6: 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.getRequestUri(GrizzlyHttpContainer.java:489)
     7: 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:366)
     8: 
org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224)
     9: 
com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
    10: 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        ... 2 more



I have tried Firefox and Chrome on Windows.  I don't get any Javascript 
errors showing in developer console, nor are there any failed network 
requests logged.  Any idea what is wrong?  Is it simply unsupported to use 
the API browser through a proxy, or through a proxy with different port for 
the API?

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/d098872f-23b9-4e48-8ccb-df7eb511eed4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to