Position information on errors for queries submitted via REST

Tuesday, 13 March 2012 · 6 messages · last reply 14 Mar 2012
CD
Charles Duffy13 Mar 2012 03:07 #
Howdy -- The GUI's feedback on errors, including line number and position, is an extremely useful feature. Is this information also available via the REST interface? If so, how is it enabled? Thanks!
CG
Christian Grün13 Mar 2012 03:50 #
Quoted text · Charles Duffy · 3 lines
> The GUI's feedback on errors, including line number and position, is an > extremely useful feature. Is this information also available via the REST > interface? If so, how is it enabled?
Sounds reasonable; I've added an issue: https://github.com/BaseXdb/basex/issues/433 Christian
CG
Christian Grünin reply to Charles Duffy, 13 Mar 2012, 03:0713 Mar 2012 13:37 #
Quoted text · Charles Duffy · 3 lines
> The GUI's feedback on errors, including line number and position, is an > extremely useful feature. Is this information also available via the REST > interface? If so, how is it enabled?
CG
Christian Grünin reply to Charles Duffy, 14 Mar 2012, 00:4114 Mar 2012 00:11 #
The latest snapshots may not have been up-to-date; please try again [1]. [1] http://files.basex.org/releases/latest/
Quoted text · Charles Duffy · 18 lines
> Is there anything which needs to be switched or enabled to get this output? > If I submit a query with an error in it, for instance, I'm still getting > back a response document with no text other than the error message itself, > for instance: > > --- BEGIN QUOTE > Content-Length: 58 > Content-Type: application/xml > Server: Jetty(6.1.26) > > [XPTY0004] '-' operator: number expected, xs:string found. > --- END QUOTE > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CD
Charles Duffyin reply to Christian Grün, 13 Mar 2012, 13:3714 Mar 2012 00:41 #
Quoted text · Christian Grün · 10 lines
On 03/13/2012 07:37 AM, Christian Grün wrote: >> The GUI's feedback on errors, including line number and position, is an >> extremely useful feature. Is this information also available via the REST >> interface? If so, how is it enabled? > > ..has been fixed: > > https://github.com/BaseXdb/basex/issues/433 > > Christian
Is there anything which needs to be switched or enabled to get this output? If I submit a query with an error in it, for instance, I'm still getting back a response document with no text other than the error message itself, for instance: --- BEGIN QUOTE Content-Length: 58 Content-Type: application/xml Server: Jetty(6.1.26) [XPTY0004] '-' operator: number expected, xs:string found. --- END QUOTE
CD
Charles Duffyin reply to Christian Grün, 14 Mar 2012, 00:1114 Mar 2012 18:53 #
Oops -- I built my own snapshot (after the 20120313.033119 snapshot didn't demonstrate the desired behavior), but failed to change the symlink, so it wasn't actually running. My apologies for the noise; this functionality *does* now work.
Quoted text · Christian Grün · 24 lines
On 03/13/2012 06:11 PM, Christian Grün wrote: > The latest snapshots may not have been up-to-date; please try again [1]. > > [1] http://files.basex.org/releases/latest/ > ___________________________ > >> Is there anything which needs to be switched or enabled to get this output? >> If I submit a query with an error in it, for instance, I'm still getting >> back a response document with no text other than the error message itself, >> for instance: >> >> --- BEGIN QUOTE >> Content-Length: 58 >> Content-Type: application/xml >> Server: Jetty(6.1.26) >> >> [XPTY0004] '-' operator: number expected, xs:string found. >> --- END QUOTE >> >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery