Skip to content

Random ACM Check Failed while uploading files to AWS

0

As the title suggests i'm using Autodesk API (C#) to upload objects in AWS buckets.

For some reason sometimes i obtain the following Exception:

System.AggregateException: One or more errors occurred. (Error calling UploadChunk: {"developerMessage":"ACM check failed, user or calling service does not have access to perform this operation","userMessage":"","errorCode":"AUTH-012","more info":"https://developer.api.autodesk.com/documentation/v1/errors/AUTH-012"})
 ---> Autodesk.Forge.Client.ApiException: Error calling UploadChunk: {"developerMessage":"ACM check failed, user or calling service does not have access to perform this operation","userMessage":"","errorCode":"AUTH-012","more info":"https://developer.api.autodesk.com/documentation/v1/errors/AUTH-012"}
   at Autodesk.Forge.ObjectsApi.UploadChunkAsyncWithHttpInfo(String bucketKey, String objectName, Nullable`1 contentLength, String contentRange, String sessionId, Stream body, String contentDisposition, String ifMatch, String contentType)
   at Autodesk.Forge.ObjectsApi.UploadChunkAsync(String bucketKey, String objectName, Nullable`1 contentLength, String contentRange, String sessionId, Stream body, String contentDisposition, String ifMatch, String contentType)

I tried to replicate the error but i get it only randomly. I also implemented a retry policy to call the API in case of that exception but the result doesn't change, even the next calls return the Exception.

I'm sure that credentials and info are correct, they are working with other uploads.

Is it possitble that the token auth is expired and i've to wait more than 2 seconds (actual timesleep set by me) to receive new token for AWS bucket through Autodesk API Objects?

Thanks in advance!

1 Answer
0
Accepted Answer

The error you're encountering, "ACM check failed, user or calling service does not have access to perform this operation," is not directly related to AWS Certificate Manager (ACM) or AWS services. This error is specific to the Autodesk Forge API you're using to interact with AWS buckets.

The error suggests an authentication or authorization issue with the Autodesk Forge API, not with AWS directly. The "ACM" in this context likely refers to Autodesk's own access control mechanism, not AWS Certificate Manager.

Given that the error occurs randomly and persists even with retry attempts, it's unlikely that a simple token expiration is the root cause. However, your suggestion about token expiration is worth considering. Here are a few things you can try:

  1. Implement a more robust token refresh mechanism. Instead of a fixed 2-second wait, consider implementing an exponential backoff strategy for retries.

  2. Check if your Autodesk Forge API credentials have the correct permissions for the operation you're trying to perform.

  3. Verify that you're not exceeding any rate limits or quotas set by the Autodesk Forge API.

  4. Ensure that your application is properly handling any network issues or temporary service disruptions.

  5. If possible, log the full request and response details (excluding sensitive information) to help diagnose the issue.

  6. Consider reaching out to Autodesk Forge support or community forums, as this seems to be a platform-specific issue rather than an AWS problem.

Remember, while you're using this API to interact with AWS buckets, the error is coming from the Autodesk Forge API layer, not directly from AWS. Therefore, troubleshooting should focus on your interaction with the Autodesk API rather than AWS services directly.
Sources
Troubleshoot certificate requests - AWS Certificate Manager
Common Errors - AWS Marketplace

answered a year ago
EXPERT
reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.