Hi! I’m trying to send a very basic HTTP report with only %PARSEDRESULT% and a backup ID as parameters. This is my current configuration:
With this configuration, when I run the backup, I get
[Warning-Duplicati.Library.Modules.Builtin.ReportHelper-ReportSubmitError]: Failed to send message: System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type
If I use POST and JSON as result-output-format it works fine, but I get a whole report with a lot of info that I don’t need and without the backup ID that I do need.
I’m guessing I’m doing something wrong, but I don’t know what.
I’m using Duplicati 22.214.171.124_beta_2023-05-25 on Windows 11
I don’t think you can send a report using GET, because it will try to add a body which is not allowed. Post with JSON ignores the format. You should try POST with Duplicati output type. That should send a form-urlencoded body with the
message parameter set to the parsed result. The extra parameters will also be added to the body.
Edit: JSON should not completely ignore the format, but only add the fields specified anywhere in the format string. It will however not add the extra parameters you specified.
Thank you for your quick response! Yes, of course I have tried just using POST, but for some reason the API tries to parse the body as a json and throws an exception…
Anyway, if this is true then it should be good enough, thank you!