Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8784041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:59:04+00:00 2026-06-13T20:59:04+00:00

When using the HTTP API I am trying to make a call to the

  • 0

When using the HTTP API I am trying to make a call to the aliveness-test for monitoring purposes. At the moment I am testing using curl and the following command:

 curl -i http://guest:guest@localhost:55672/api/aliveness-test/

And I get the following response:

HTTP/1.1 404 Object Not Found
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
Date: Mon, 05 Nov 2012 17:18:58 GMT
Content-Type: text/html
Content-Length: 193

<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not Found</H1>The requested document was not found on this server.<P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></BODY></HTML>

When making a request just to list the users or vhosts, the requests returns successfully:

$ curl -I http://guest:guest@localhost:55672/api/users

HTTP/1.1 200 OK
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
Date: Mon, 05 Nov 2012 17:51:44 GMT
Content-Type: application/json
Content-Length: 11210
Cache-Control: no-cache

I’m using the latest stable version (2.8.7) of RabbitMQ and obviously have the management plugin installed for the API to work with the users call (the response is left out due to it containing company data but is just regular JSON as expected).

There isn’t much on the internet about this call failing so I am wondering if anyone has seen this before?

Thanks,
Kristian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:59:07+00:00Added an answer on June 13, 2026 at 8:59 pm

    Turns out that the ‘/’ at the beginning of the vhosts names is not implicit, even when as part of a URL. To get this to work I simply changed my request from:

    curl -i http://guest:guest@localhost:55672/api/aliveness-test/
    

    To

    curl -i http://guest:guest@localhost:55672/api/aliveness-test/%2F
    

    As %2F is ‘/’ HTTP encoded, my request now queries the vhost named ‘/’ and returns a 200 response which looks like:

    {"status":"ok"}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Bing API to search for images by going the following call: http://api.bing.net/json.aspx?AppId=[my
I'm trying to make a RESTful api call from the android emulator (using android
The jQuery docs at http://api.jquery.com/on/ mention the benefits of delegated-events using the following syntax
I am using the following plugin: http://flowplayer.org/tools/scrollable.html and under the sub-heading of Scripting API
I am trying to make a get http request using jquery getJSON function. I
I'm trying to make an HTTP Get request using JQuery, but I get an
I can make a search query using these tokens here: http://developers.facebook.com/docs/api#search in the links:
I'm trying to figure out how make a basic GET request using Network.HTTP.simpleHTTP that
I'm trying to access a 3rd party api over http using jquery .ajax (or
I'm using a URLLoader and URLRequest to make a call to youtube's api. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.