APE Check Tool Problems...

32 views
Skip to first unread message

koch...@frontiernet.net

unread,
Oct 6, 2013, 8:14:51 PM10/6/13
to ape-p...@googlegroups.com
Hello all, i have my APE Server started up and running as root... I am running the check tool, but it fails on Connecting to APE server saying that it can't login.  Here's the output using Firebug:

[{"cmd":"CONNECT","chl":1,"params":{"name":"1381104783347"}}]


[{"time":"1381104783","raw":"FAIL","data":{"you":"fail"}}]


[{"cmd":"CHECK","chl":2,"sessid":null}]

[{"time":"1381104783","raw":"ERR","data":{"code":"004","value":"BAD_SESSID"}}]



I have this running at

http://www.bidcutter.com/app/webroot/js/Tools/Check/


Do you guys have any suggestions???? Thanks much!

RakonDark

unread,
Oct 6, 2013, 8:57:50 PM10/6/13
to ape-p...@googlegroups.com

Any output at the server ?

--
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
 
---
You received this message because you are subscribed to the Google Groups "APE Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ape-project...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Nicolas Guibert

unread,
Oct 7, 2013, 4:23:50 AM10/7/13
to APE Project
Never saw the "FAIL" raw thing. Is it on your server code?







Nicolas Guibert
Games in Mind Ltd
Managing director
7 Spencer Walk
French Mobile: +33 (0)7 53 17 20 13



2013/10/7 RakonDark <rako...@gmail.com>

koch...@frontiernet.net

unread,
Oct 7, 2013, 8:22:02 AM10/7/13
to ape-p...@googlegroups.com, ioa.g...@googlemail.com

You have to use FireBug to see this.  Any other developers ever seen this?

Louis Charette

unread,
Oct 7, 2013, 8:34:19 AM10/7/13
to ape-p...@googlegroups.com
Did you add or modified any server side script in the scripts folder on the server?

Envoyé de mon iPhone

Le 2013-10-07 à 08:22, koch...@frontiernet.net a écrit :


You have to use FireBug to see this.  Any other developers ever seen this?

--

Louis Charette

unread,
Oct 7, 2013, 8:37:15 AM10/7/13
to ape-p...@googlegroups.com
I just tested your link again and it does seems to work now.

All test done. Now you can play with your APE \o/

  - Louis

Le 2013-10-07 à 08:22, koch...@frontiernet.net a écrit :


You have to use FireBug to see this.  Any other developers ever seen this?

koch...@frontiernet.net

unread,
Oct 7, 2013, 8:44:48 AM10/7/13
to ape-p...@googlegroups.com

maybe this will help someone someday - but i updated my scripts/main.ape.js and removed include("framework/http_auth.js"); from the config and restarted the APE Server - now i'm all good.

Thanks!

Louis Charette

unread,
Oct 7, 2013, 8:49:10 AM10/7/13
to ape-p...@googlegroups.com
You have version 1.1.2 build from source? Or 1.1.3-DEV from GitHub?

Envoyé de mon iPhone

Le 2013-10-07 à 08:44, koch...@frontiernet.net a écrit :


maybe this will help someone someday - but i updated my scripts/main.ape.js and removed include("framework/http_auth.js"); from the config and restarted the APE Server - now i'm all good.

Thanks!

--

peter.r...@verpeteren.nl

unread,
Oct 7, 2013, 8:49:34 AM10/7/13
to ape-p...@googlegroups.com
Hai

TL,DR; comment out the framework/http_auth.js include line in
main.ape.js, and it works.

This is probably caused by including the 'framework/http_auth.js' in
your main.ape.js.
If you include this, the parameters that the CONNECT cmd send, will be
forwarded to "http://127.0.0.1/index.php" as post.
The idea is that you can use such a thing as a proxy for
authentication, but I guess that it is better placed in the
scripts/examples folder then the scripts/framework folder



Peter Reijnders

koch...@frontiernet.net schreef op 2013-10-07 02:14:
> --
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to ape-p...@googlegroups.com
> To unsubscribe from this group, send email to
> ape-project...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en [1]
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/ [2]
> Git Hub : http://github.com/APE-Project/ [3]
>
> ---
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to ape-project...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out
> [4].
>
>
> Links:
> ------
> [1] http://groups.google.com/group/ape-project?hl=en
> [2] http://www.ape-project.org/
> [3] http://github.com/APE-Project/
> [4] https://groups.google.com/groups/opt_out

Louis Charette

unread,
Oct 7, 2013, 8:53:23 AM10/7/13
to ape-p...@googlegroups.com
Peter, can you update this on github?

Envoyé de mon iPhone
> Git Hub : http://github.com/APE-Project/
>
> --- You received this message because you are subscribed to the Google Groups "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ape-project...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

koch...@frontiernet.net

unread,
Oct 7, 2013, 9:00:43 AM10/7/13
to ape-p...@googlegroups.com, peter.r...@verpeteren.nl
So to give you more background info - i updated main.ape.js myself and included it, before the wiki was back up - i was just trying everything - so basically i caused my own problem.  But thanks so much for the help - i am looking forward to implementing this very soon.


Louis Charette

unread,
Oct 7, 2013, 5:57:29 PM10/7/13
to ape-p...@googlegroups.com
Nevermind Peter, I did it.

- Louis

Joe Kochinski

unread,
Oct 7, 2013, 9:30:46 PM10/7/13
to ape-p...@googlegroups.com
So I have another question...  First let me tell you what I want to do.  I want to be able to have the web users be able to join a certain channel, if the channel don't exist I assume a mkchannel even will be fired and I want to start a set interval that will push out data to my client... However this don't work...
 
Server:
 
 Ape.addEvent('mkChan', function(channel) {
 //clearInterval(window["bidcutter_channel_" + auction_id]);
 var window["bidcutter_channel_" + channel.getProperty('name')] = Ape.setInterval(function(a,b) {
  channel.pipe.sendRaw('FOORAW', {'John':'Doe'});
 }, 1000);
});

Ape.addEvent('rmChan', function(channel) {
 Ape.clearInterval(window["bidcutter_channel_" + channel.getProperty('name')]);
});
 
client:
 <script type="text/javaScript">
        var client = new APE.Client();
 
        //Load APE client
        client.load();
 
        client.addEvent('load', function() {
            client.core.start({'name': '' + Date.now() + ''});//Start with a random name
        });
 
        client.addEvent('ready', function() {
   client.core.join('testChannel1');
        });
  client.onRaw('FOORAW', function(raw, pipe) {
   console.log('Receving: ' + raw.data.msg);
  }); 

 </script>
  
 
I get no data - can you help or show me at least a little guidance?  And thanks so much!!!!
 

Pablo Tejada

unread,
Oct 7, 2013, 9:35:53 PM10/7/13
to ape-p...@googlegroups.com

Why are you using window? Is that event defined? To make a global variable just define it outside the the callback function or assign it without var.

--

Joe Kochinski

unread,
Oct 8, 2013, 7:36:01 AM10/8/13
to ape-p...@googlegroups.com
So the channel maybe different each time, I need to call a hash var to hold my created name for the setInterval.  Is this right?

For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
 
---
You received this message because you are subscribed to the Google Groups "APE Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:ape-project%2Bunsu...@googlegroups.com.
--
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
 
---
You received this message because you are subscribed to a topic in the Google Groups "APE Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ape-project/ZRrIRqOzWpg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ape-project...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages