invalid byte sequence in UTF-8 (ArgumentError) & 'parse_error!': unmatched end tag at fluentd.con line so so (Fluent::ConfigParseError) #4338
Unanswered
book-thief
asked this question in
Q&A
Replies: 1 comment
-
Above .conf is not fully formatted well. Anyway, it seems that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I'm having this error when i download fluentd config from server and write it to fluentd.con in ` C:/opt/fluent/etc/fluent/fluentd.conf``
i'm using a powershell script to do it will which is right below
$CONFFILE = "C:/opt/fluent/etc/fluent/fluentd.conf" Write-Output "Downloading config file..." try { $response = Invoke-RestMethod -Uri $CONF_URL -Method Post -Headers $headers -Body $body Write-Output $response $response | Out-File -FilePath $CONFFILE -Encoding utf8 Write-Output "Config file downloaded successfully" } catch { Write-Output "Error occurred: $_" if ($_.Exception.Response -ne $null) { $reader = [System.IO.StreamReader]::new($_.Exception.Response.GetResponseStream()) $responseBody = $reader.ReadToEnd() Write-Output "Response: $responseBody" } }
and config i get from server is also written below
as you can see in api call when i get response i encode it to UTF-8 why i stop doing that i get this error and when i encode it in UTF-8
Then i get following error
'parse_error!': unmatched end tag at fluentd.con line so so (Fluent::ConfigParseError)
config is same in both cases the only difference is encoding and without encodeing
i have attached picture for both error
Beta Was this translation helpful? Give feedback.
All reactions