Troubleshooting the REST API server
Several troubleshooting techniques, tools, and resources are available for resolving problems that you encounter with the HCL OneDB™ REST API.
Problem | Solution |
---|---|
How can I find version information for the REST API? | You can find the version of
your REST API jar file by
running For
example:
|
How can I find the full build information for the REST API? | You can find the build
information for your REST API jar file by
running For
example:
|
How can I enable debug logging in the REST API server? | You can customize the logging
level of the REST API server by creating your own
logback.xml file. This
logback.xml file can either be in
the current directory or in the classpath when you
start the
REST API server. For more information on
logging options, see Logging in the REST API server.An example
|
Why is it that the first time I run a REST query (or any HTTP POST) it works, but the second time, I get an HTTP 403 FORBIDDEN response? | This will happen if you have Anti Cross-Site Request Forgery tokens
enabled, but your REST HTTP POST, PUT, or DELETE
requests do not include the
On your first HTTP request, you will be authenticated against the database server. A session will
be created for you in the REST server and the
first HTTP response you receive will include a
See Enabling Anti Cross-Site Request Forgery tokens for more information. |