REST API not working

Wednesday, 31 August 2016 · 9 messages · last reply 3 Sep 2016
DK
Dirk Kirstenin reply to E. Wray Johnson, 31 Aug 2016, 16:0931 Aug 2016 15:15 #
Hello, Windows 12? I am an long-time linux-only user, but isn't the most current windows version 10 or am I missing the news completely? You will have to be much more specific. Please specify which BaseX version you use, please post how you start the basexserver and the console output and how you try to reach the REST endpoint. Also, I don't know what you mean by you are not confusing TCP and REST port. This statement doesn't really make sense, as REST uses TCP... Cheers Dirk
Quoted text · E. Wray Johnson · 2 lines
On 08/31/2016 02:09 PM, E. Wray Johnson wrote: > Windows 12 server, running basexserver. Server is listening but hangs and never returns anything. When server is killed behavior is different so I can tell the server was listening on the REST port when running. I am not confusing the TCP port with REST port.
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
BV
Bram Vanroy31 Aug 2016 15:17 #
Just a guess, but I think he means Windows Server 2012! -----Oorspronkelijk bericht-----
Quoted text · basex-talk-bounces at mailman.uni-konstanz.de · 26 lines
Van: basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] Namens Dirk Kirsten Verzonden: woensdag 31 augustus 2016 15:15 Aan: basex-talk at mailman.uni-konstanz.de Onderwerp: Re: [basex-talk] REST API not working Hello, Windows 12? I am an long-time linux-only user, but isn't the most current windows version 10 or am I missing the news completely? You will have to be much more specific. Please specify which BaseX version you use, please post how you start the basexserver and the console output and how you try to reach the REST endpoint. Also, I don't know what you mean by you are not confusing TCP and REST port. This statement doesn't really make sense, as REST uses TCP... Cheers Dirk On 08/31/2016 02:09 PM, E. Wray Johnson wrote: > Windows 12 server, running basexserver. Server is listening but hangs and never returns anything. When server is killed behavior is different so I can tell the server was listening on the REST port when running. I am not confusing the TCP port with REST port. -- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
DK
Dirk Kirsten31 Aug 2016 15:18 #
well, that makes sense :)
Quoted text · Bram Vanroy · 40 lines
On 08/31/2016 03:17 PM, Bram Vanroy wrote: > Just a guess, but I think he means Windows Server 2012! > > -----Oorspronkelijk bericht----- > Van: basex-talk-bounces at mailman.uni-konstanz.de > [mailto:basex-talk-bounces at mailman.uni-konstanz.de] Namens Dirk Kirsten > Verzonden: woensdag 31 augustus 2016 15:15 > Aan: basex-talk at mailman.uni-konstanz.de > Onderwerp: Re: [basex-talk] REST API not working > > Hello, > > Windows 12? I am an long-time linux-only user, but isn't the most current > windows version 10 or am I missing the news completely? > > You will have to be much more specific. Please specify which BaseX version > you use, please post how you start the basexserver and the console output > and how you try to reach the REST endpoint. Also, I don't know what you mean > by you are not confusing TCP and REST port. This statement doesn't really > make sense, as REST uses TCP... > > Cheers > > Dirk > > > On 08/31/2016 02:09 PM, E. Wray Johnson wrote: >> Windows 12 server, running basexserver. Server is listening but hangs and > never returns anything. When server is killed behavior is different so I can > tell the server was listening on the REST port when running. I am not > confusing the TCP port with REST port. > > -- > Dirk Kirsten, BaseX GmbH, http://basexgmbh.de > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 > >
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
EJ
E. Wray Johnson31 Aug 2016 16:09 #
Windows 12 server, running basexserver. Server is listening but hangs and never returns anything. When server is killed behavior is different so I can tell the server was listening on the REST port when running. I am not confusing the TCP port with REST port.
EJ
E. Wray Johnson31 Aug 2016 18:41 #
I apologize, by 12 I meant Windows Server 2012. BaseX version is 8.5.3 By TCP vs REST I mean for REST I was using default port 8984 instead of the default server TCP port 1984 For example: http://*admin*:*admin*@localhost:8984/*rest *OR http://localhost:8984/ *rest* I run basexserver from DOS Command Prompt *.* I am using a web browser to test as I have many times before with version 8.4 I know the server is listening because it hangs and does not return, which does not occur when the server is stopped.
Quoted text · Dirk Kirsten · 31 lines
On Wed, Aug 31, 2016 at 9:15 AM, Dirk Kirsten <dk at basex.org> wrote: > Hello, > > Windows 12? I am an long-time linux-only user, but isn't the most > current windows version 10 or am I missing the news completely? > > You will have to be much more specific. Please specify which BaseX > version you use, please post how you start the basexserver and the > console output and how you try to reach the REST endpoint. Also, I don't > know what you mean by you are not confusing TCP and REST port. This > statement doesn't really make sense, as REST uses TCP... > > Cheers > > Dirk > > > On 08/31/2016 02:09 PM, E. Wray Johnson wrote: > > Windows 12 server, running basexserver. Server is listening but hangs > and never returns anything. When server is killed behavior is different so > I can tell the server was listening on the REST port when running. I am > not confusing the TCP port with REST port. > > -- > Dirk Kirsten, BaseX GmbH, http://basexgmbh.de > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 > >
DK
Dirk Kirsten1 Sep 2016 11:13 #
Hello, How do you start the basex server? Could you please start it in debug mode and post us the console output? Cheers, Dirk
Quoted text · E. Wray Johnson · 51 lines
On 08/31/2016 04:41 PM, E. Wray Johnson wrote: > I apologize, by 12 I meant Windows Server 2012. > BaseX version is 8.5.3 > By TCP vs REST I mean for REST I was using default port 8984 instead > of the default server TCP port1984 > For example: http:///admin/:/admin/@localhost:8984//rest /OR > http://localhost:8984//rest > / > I run basexserver from DOS Command Prompt/. > / > I am using a web browser to test as I have many times before with > version 8.4 > I know the server is listening because it hangs and does not return, > which does not occur when the server is stopped./ > / > > On Wed, Aug 31, 2016 at 9:15 AM, Dirk Kirsten <dk at basex.org > <mailto:dk at basex.org>> wrote: > > Hello, > > Windows 12? I am an long-time linux-only user, but isn't the most > current windows version 10 or am I missing the news completely? > > You will have to be much more specific. Please specify which BaseX > version you use, please post how you start the basexserver and the > console output and how you try to reach the REST endpoint. Also, I > don't > know what you mean by you are not confusing TCP and REST port. This > statement doesn't really make sense, as REST uses TCP... > > Cheers > > Dirk > > > On 08/31/2016 02:09 PM, E. Wray Johnson wrote: > > Windows 12 server, running basexserver. Server is listening but > hangs and never returns anything. When server is killed behavior > is different so I can tell the server was listening on the REST > port when running. I am not confusing the TCP port with REST port. > > -- > Dirk Kirsten, BaseX GmbH, http://basexgmbh.de > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 > > >
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
EJ
E. Wray Johnson3 Sep 2016 04:36 #
C:\Users\Administrator>basexserver -d BaseX 8.5.3 [Server] Server was started (port: 1984).
Quoted text · Dirk Kirsten · 66 lines
On Thu, Sep 1, 2016 at 5:13 AM, Dirk Kirsten <dk at basex.org> wrote: > Hello, > > How do you start the basex server? Could you please start it in debug mode > and post us the console output? > Cheers, Dirk > > > On 08/31/2016 04:41 PM, E. Wray Johnson wrote: > > I apologize, by 12 I meant Windows Server 2012. > BaseX version is 8.5.3 > By TCP vs REST I mean for REST I was using default port 8984 instead of > the default server TCP port 1984 > For example: http://*admin*:*admin*@localhost:8984/*rest *OR > http://localhost:8984/ > *rest * > I run basexserver from DOS Command Prompt > *. * > I am using a web browser to test as I have many times before with version > 8.4 > I know the server is listening because it hangs and does not return, which > does not occur when the server is stopped. > > On Wed, Aug 31, 2016 at 9:15 AM, Dirk Kirsten <dk at basex.org> wrote: > >> Hello, >> >> Windows 12? I am an long-time linux-only user, but isn't the most >> current windows version 10 or am I missing the news completely? >> >> You will have to be much more specific. Please specify which BaseX >> version you use, please post how you start the basexserver and the >> console output and how you try to reach the REST endpoint. Also, I don't >> know what you mean by you are not confusing TCP and REST port. This >> statement doesn't really make sense, as REST uses TCP... >> >> Cheers >> >> Dirk >> >> >> On 08/31/2016 02:09 PM, E. Wray Johnson wrote: >> > Windows 12 server, running basexserver. Server is listening but hangs >> and never returns anything. When server is killed behavior is different so >> I can tell the server was listening on the REST port when running. I am >> not confusing the TCP port with REST port. >> >> -- >> Dirk Kirsten, BaseX GmbH, http://basexgmbh.de >> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >> | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle >> `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 >> >> > > > -- > Dirk Kirsten, BaseX GmbH, http://basexgmbh.de > |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz > |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: > | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle > `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 > >
EJ
E. Wray Johnson3 Sep 2016 05:59 #
http://localhost:8984/rest/ Still hanging. Where is the log file where I can see what's going on? Wray Johnson
Quoted text · E. Wray Johnson · 57 lines
> On Sep 2, 2016, at 8:36 PM, E. Wray Johnson <wray.johnson at gmail.com> wrote: > > C:\Users\Administrator>basexserver -d > BaseX 8.5.3 [Server] > Server was started (port: 1984). > >> On Thu, Sep 1, 2016 at 5:13 AM, Dirk Kirsten <dk at basex.org> wrote: >> Hello, >> >> How do you start the basex server? Could you please start it in debug mode and post us the console output? >> Cheers, Dirk >> >> >>> On 08/31/2016 04:41 PM, E. Wray Johnson wrote: >>> I apologize, by 12 I meant Windows Server 2012. >>> BaseX version is 8.5.3 >>> By TCP vs REST I mean for REST I was using default port 8984 instead of the default server TCP port 1984 >>> For example: http://admin:admin@localhost:8984/rest OR http://localhost:8984/rest >>> I run basexserver from DOS Command Prompt. >>> I am using a web browser to test as I have many times before with version 8.4 >>> I know the server is listening because it hangs and does not return, which does not occur when the server is stopped. >>> >>> On Wed, Aug 31, 2016 at 9:15 AM, Dirk Kirsten <dk at basex.org> wrote: >>>> Hello, >>>> >>>> Windows 12? I am an long-time linux-only user, but isn't the most >>>> current windows version 10 or am I missing the news completely? >>>> >>>> You will have to be much more specific. Please specify which BaseX >>>> version you use, please post how you start the basexserver and the >>>> console output and how you try to reach the REST endpoint. Also, I don't >>>> know what you mean by you are not confusing TCP and REST port. This >>>> statement doesn't really make sense, as REST uses TCP... >>>> >>>> Cheers >>>> >>>> Dirk >>>> >>>> >>>> On 08/31/2016 02:09 PM, E. Wray Johnson wrote: >>>> > Windows 12 server, running basexserver. Server is listening but hangs and never returns anything. When server is killed behavior is different so I can tell the server was listening on the REST port when running. I am not confusing the TCP port with REST port. >>>> >>>> -- >>>> Dirk Kirsten, BaseX GmbH, http://basexgmbh.de >>>> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >>>> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >>>> | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle >>>> `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 >> >> -- >> Dirk Kirsten, BaseX GmbH, http://basexgmbh.de >> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >> | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle >> `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 > >
EJ
E. Wray Johnson3 Sep 2016 07:36 #
OK, I was running basexserver instead of basexhttp. It's been months since I used basex and simply forgot.
Quoted text · E. Wray Johnson · 86 lines
On Fri, Sep 2, 2016 at 9:59 PM, E. Wray Johnson <wray.johnson at gmail.com> wrote: > http://localhost:8984/rest/ > > Still hanging. > Where is the log file where I can see what's going on? > > Wray Johnson > > > On Sep 2, 2016, at 8:36 PM, E. Wray Johnson <wray.johnson at gmail.com> > wrote: > > C:\Users\Administrator>basexserver -d > BaseX 8.5.3 [Server] > Server was started (port: 1984). > > On Thu, Sep 1, 2016 at 5:13 AM, Dirk Kirsten <dk at basex.org> wrote: > >> Hello, >> >> How do you start the basex server? Could you please start it in debug >> mode and post us the console output? >> Cheers, Dirk >> >> >> On 08/31/2016 04:41 PM, E. Wray Johnson wrote: >> >> I apologize, by 12 I meant Windows Server 2012. >> BaseX version is 8.5.3 >> By TCP vs REST I mean for REST I was using default port 8984 instead of >> the default server TCP port 1984 >> For example: http://*admin*:*admin*@localhost:8984/*rest *OR >> http://localhost:8984/ >> *rest * >> I run basexserver from DOS Command Prompt >> *. * >> I am using a web browser to test as I have many times before with version >> 8.4 >> I know the server is listening because it hangs and does not return, >> which does not occur when the server is stopped. >> >> On Wed, Aug 31, 2016 at 9:15 AM, Dirk Kirsten <dk at basex.org> wrote: >> >>> Hello, >>> >>> Windows 12? I am an long-time linux-only user, but isn't the most >>> current windows version 10 or am I missing the news completely? >>> >>> You will have to be much more specific. Please specify which BaseX >>> version you use, please post how you start the basexserver and the >>> console output and how you try to reach the REST endpoint. Also, I don't >>> know what you mean by you are not confusing TCP and REST port. This >>> statement doesn't really make sense, as REST uses TCP... >>> >>> Cheers >>> >>> Dirk >>> >>> >>> On 08/31/2016 02:09 PM, E. Wray Johnson wrote: >>> > Windows 12 server, running basexserver. Server is listening but hangs >>> and never returns anything. When server is killed behavior is different so >>> I can tell the server was listening on the REST port when running. I am >>> not confusing the TCP port with REST port. >>> >>> -- >>> Dirk Kirsten, BaseX GmbH, http://basexgmbh.de >>> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >>> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >>> | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle >>> `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 >>> >>> >> >> >> -- >> Dirk Kirsten, BaseX GmbH, http://basexgmbh.de >> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz >> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: >> | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle >> `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22 >> >> > >

⚡Generated with XQuery