<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Heap Provisioning Error "Invalid JSON: Unrecognized token 'Invalid': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')"
Okta Integration Network
Overview

Heap provisioning flow fails with the following error visible in the Okta dashboard:

Automatic provisioning of user <user> to app Heap failed: Error while verifying if user <user> exists: Bad Request. Errors reported by remote server: Invalid JSON: Unrecognized token 'Invalid': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (String)"Invalid bearer token header."; line: 1, column: 8]

 

Applies To
  • Heap
  • Provisioning
  • Error
Cause
The API token used to create the API connection is invalid.
Solution
  1. Go to Okta Admin Console and navigate to Applications > Applications > Heap > Provisioning > Integration > Edit.
  2. Enter the Bearer Token that was generated in Heap in the API Token field.
  3. Click Test API Credentials, verify the connection was successful, and then click Save.
  4. Attempt the failed tasks again. Navigate to Dashboard > Tasks. Any failed assignments should appear under Tasks.

Tasks

  1. After locating the failed task for the user that should be retried, click on Retry Selected.

Related References

 

Loading
Heap Provisioning Error "Invalid JSON: Unrecognized token 'Invalid': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')"