Re: Adding to your queue

From: Stefan Kaczmarek <stefan_at_thezonie.org>
Date: Wed, 18 Apr 2007 21:47:48 -0700

Yeah, that's the thing, I think ... I stepped on something, I fear.

:(

On Apr 18, 2007, at 9:38 PM, Ivan Kwok wrote:

> Did u put the files in /zonie folder?
>
> I got this error:
> Received Accounts to Register: 1
> UDP Port: 50020
> Sending Library Index Hashes: 37
> Registering User: theskycat
> org.json.JSONException: A JSONObject text must begin with '{' at
> character 1 of
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>404 Not Found</title>
> </head><body>
> <h1>Not Found</h1>
> <p>The requested URL /queue.php was not found on this server.</p>
> <hr>
> <address>Apache/2.0.59 (CentOS) Server at 129.47.9.160 Port 80</
> address>
> </body></html>
>
> at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
> at org.json.JSONObject.<init>(JSONObject.java:178)
> at org.json.JSONObject.<init>(JSONObject.java:275)
> at UserSockets.ReceivedClientHttpResponse(UserSockets.java:
> 196)
> at
> ClientHttpSocket.SomeSocketDataReceived(ClientHttpSocket.java:47)
> at TSocket.OnReceive(TSocket.java:324)
> at UserSockets.select(UserSockets.java:500)
> at User.select(User.java:42)
> at ViralApplication.main(ViralApplication.java:83)
>
> -Ivan
>
> -----Original Message-----
> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
> Sent: Wednesday, April 18, 2007 9:32 PM
> To: Dylan Douglas
> Cc: Ivan Kwok; Ben Ebert; Ty Heath; Jay Mairs; Sergio Alvarez
> Subject: Re: Adding to your queue
>
> So, I accidentally uploaded the following files (my files) into the
> root folder of the web server instead of the /zonie folder (whoops!):
>
> search.php
> media.php
> func.php
> library.php
> history.php
> queue.php
>
> If there were files that were similarly named, they've now been
> whacked. I deleted my files, so if there were files there that got
> stepped on, they'll be missing now.
>
> Doh.
>
> - Z
>
> On Apr 18, 2007, at 8:46 PM, Stefan Kaczmarek wrote:
>
>> Ok, so now there's an "Add to Queue" link on the media page. It
>> will only poop on itself if the item is already in the queue, but I
>> am assuming that we can get that remedied manana.
>>
>> - Z
>>
>> On Apr 18, 2007, at 8:32 PM, Stefan Kaczmarek wrote:
>>
>>> Actually, if the want to add something to their queue, why not
>>> just shoot it to the top of their queue instead and not return an
>>> error? Since that'll pretty much give the same effect.
>>>
>>> I still want an empty json callback of some kind, just so that I
>>> know that it happened. (For async feedback, basically.)
>>>
>>> - Z
>>>
>>> On Apr 18, 2007, at 8:24 PM, Stefan Kaczmarek wrote:
>>>
>>>> D,
>>>>
>>>> Right now if you try and add something to your queue that is
>>>> already in there, it returns "DB Error: already exists" ... which
>>>> isn't valid JSON. If there's an error, how about you return a
>>>> JSON string with an 'error' param with some sort of
>>>> descriptor ... or something ... I guess just don't return
>>>> text ... Hell, you could put "DB Error: already exists" as the
>>>> 'error' value. I don't care. :)
>>>>
>>>> Because right now, when there's a successful add, you return
>>>> nothing, right? Just returning an empty JSON would be cool by
>>>> me ... or an 'error' 'none' or '0' or something. Just so that I
>>>> know shit completed correctly.
>>>>
>>>> - Z
>>>
>>
>
Received on Fri Sep 14 2007 - 10:56:00 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 16 2007 - 22:19:47 BST