PubSub sample

#1

Hello,

I just tried the pupsub sample : publish.py
I get an error saying that the browser only accept "Get request"

Sorry, no clue what you are referring to ..

It's strange because I am sure I made it run in a previous installation
of crossbar

Other point.

I would like to use web2py with crossbar.
I have installes web2py + nginx + uwsgi.

Is there a good way to launch crossbar ?

The only supported way of starting a Crossbar node is via the "crossbar" command line tool.

Simply start Crossbar at system boot using the same mechanism you use to start Nginx.

/Tobias

···

Am 24.06.2014 15:58, schrieb Salvatore DI DIO:

Regards

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#2

Hello Tobias,

Here is a more detailed messages

Hello Tobias,

Here is the error message:

(crossbar)mac:basic didiosalvatore$ python test.py

Traceback (most recent call last):

File “test.py”, line 31, in

client.publish(“com.myapp.topic1”)

File “/Users/didiosalvatore/Developement/crossbar/lib/python2.7/site-packages/crossbarconnect/client.py”, line 218, in publish

raise Exception(“publication request failed {0} [{1}] - {2}”.format(response.status, response.reason, response_body))

Exception: publication request failed 405 [Method Not Allowed] -

405 - Method Not Allowed

Method Not Allowed

Your browser approached me (at /push?timestamp=2014-06-25T06%3A26%3A56.928Z&seq=1) with the method "POST". I only allow the methods HEAD, GET here.

···

Le mercredi 25 juin 2014 01:49:40 UTC+2, Tobias Oberstein a écrit :

Am 24.06.2014 15:58, schrieb Salvatore DI DIO:

Hello,

I just tried the pupsub sample : publish.py

I get an error saying that the browser only accept “Get request”

Sorry, no clue what you are referring to …

It’s strange because I am sure I made it run in a previous installation

of crossbar

Other point.

I would like to use web2py with crossbar.

I have installes web2py + nginx + uwsgi.

Is there a good way to launch crossbar ?

The only supported way of starting a Crossbar node is via the “crossbar”
command line tool.

Simply start Crossbar at system boot using the same mechanism you use to
start Nginx.

/Tobias

Regards

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com

mailto:autobahnws+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#3

Hi,

You need to run a WAMP router that provides a HTTP/POST bridge such as Crossbar and activate this via configuration - please follow:

https://github.com/crossbario/crossbar/wiki/HTTP-Pusher-Service#configuration

···

Am 25.06.2014 08:24, schrieb Salvatore DI DIO:

Hello Tobias,

Here is a more detailed messages
Hello Tobias,

Here is the error message:

(crossbar)mac:basic didiosalvatore$ python test.py

Traceback (most recent call last):

   File "test.py", line 31, in <module>

     client.publish("com.myapp.topic1")

   File
"/Users/didiosalvatore/Developement/crossbar/lib/python2.7/site-packages/crossbarconnect/client.py",
line 218, in publish

     raise Exception("publication request failed {0} [{1}] -
{2}".format(response.status, response.reason, response_body))

Exception: publication request failed 405 [Method Not Allowed] -

<html>

   <head><title>405 - Method Not Allowed</title></head>

   <body>

     <h1>Method Not Allowed</h1>

     <p>Your browser approached me (at
/push?timestamp=2014-06-25T06%3A26%3A56.928Z&amp;seq=1) with the method
"POST". I only allow the methods HEAD, GET here.</p>

   </body>

</html>

Le mercredi 25 juin 2014 01:49:40 UTC+2, Tobias Oberstein a écrit :

    Am 24.06.2014 15:58, schrieb Salvatore DI DIO:
     > Hello,
     >
     > I just tried the pupsub sample : publish.py
     > I get an error saying that the browser only accept "Get request"

    Sorry, no clue what you are referring to ..

     > It's strange because I am sure I made it run in a previous
    installation
     > of crossbar
     >
     > Other point.
     >
     > I would like to use web2py with crossbar.
     > I have installes web2py + nginx + uwsgi.
     >
     > Is there a good way to launch crossbar ?

    The only supported way of starting a Crossbar node is via the
    "crossbar"
    command line tool.

    Simply start Crossbar at system boot using the same mechanism you
    use to
    start Nginx.

    /Tobias

     >
     > Regards
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "Autobahn" group.
     > To unsubscribe from this group and stop receiving emails from it,
    send
     > an email to autobah...@googlegroups.com <javascript:>
     > <mailto:autobahnws+...@googlegroups.com <javascript:>>.
     > For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Thanks Tobias

···

Le mercredi 25 juin 2014 08:36:42 UTC+2, Tobias Oberstein a écrit :

Hi,

You need to run a WAMP router that provides a HTTP/POST bridge such as
Crossbar and activate this via configuration - please follow:

https://github.com/crossbario/crossbar/wiki/HTTP-Pusher-Service#configuration

Am 25.06.2014 08:24, schrieb Salvatore DI DIO:

Hello Tobias,

Here is a more detailed messages

Hello Tobias,

Here is the error message:

(crossbar)mac:basic didiosalvatore$ python test.py

Traceback (most recent call last):

File “test.py”, line 31, in

 client.publish("com.myapp.topic1")

File

“/Users/didiosalvatore/Developement/crossbar/lib/python2.7/site-packages/crossbarconnect/client.py”,

line 218, in publish

 raise Exception("publication request failed {0} [{1}] -

{2}".format(response.status, response.reason, response_body))

Exception: publication request failed 405 [Method Not Allowed] -

405 - Method Not Allowed
 <h1>Method Not Allowed</h1>
 <p>Your browser approached me (at

/push?timestamp=2014-06-25T06%3A26%3A56.928Z&seq=1) with the method

“POST”. I only allow the methods HEAD, GET here.

Le mercredi 25 juin 2014 01:49:40 UTC+2, Tobias Oberstein a écrit :

Am 24.06.2014 15:58, schrieb Salvatore DI DIO:
 > Hello,
 >
 > I just tried the pupsub sample : publish.py
 > I get an error saying that the browser only accept "Get request"
Sorry, no clue what you are referring to ..
 > It's strange because I am  sure I made it run in a previous
installation
 > of crossbar
 >
 > Other point.
 >
 > I would like to use web2py with crossbar.
 > I have installes web2py + nginx + uwsgi.
 >
 > Is there a good way to launch crossbar ?
The only supported way of starting a Crossbar node is via the
"crossbar"
command line tool.
Simply start Crossbar at system boot using the same mechanism you
use to
start Nginx.
/Tobias
 >
 > Regards
 >
 >
 > --
 > You received this message because you are subscribed to the Google
 > Groups "Autobahn" group.
 > To unsubscribe from this group and stop receiving emails from it,
send
 > an email to autobahnws+...@googlegroups.com <javascript:>
 > <mailto:autobahnws+unsub...@googlegroups.com <javascript:>>.
 > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout)
<[https://groups.google.com/d/optout](https://groups.google.com/d/optout)>.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com

mailto:autobahnws+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes