mariuszwojcik / rabbitmqtools Goto Github PK
View Code? Open in Web Editor NEWPowerShell module containing cmdlets to manage RabbitMQ.
License: MIT License
PowerShell module containing cmdlets to manage RabbitMQ.
License: MIT License
Using:
RabbitMQServer 3.7.3
Erland OTP Win64 20.2.exe
RabbitMWTools 1.0 and 1.2 (both have the issue)
Get-RabbitMQMessage throws and error message of bad_request, missing_key,ackmode
Messing with the invoke-restmethod insde Get-RabbitMQMessage, I tried adding ackmode to the body but am not sure what it's looking for. I see references to "COUNT" "BATCH" "basic.ack" "basic.reject" and others but adding the parameter results in internal server error 500 in every case.
I tried adding
$body = @{
"count" = $Count
"requeue" = -not [bool]$Remove
"encoding" = $Encoding
"ackmode" = "BATCH"
}
Trying again now leaves me with "AllowEscapedDotsAndSlashes" as an unavailable parameter for Invoke-RestMethod. So I might have to start over from scratch and see what went wrong with the installation.
I can verify my exchange and queue using the appropriate PowreShell cmdlets as well as add a messages . I can see messages waiting using the GUI admin interface.
Hi,
Looking at the documentation of Add-RabbitMQMessage
.Synopsis
Gets messages from RabbitMQ Queue.
.DESCRIPTION
The Add-RabbitMQMessage cmdlet gets messages from RabbitMQ queue.
The result may be zero, one or many RabbitMQ.Message objects.
and the documentation of Get-RabbitMQMessage
<#
.Synopsis
Gets messages from RabbitMQ Queue.
.DESCRIPTION
The Get-RabbitMQMessage cmdlet gets messages from RabbitMQ queue.
The result may be zero, one or many RabbitMQ.Message objects.
Isn't Add-RabbitMQMessage
supposed to add a new message to the queue?
On running the following cmd -
Get-RabbitMQQueue -VirtualHost /
one of the queue's name is returned as
cmrs.orphanacknowledgements_dea...
The complete name of the queue is
cmrs.orphanacknowledgements_deadletter
Whereas, on querying the queues directly thru' the API, the name comes back properly.
Please help!
Hi Marius!
Great job with this module, it's quite handy, was a helpful interface to getting a feel for working with RabbitMQ.
I'm rolling this out to production, which means (for us) SSL. I'll be working on this a bit to mold it to meet our needs - would you be interested in pull requests, or prefer to keep your project as-is?
If you are interested, let me know! Have a few POC changes made at the fork:
Either way, this is incredibly handy - Thanks again!
when using something like this
$Queue = 'Subscription for 2fc8e48a-0a10-40dd-aeb9-a2f552136243e5#8'
Get-RabbitMQMessage -VirtualHost $VirtualHost -Name $Queue -Count 1 -Credential $RMQCRED -BaseUri $RMQURI -Encoding auto -View Default
i receive this
Invoke-RestMethod : {"error":"not_found","reason":"NOT_FOUND - no queue 'Subscription+for+2fc8e48a-0a10-40dd-aeb9-a2f552136243e5#8' in vhost 'RMQ_TEST'"}
At line:131 char:13
it looks like the + sign is translated
Hi,
I encountered the following error:
If I run my script directly it works fine, if I start it with the Windows Task Scheduler the Get-RabbitMQQueue cmdlet throws the error "A parameter cannot be found that matches parameter name 'AllowEscapedDotsAndSlashes'".
I fixed it by removing the parameter from the GetItemsFromRabbitMQApis.ps1 but maybe you have a look at it. The URL I give to the cmdlet has no characters which need to be escaped so that I don't need the functionality, but maybe other do. If you need any more details, I'll be happy to provide them.
Kind regards,
secana
After I download and uncompress all in a folder I went to the folder using powershell and did the Import-Module RabbitMQTools command and I get the following error: Do I have to do something else?
PS C:\Temp\RabbitMQTools-master> Import-Module RabbitMQTools
Import-Module : The specified module 'RabbitMQTools' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
- CategoryInfo : ResourceUnavailable: (RabbitMQTools:String) [Import-Module], FileNotFoundException
- FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Hello:
Is it possible to export the content of e Queue into an SQL Server DB?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.