Cap-Cloud / Cap-Elasticsearch-Client

11 stars 2 forks source link

feature request for agent #9

Open HarrisMt opened 3 years ago

HarrisMt commented 3 years ago

the uri allow me to request just only with browser, not allow with tool. could you please add agent feature for me to use it normally. without forbitten.

`org.elasticsearch.client.ResponseException: method [GET], host [http://e-dynamic-dev.huaxin-gateway.com], URI [/_cluster/health], status line [HTTP/1.1 403 Forbidden]

403 Forbidden

403 Forbidden


nginx/1.18.0 (Ubuntu)
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270)
at com.cap.plugins.elasticsearch.a.a.c(Unknown Source)
at com.cap.plugins.elasticsearch.ui.explorer.c.c.e(Unknown Source)
at com.cap.plugins.common.g.b.h.invoke(Unknown Source)
at com.cap.plugins.common.h.a.run(Unknown Source)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:450)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:117)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:510)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:243)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:243)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)`
Cap-Cloud commented 3 years ago

Please give me some time, thanks.


From: HarrisMt @.> Sent: Tuesday, October 5, 2021 1:06:29 PM To: Cap-Cloud/Cap-Elasticsearch-Client @.> Cc: Subscribed @.***> Subject: [Cap-Cloud/Cap-Elasticsearch-Client] feature request for agent (#9)

the uri allow me to request just only with browser, not allow with tool. could you please add agent feature for me to use it normally. without forbitten.

`org.elasticsearch.client.ResponseException: method [GET], host [http://e-dynamic-dev.huaxin-gateway.com], URI [/_cluster/health], status line [HTTP/1.1 403 Forbidden]

403 Forbidden

403 Forbidden


nginx/1.18.0 (Ubuntu)

at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270) at com.cap.plugins.elasticsearch.a.a.c(Unknown Source) at com.cap.plugins.elasticsearch.ui.explorer.c.c.e(Unknown Source) at com.cap.plugins.common.g.b.h.invoke(Unknown Source) at com.cap.plugins.common.h.a.run(Unknown Source) at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:450) at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:117) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:510) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:243) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:243) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:829)`

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Cap-Cloud/Cap-Elasticsearch-Client/issues/9, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP7QHWDPXTS6EPCK2QJBS5DUFKBVLANCNFSM5FK4BISQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Cap-Cloud commented 3 years ago

Could you check your nginx config file? The uri[/_cluster] is forbidden by the nginx server, I think.


From: 鲜 伍 @.> Sent: Tuesday, October 5, 2021 1:38:18 PM To: Cap-Cloud/Cap-Elasticsearch-Client @.>; Cap-Cloud/Cap-Elasticsearch-Client @.> Cc: Subscribed @.> Subject: Re: [Cap-Cloud/Cap-Elasticsearch-Client] feature request for agent (#9)

Please give me some time, thanks.


From: HarrisMt @.> Sent: Tuesday, October 5, 2021 1:06:29 PM To: Cap-Cloud/Cap-Elasticsearch-Client @.> Cc: Subscribed @.***> Subject: [Cap-Cloud/Cap-Elasticsearch-Client] feature request for agent (#9)

the uri allow me to request just only with browser, not allow with tool. could you please add agent feature for me to use it normally. without forbitten.

`org.elasticsearch.client.ResponseException: method [GET], host [http://e-dynamic-dev.huaxin-gateway.com], URI [/_cluster/health], status line [HTTP/1.1 403 Forbidden]

403 Forbidden

403 Forbidden


nginx/1.18.0 (Ubuntu)

at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296) at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270) at com.cap.plugins.elasticsearch.a.a.c(Unknown Source) at com.cap.plugins.elasticsearch.ui.explorer.c.c.e(Unknown Source) at com.cap.plugins.common.g.b.h.invoke(Unknown Source) at com.cap.plugins.common.h.a.run(Unknown Source) at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:450) at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:117) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:510) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:243) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:243) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:829)`

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Cap-Cloud/Cap-Elasticsearch-Client/issues/9, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP7QHWDPXTS6EPCK2QJBS5DUFKBVLANCNFSM5FK4BISQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

HarrisMt commented 2 years ago

no I can request by browser just only cann't request by tool. I think it is restriced without browser agent

Cap-Cloud commented 2 years ago

Hello, I'm not sure. But it forbiddened when i use my mobile browser, and other request is OK.[Image]

[Image]

[Image]


From: HarrisMt @.> Sent: Friday, October 22, 2021 10:38:26 AM To: Cap-Cloud/Cap-Elasticsearch-Client @.> Cc: Cap-Cloud @.>; Comment @.> Subject: Re: [Cap-Cloud/Cap-Elasticsearch-Client] feature request for agent (#9)

no I can request by browser just only cann't request by tool. I think it is restriced without browser agent

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Cap-Cloud/Cap-Elasticsearch-Client/issues/9#issuecomment-949239263, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP7QHWDMUFYCPN47OQBTJBDUIDFCFANCNFSM5FK4BISQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.