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

Request failed :java.lang.IllegalArgumentException #11

Open
2delarosa opened this issue Mar 24, 2020 · 4 comments
Open

Request failed :java.lang.IllegalArgumentException #11

2delarosa opened this issue Mar 24, 2020 · 4 comments

Comments

@2delarosa
Copy link

I'm running graylog-3.2.4 and I downloaded graylog2-plugin-input-httpmonitor-1.0.5.jar to the plugin folder. I create a GET HTTP reguest but I'm getting the following error:

Request failed :java.lang.IllegalArgumentException: Header name cannot contain the following prohibited characters: =,;: \t\r\n\v\f

I don't believe I'm using illegal characters. Do you have any suggestions on how to troubeshoot?

Thanks in advance.

HTTP Monitor Input Configuration

configHeadersToRecord: <empty>
configHeadersToSend: Accept:application/json, Authorization:Bearer d017317b89c07500fcc9a43074d038e34c4a3aa0248de9e419d8a10b80bea65e
configHttpProxy: <empty>
configInterval: 1
configIntervalUnit: MINUTES
configLabel: A3RegisteredNodes
configLogResponseBody: true
configMethod: GET
configPassword:********
configRequestBody: <empty>
configTimeout: 20
configTimeoutUnit: SECONDS
configURL: https://192.168.128.248:9999/api/v1/reports/registered
configUsername: <empty>
decompress_size_limit: 8388608
override_source: <empty>
@jeremyglanum
Copy link

Hi,

Do you have any news about compatibility with graylog V3 ?

Thanks,

@sivasamyk
Copy link
Owner

sivasamyk commented Mar 31, 2020

@jeremyglanum Are you getting similar error? I have not verified the plugin with graylog v3 yet.

@jeremyglanum
Copy link

@sivasamyk, No, I havent error, I was just afraid about the compatibility but all works with the V3.

Thanks,

@sivasamyk
Copy link
Owner

sivasamyk commented Apr 14, 2020

@2delarosa Can you update your header config from
Accept:application/json, Authorization:Bearer d017317b89c07500fcc9a43074d038e34c4a3aa0248de9e419d8a10b80bea65e to Accept:application/json,Authorization:Bearer d017317b89c07500fcc9a43074d038e34c4a3aa0248de9e419d8a10b80bea65e? Notice that I have removed the space before Authorization:.... I tested without space and it works fine.

@jeremyglanum I verified this plugin with Graylog 3.2.4 and it works fine!

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

3 participants