When working with a powershell project, I found myself with a credential problem and the following error:
Invoke-RestMethod : {"error":"bad_request","reason":"[{key_missing,ackmode}]"}
Browsing the internet I found a solution that consisted in adding the line of code
"ackmode" = @("ack_requeue_true", "ack_requeue_false")[[bool]$Remove]
to the project in the @body:
$body = @{
"count" = $Count
"requeue" = -not [bool]$Remove
"encoding" = $Encoding
}
The problem with which I find myself is that it asks me for credentials constantly every 3-5 seconds, is there any way to avoid that?
The project is made following this tutorial.