Integrating Autodesk (APS) Model Derivative API’s in Java project. Upload file to oss step is failing with error as below:
400 Bad Request: ”
AuthorizationQueryParametersError
Error parsing the X-Amz-Credential parameter; the Credential is mal-formed; expecting “<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request”.ETG6XQTC4WQ1EM86
MABuAzYxu3R/clTqPqXBF/o7h/u/m3UsVeKa0sdEciYNzpOd91RKl5xsJ8xwVhF4R8Sf/GG4cSgnne7mItPVmycmSLomQTJnXmd80UVVJvY=
“
API reference: https://aps.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-zip-to-stl/task2-upload_source_file_to_oss/#step-3-upload-the-file
This api uses endpoint received in earlier step “Obtain signed url”. If I try to upload file using this signedurl through postman then it works but it fails through code.
Tried using headers.set(“Content-Type”, “application/zip”); as well as octet stream
Suvarna Raverkar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1