Go Down

Topic: Twitter Interface Using Arduino Tweet (Read 889 times) previous topic - next topic

Johnny D

I'm trying to make a modified tweeting device with Gainspan's GS1011MP unit and a modified version of the Twitter library put together by NeoCat.  The program i have succesfully connects to arduino-tweet.appspot.com but I get the error message back:

Quote
Your request could not be processed. Request could not be handled
This could be caused by a misconfiguration, or possibly a malformed request.
For assistance, contact your network support team.


I'm connecting to the IP address for "arduino-tweet.appspot.com" via a TCP client on the GS1011MP unit.  I seem to succesfully connect.

My debugging output is below; I'm just not sure what's "malformed" and needs to be correct.  I've x'd out the token, but the rest of the output here is verbatim.  The "S" and "E" are both preceeded by escape symbol

Any ideas why this could be messing up?  Am I missing something within the dialogue to the server?

Thanks for any help!!!




AT+DNSLOOKUP=arduino-tweet.appspot.com
74.125.39.141
AT+NCTCP=74.125.39.141,80

CONNECT 0

OK

S0POST http://arduino-tweet.appspot.com/update HTTP/1.0

E
S0Content-Length: 76



E
S0token=XXXXXXXX-XXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxx&status=Hello World!

E
,«Vi½¹Ñɽ±ér½…¡•5
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Connection: close
Content-Length: 691

<HTML><HEAD>
<TITLE>Request Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Request Error (invalid_request)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
Your request could not be processed. Request could not be handled
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
This could be caused by a misconfiguration, or possibly a malformed request.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
E

Hello,

I am starting the same project and am having trouble modifying the twitter libraries to even get a connection. Would it be possible for you to post your modifications?

Where you able to resolve your stated problem?

Many Thanks,

Randon   

Johnny D

Hello,

Sure, we put it up on a blog post.  This is written in RobotC, for the LEGO MINDSTORMS NXT, but the commands should be understandable I think.  The code is fully listed here:

http://dexterindustries.com/blog/2011/11/11/wifi-week-twitter-temperature/

Go Up