[rt-users] CLI malformed rt response

Andy Harrison aharrison at gmail.com
Tue Nov 16 10:00:44 EST 2004


Whenever I try to use the bin/rt command line tool, it comes back with 
"rt: Malformed RT response from http://localhost."

I tried modifying the file share/html/REST/1.0/search/ticket as suggested in
http://lists.bestpractical.com/pipermail/rt-users/2004-October/026706.html
but this didn't help.

I've tried various commands like, rt ls "Priority > 5 and
Status='new'" and rt ls -t user 34 but the result is always the same.

The access_log shows:
localhost - - [16/Nov/2004:09:46:46 -0500] "POST /REST/1.0/search/user
HTTP/1.1" 200 4325

No errors in error_log.

The rt.log shows:
[Tue Nov 16 14:46:46 2004] [info]: Successful login for root from
127.0.0.1 (/usr/local/rt3/share/html/autohandler:182)

And the debug output:

# rt ls -t user 34
POST http://localhost/REST/1.0/search/user
Content-Length: 203
Content-Type: multipart/form-data; boundary=xYzZY
                
--xYzZY         
Content-Disposition: form-data; name="query"
                
34           
--xYzZY         
Content-Disposition: form-data; name="user"
                
root            
--xYzZY         
Content-Disposition: form-data; name="pass"
                
xxxxxxxxxxxx
--xYzZY--       
HTTP/1.1 200 OK 
Cache-Control: no-cache
Connection: close
Date: Tue, 16 Nov 2004 14:46:46 GMT
Pragma: no-cache
Server: Apache  
Content-Type: text/html; charset=utf-8
Client-Date: Tue, 16 Nov 2004 14:46:46 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Link: <https://<mywebrthostname>/NoAuth/images/favicon.png>;
rel="shortcut icon"; type="image/png"
Link: </NoAuth/webrt.css>; rel="stylesheet"; type="text/css"
Set-Cookie: RT_SID_<mywebrt.hostname>.80=xxxxxxxxsnipxxxxxxxxx; path=/
Title:          
                
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>          
<HEAD>          
<TITLE></TITLE> 
                
<link rel="shortcut icon"
href="https://<mywebrthostname>/NoAuth/images/favicon.png"
type="image/png">
<link rel="stylesheet" href="/NoAuth/webrt.css" type="text/css">
</HEAD>         
<BODY BGCOLOR="#ffffff"
ONLOAD="        
    var tmp = (document.getElementsByName('focus'));
    if (tmp.length > 0) tmp[tmp.length-1].focus();
"               
>               
<table width="100%" border="0" cellspacing="0" cellpadding="0"
bgcolor="#FFFFFF">
  <tr>          
    <td colspan=2><a href="https://<mywebrthostname>"><img
src="https://<mywebrthostname>/NoAuth/images/gwi.jpg" alt=""></a></td>
    <td> </td>
    <td> </td>
    <td width="50%" align="right">
<SPAN STYLE="display: none"><A HREF="#skipnav">Skip Menu</A> |</SPAN>
<A  HREF="/SelfService/Prefs.html" >Preferences</A>
                
<BR>            
Logged in as <b>root</b>
</font>         
    </td>       
  </tr>         
</table>        
                
                
<table class="darkblue" border=0 cellspacing=0 cellpadding=0 width="100%">
  <th class="titlebox" align="left"><span class="rtname">RT for
<mywebrthostname></span>
  </th>         
      <span class="topactions">
        <td class="darkblueright">
        <FORM ACTION="/SelfService/Display.html"><input type=submit
value="Goto ticket"> <input size=4 name=id></FORM>
                
        </td>   
      </span>   
</table>        
<table border=0 cellspacing=0 cellpadding=0 width="100%" height="100%">
<TR height="100%">
<TD valign="top" width="140" class="blue">
          <ul class="topnav" >
<li style="border-bottom: solid white 1px; padding-top: .25em;
padding-bottom: .5em;"><A HREF="/SelfService/" style="font-size: 16;"
class="topnav"
                
accesskey='1'>Open tickets</A>
<li style="border-bottom: solid white 1px; padding-top: .25em;
padding-bottom: .5em;"><A HREF="/SelfService/Closed.html"
style="font-size: 16;" class="topnav"
                
accesskey='2'>Closed tickets</A>
<li style="border-bottom: solid white 1px; padding-top: .25em;
padding-bottom: .5em;"><A HREF="/SelfService/Create.html"
style="font-size: 16;" class="topnav"
                
accesskey='3'>New ticket</A>
<li style="border-bottom: solid white 1px; padding-top: .25em;
padding-bottom: .5em;"><A HREF="/SelfService/Prefs.html"
style="font-size: 16;" class="topnav"
                
accesskey='4'>Preferences</A>
</ul>           
                
                
                
</TD>           
<td valign="top">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>            
  <td class="blue" valign="top">
    <span class="title">RT Self Service</span>
</td>           
</tr>           
<tr>            
<td class="blueright" valign="top">
    <span class="nav">
    </span>     
  </td>         
</tr>           
<TR valign="top">
<TD valign="top" width="100%" height="100%" class="mainbody" >
                
                
<a name="skipnav" id="skipnav" accesskey="8"></a>
                
                
                
                
<TABLE CLASS="" 
        BGCOLOR="#336699"
        CELLSPACING=0
        BORDER=0
        WIDTH="100%"
        CELLPADDING="0">
                
  <TR>          
    <TH         
        style="color: #336699;"
        class="titlebox">
      <span class="titleboxtitle">
        <b>     
         My open tickets</b>
      </span>   
    </TH>       
    <TH         
         style="color: #336699;"
         class="titleboxright">
      <span class="titleboxright"> </span>
    </TH>       
  </TR>         
  <tr>          
    <td bgcolor="#dddddd" colspan="2" class="">
                
<TABLE BORDER=0 cellspacing=1 cellpadding=1 BGCOLOR="#eeeeee" WIDTH=100%>
<TR>            
<TH>Subject</TH>
<TH>Status</TH> 
<TH>Owner</TH>  
</TR>           
<TR>            
</TABLE>        
    </TD>       
  </TR>         
</TABLE>        
                
                
                
                
                
rt: Malformed RT response from http://localhost.

Any ideas?

-- 
Andy Harrison



More information about the rt-users mailing list