Expand my Community achievements bar.

AEM Dropbox import in aem cloud. Check health failing

Avatar

Level 9

Based on the documentation https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/assets-vi...

I am trying to connect to dropbox, connection has been setup. However health check is failing and it is not importing any assets

Getting the following error 

*ERROR* [67.80.143.3 [1731468284183] GET /conf/global/settings/dam/import/AEM%20DAM%205.importCheck.json HTTP/1.1] com.adobe.cq.assetcompute.impl.bulkimport.dropbox.DropboxImportService Failure to get blob list 

org.apache.sling.commons.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

at org.apache.sling.commons.json.JSONTokener.syntaxError(JSONTokener.java:587) [org.apache.sling.commons.json:2.0.28]

at org.apache.sling.commons.json.JSONObject.<init>(JSONObject.java:218) [org.apache.sling.commons.json:2.0.28]

at org.apache.sling.commons.json.JSONObject.<init>(JSONObject.java:448) [org.apache.sling.commons.json:2.0.28]

at com.adobe.cq.assetcompute.impl.bulkimport.dropbox.DropboxBlobService.getBlobList(DropboxBlobService.java:179) [com.adobe.cq.dam.cq-dam-processor-nui:1.1.848]

at com.adobe.cq.assetcompute.impl.bulkimport.dropbox.DropboxImportService.getPagedImportAssetsResult(DropboxImportService.java:110) [com.adobe.cq.dam.cq-dam-processor-nui:1.1.848]

1 Reply

Avatar

Community Advisor

Hi @Mshaji ,

 

The error suggests that the Dropbox API response is not returning valid JSON. Specifically, the integration expects a JSON object (starting with {), but the response seems malformed.

 

org.apache.sling.commons.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

 

Possible Causes & Solutions:

  1. Dropbox might be returning an error or HTML instead of JSON. Check the API response using tools like Postman to verify it's valid JSON.
  2. Incorrect token or missing permissions can cause Dropbox to return an error page. Verify the Dropbox API token has the correct permissions and is valid.
  3. Ensure AEM’s Dropbox integration is properly configured (correct API URL, token, etc.).  Double-check the connection settings in AEM.
  4. If you're fetching many assets at once, Dropbox might throttle or paginate the results. Test with fewer assets or handle pagination properly in the integration.

Check logs for more details and verify the Dropbox API setup to ensure proper responses.

 

Thanks

Ritesh Mittal