Remoting Error: HTTP Gateway status 403

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Remoting Error: HTTP Gateway status 403

Michael Martin-15
Hello, I have followed the following tutorial: http://pyamf.org/tutorials/gateways/django.html and keep getting the same error after
running the python code:

import logging

logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s %(levelname)-5.5s [%(name)s] %(message)s'
)

from pyamf.remoting.client import RemotingService

url = 'http://127.0.0.1:8000/gateway/'
gw = RemotingService(url, logger=logging)
service = gw.getService('myservice')

print service.echo('Hello World!')




The following error occurs:
pyamf.remoting.RemotingError: HTTP Gateway reported status 403 Forbidden


How should I fix this problem?

Thanks.



_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Remoting Error: HTTP Gateway status 403

Nick Joyce
On 30 Jun 2010, at 05:22, Michael Martin wrote:

Hello, I have followed the following tutorial: http://pyamf.org/tutorials/gateways/django.html and keep getting the same error after
running the python code:

import logging

logging.basicConfig( level=logging.DEBUG, format='%(asctime)s %(levelname)-5.5s [%(name)s] %(message)s' )

from pyamf.remoting.client import RemotingService
url = 'http://127.0.0.1:8000/gateway/' gw = RemotingService(url, logger=logging) service = gw.getService('myservice')
print service.echo('Hello World!')



The following error occurs:
pyamf.remoting.RemotingError: HTTP Gateway reported status 403 Forbidden


How should I fix this problem?

Thanks.
Is there anything in the server logs that would shed any light on this? Without more information its going to be difficult to diagnose this issue. 403 is quite a specific error message - do you have any authentication wrapping that url?

Cheers,

Nick

_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users