Skip to content
English
  • There are no suggestions because the search field is empty.

Troubleshooting the ITONICS Cloud API

Fix errors with the ITONICS Cloud API: rich text, file uploads, filters, paging, and Power BI refreshes.

Fix common errors with the ITONICS Cloud API: rich text, file uploads, filters, paging, and Power BI refreshes.

A request with rich text fails with error 403 and no error details

Cause

A security filter in front of ITONICS blocks HTML that can run or embed external content, such as <iframe> or <script>, before the request reaches the API. The response comes from that filter, so it has no error details and looks like a problem with the key or its permissions.

Fix

  1. Encode the HTML of the rich text value in Base64.

  2. Send the encoded value with the prefix base64:, for example base64:PGlmcmFtZSBzcmM9Imh0dHBzOi8vZXhhbXBsZS5jb20vdmlkZW8iPjwvaWZyYW1lPg==.

    You can send HTML without such elements unchanged.

A request fails with error 403 from the API

Cause

The API key lacks the permission the request needs, for example View all comments to list comments, or the organization permission View organization user list to list the users of the organization. Keys created before organization permissions existed have none until you edit them.

Fix

  1. Send a GET request to https://{your-domain}/rest/external/odata/v2/api-key/permissions with the key.

    The response lists each workspace the key can reach, with the key's permissions there.

  2. In Organization settings > Embed & External access, click More options next to the key, and select Edit.

  3. Select the missing permission, and click Update.

"AccessControlListNotSupported" when you upload a file

Cause

The upload block that POST /files returns lists an x-amz-acl header, but the storage doesn't accept access control lists and rejects the upload with error 400.

Fix

  1. Send the PUT to the upload URL with the Content-Type header only.

    Leave out x-amz-acl, your ITONICS Authorization header, and cookies: the upload URL carries its own credentials.

  2. Upload the file before the upload URL expires.

    If it has expired, request a new one with POST /files.

"FileUploadNotCompletedOrRejected" when you read an uploaded file

Cause

ITONICS checks every uploaded file, for example for viruses and its file type, before it can be read, and until then GET /files/{fileUri} returns error 400. A file is discarded if its content doesn't match the file name and content type you sent, or if its type isn't allowed. A 200 response from the upload URL comes from the storage, so it doesn't confirm that the file was stored.

Fix

  1. Repeat GET /files/{fileUri} until it succeeds.

    There's no separate request to finish an upload.

  2. If it keeps failing, upload the file again with a file name and content type that match the file, and check that the file type is allowed (see Supported file formats and sizes).

An uploaded image has a different file name and type

Cause

ITONICS stores every image as WebP, so the file name and type of the file record differ from the ones you sent. The upload didn't fail.

Fix

  1. Use the fileUri of the returned file record, for example as the header image of an element or as an attachment.

A filter fails with error 400

Cause

The filter uses a key the API doesn't support, or its syntax is wrong, for example a missing quote.

Fix

  1. Check that every key in $filter is supported, for example elementType, label, createdOn, or properties/<field URI>.

  2. Check that every text value is in single quotes, for example $filter=elementType eq 'Idea'.

Only 100 elements are returned

Cause

A response holds 100 results at most, even when $top is higher. When there are more results, the response has a nextLink.

Fix

  1. Request the nextLink of each response until a response has none.

    $skip and $top together can't go beyond 10,000, so follow nextLink for more.

A scheduled Power BI refresh fails with a credentials error

Cause

Before a scheduled refresh, the Power BI service tests the connection without the Authorization header that the fnGetElementsPage query adds, so the test fails although the refresh would work. Publishing the report again from Power BI Desktop can reset the credentials, so a refresh that worked can start failing.

Fix

Set the data source credentials to Anonymous with Skip test connection, as described in Connect Power BI.

Still need help?

If none of these fixes work, contact support. Include the link to this article and what you tried.

Contact support