Luke,

>  use an apache redirect - it's what's on pyjs.org anyway :)
>
>    ProxyPass /JSON http://127.0.0.1:8000/JSON
>    ProxyPassReverse /JSON http://127.0.0.1:8000/JSON
>
> so if you make that http://pyjs.org:8000/JSON it'll be all hunky-dory.

For future reference, I got this to work without port 8000, i.e.

    ProxyPass /JSON http://pyjs.org/JSON
    ProxyPassReverse /JSON http://pyjs.org/JSON

Now I do (at least) get a JSON response and the answer looks like
correct JSON (with the repo content that is displayed online), but the
Pyjamas Desktop application says "JSONRPC Error -32700: Parse error
while decoding response". (The compiled Pyjamas application actually
displays no message, strange this discrepancy.)

The error is generated at the end of onModuleLoad() here ...

class JSONRPCExample:
    def onModuleLoad(self):
        # ...
        self.remote.heads(self)

... and onRemoteResponse() is never called. Any suggestion where I
should look to find out what's wrong?

Cheers, Peter

Reply via email to