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

Problem with access to the Rest_Api #2200

Closed
Myote opened this issue May 7, 2016 · 4 comments
Closed

Problem with access to the Rest_Api #2200

Myote opened this issue May 7, 2016 · 4 comments
Assignees

Comments

@Myote
Copy link

Myote commented May 7, 2016

Problem description

Is there a problem in 2.0.0 with REST API browser ? Numerous timeout and I can't export to csv : {"type":"ApiError","message":"HTTP 404 Not Found"}

For the timeout I found the pb, it's when rest_enable_gzip = true; I removed it, but pb with export csv is always there.

My test configuration:
rest_listen_uri = http://0.0.0.0:12900/
rest_transport_uri = http://192.168.1.88:12900/
rest_enable_cors = true

rest_enable_gzip = true (comment to prevent timeout ...)

Steps to reproduce the problem

  1. ...

Environment

  • Graylog Version: 2.0.0-5 or 6
  • Elasticsearch Version: 2.3.2
  • MongoDB Version: 3.2.1
  • Operating System: RHEL 6.6
  • Browser version: all
@kroepke
Copy link
Member

kroepke commented May 9, 2016

Which request are you executing? In general the API browser works in 2.0.

Could you provide a screenshot of the resources you see for the search API?

@kroepke kroepke self-assigned this May 9, 2016
@Myote
Copy link
Author

Myote commented May 10, 2016

Hi Kroepke,

  • If one of this var 'rest_listen_uri = http://0.0.0.0:12900/' and '#rest_transport_uri = http:192.168.1.88:12900/' is filled with a reel ip and not 0.0.0.0, then 'Export as CSV' in main search page is broken because Graylog try to resolv an url with // (x.x.x.x//search/...).
    sans titre
  • If rest_enable_gzip = true is active then there is numerous timeout on x.x.x.x:12900/api-browser before the page is eventually displayed after many secondes.
    capture1

I know, the title should have been problem with access to the Rest_Api and not ApiError ...

@Myote Myote changed the title ApiError Problem with access to the Rest_Api May 10, 2016
@edmundoa
Copy link
Contributor

I can confirm there is a double slash in the generated URL to export the search results as CSV in certain situations. Will work on a fix for it.

edmundoa pushed a commit that referenced this issue May 10, 2016
In some situations, the `gl2ServerUrl` configuration option may end in
a slash. As we can't predict when that will happen, this commit is
normalizing the path of the generated URI, avoiding URIs with duplicated
slashes in their path, as one of the issues described in #2200.
joschi pushed a commit that referenced this issue May 11, 2016
In some situations, the `gl2ServerUrl` configuration option may end in
a slash. As we can't predict when that will happen, this change is
normalizing the path of the generated URI, avoiding URIs with duplicated
slashes in their path, as one of the issues described in #2200.
joschi pushed a commit that referenced this issue May 11, 2016
In some situations, the `gl2ServerUrl` configuration option may end in
a slash. As we can't predict when that will happen, this change is
normalizing the path of the generated URI, avoiding URIs with duplicated
slashes in their path, as one of the issues described in #2200.
(cherry picked from commit 70198f2)
@jalogisch
Copy link
Contributor

@Myote could you please verify if this issue is still present in the present version?

please reopen if still present - until now i will close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants