Hi Chris,

This is the reply I get while running the *ProductionConfig*. The browser
shows 404.
*curl -v --header "Accept:text/xml" http://localhost:5000
<http://localhost:5000>*
* About to connect() to localhost port 5000 (#0)
*   Trying 127.0.0.1... connected
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0
OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:5000
> Accept:text/xml
>
< HTTP/1.1 404 NOT FOUND
< Content-Type: text/html
< Content-Length: 233
< Server: TornadoServer/4.1
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server.  If you entered the URL
manually please check your spelling and try again.</p>
* Connection #0 to host localhost left intact
* Closing connection #0

And this is the reply I get while running *DebugConfig.* The browser shows
no data received.
curl -v --header "Accept:text/xml" http://localhost:5000
* About to connect() to localhost port 5000 (#0)
*   Trying 127.0.0.1... connected
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0
OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:5000
> Accept:text/xml
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
* Closing connection #0

When I run http://localhost:5000/Patient through DebugConfig, I get a login
screen on the browser.
I was reading the documentation again it says to specify config file in
TRYTON_CONFIG. Is this the server "trytond.conf" or something else?

Thanks,
Arpit

On Thu, Mar 26, 2015 at 11:43 PM, Chris <[email protected]> wrote:

> Hiya!
>
> Sorry about delay -- busy week for me!
>
> > I'm trying to connect to the server using same machine but different
> user.
> > I tried using both browser and cURL through terminal. Here are the
> outputs:
>
> Yeah, the user shouldn't matter.
>
> > Client (username - arpit):
> >
> > curl http://localhost:5000
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> > <title>404 Not Found</title>
> > <h1>Not Found</h1>
> > <p>The requested URL was not found on the server.  If you entered the URL
> > manually please check your spelling and try again.</p>
>
> Yeah, that's not good. Try this:
>
> $ curl -v --header "Accept: text/xml" http://localhost:5000
>
> The -v switch should show more info.
>
> The --header switch overrides the content-type accepted.
>
> I've had annoying issues with content negotiation, but Flask and its
> addons support json by default, but I haven't coded the custom json
> standard for FHIR. And curl, by default, accepts json (I think), so...
> issues. I thought I fixed these issues... but maybe not.
>
>
> Are you running the production config? Or?
>
> Does the browser do the same thing? Show 404s?
>
> > arpit@ubuntu:~$ curl http://localhost:5000/Patient
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> > <title>404 Not Found</title>
> > <h1>Not Found</h1>
> > <p>The requested URL was not found on the server.  If you entered the URL
> > manually please check your spelling and try again.</p>
> >
> > Server (username - gnuhealth):
> >
> > python run_server.py
> > No handlers could be found for logger "party"
> > WARNING:tornado.access:404 GET / (127.0.0.1) 21.02ms
> > WARNING:tornado.access:404 GET /Patient (127.0.0.1) 3.08ms
>
> Yeah, the 404s may be those json requests and error responses to them.
> Or, something more mysterious.
>
> Thanks!
>
> -C
>
>

Reply via email to