Position information on errors for queries submitted via REST
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!
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?
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?
The latest snapshots may not have been up-to-date; please try again [1].
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
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
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
Written for BaseX 7.1. BaseX may have changed since: please check the current documentation.