Giter Site home page Giter Site logo

rabbitmqtools's People

Contributors

mariuszwojcik avatar martindybal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rabbitmqtools's Issues

get-rabbitmqmessage ackmode

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.

Documentation of Add-RabbitMQMessage and Get-RabbitMQMessage say the same thing

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?

Get-RabbitMQQueue shortens the queue name by appending ellipses

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!

Protocol, FQDN, Port specification

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:

  • Renamed files with public functions to reflect function names (export-modulemember can thus just look at file basename)
  • Moved private functions to subfolder
  • Moved scriptstoprocess to a subfolder
  • Removed username / password option (generally a bad practice, don't want to give my folks the option : ) )
  • Changed ComputerName to BaseUri (i.e. https://fq.dn:port) and cascaded changes where I could find them (not property names, those still say computername) - not sure if having a Protocol, FQDN, and Port separately would be preferable, went with the simplest approach.

Either way, this is incredibly handy - Thanks again!

Get-RabbitMQQueue Queuename doesn't allow space

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

Task Scheduler and -AllowEscapedDotsAndSlashes

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

Issue Registering the Modules

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

  • Import-Module RabbitMQTools
  • - CategoryInfo          : ResourceUnavailable: (RabbitMQTools:String) [Import-Module], FileNotFoundException
    - FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.