API Troubleshooting
This page details some common errors you may encounter using the APIs and their solutions.
Errors
Data doesn't pass properly in Windows cmd
When using windows cmd to pass data, quotation marks need to be escaped by adding a \
before each instance of quotation marks. Example:
curl -v -X POST "https://*******.eu.market.dpondemand.io/v1/audit-log-exports
" -H "Authorization: Bearer <bearer_token>" -H "Content-Type: application/json" -d "{\"from\":\"2022-07-25T16:00:00Z\",\"to\":\"2022-07-25T20:00:00Z\"}"
JWT token expires after 1 Hour
The JSON Web Token (JWT) used to authenticate to the API expires after one hour. You must generate a new token to continue using the API if the old token has expired.