Проблема несоответствия подписи с GetPresignedObjectUrl() в MinIO C++ SDKC++

Программы на C++. Форум разработчиков
Ответить
Anonymous
 Проблема несоответствия подписи с GetPresignedObjectUrl() в MinIO C++ SDK

Сообщение Anonymous »


I encountered an issue when generating a presigned URL using the GetPresignedObjectUrl() method from the MinIO C++ SDK. Upon attempting to access this URL, I received an error indicating that "The request signature we calculated does not match the signature you provided. Check your key and signing method (SignatureDoesNotMatch)."

My MinIO server is deployed using Docker. The SDK version was the latest, compiled from the official GitHub repository. Notably, when I obtain a presigned URL using the mc client, the generated URL works fine. Moreover, if I use the same SDK to access the official MinIO demo server at play.min.io, the URL returned by the same code also works properly. 1.I have verified that both my accesskey and secretkey are correct. 2.I have also checked the system time synchronization to ensure that the time on my client and server is in sync.[enter image description here](Изображение) minio-cpp: http://192.168.15.17:9000/whotest/photo ... aders=host mc: http://192.168.15.17:9000/whotest/photo ... e47636b757

When I use the PUT method to obtain a presigned URL for uploading files, the generated URL is also unusable, but it works when I use the minio-python SDK.

minio-cpp url:http://192.168.15.17:9000/whotest/photo ... aders=host

minio-py url:http://192.168.15.17:9000/whotest/photo ... 74acbfe74d enter image description hereenter image description here Could you please help me identify the possible cause of this issue?


Источник: https://stackoverflow.com/questions/781 ... inio-c-sdk
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»