StorageServices icon indicating copy to clipboard operation
StorageServices copied to clipboard

Error putting blob image:Azure - Unity3D2017/Unity3D2018

Open ganusajjan opened this issue 7 years ago • 5 comments

screen shot 2018-07-06 at 2 42 58 am Error putting blob image:AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:85f41450-901e-002a-33a4-14553a000000 Time:2018-07-05T21:09:46.9683350ZThe MAC signature found in the HTTP request 'JTS6K4SeTm3KC/IVPOa6b5ejmfA590xr+qR+yehQdTA=' is not the same as any computed signature. Server used following string to sign: 'PUT

2

image/png

x-ms-blob-content-disposition:attachment; filename="18-07-05-21-09-44-30.png" x-ms-blob-type:BlockBlob x-ms-date:Thu, 05 Jul 2018 21:09:46 GMT x-ms-version:2017-04-17 /unityazureblobst/blobunity/18-07-05-21-09-44-30.png'.</AuthenticationErrorDetail></Error> UnityEngine.Debug:LogError(Object) Log:Text(Text, String, String, Level) (at Assets/Utilities/Log.cs:30) ImageDemo:PutImageCompleted(RestResponse) (at Assets/Demos/Image/ImageDemo.cs:85) RESTClient.RestRequest:GetText(Action1, Boolean) (at Assets/Dependencies/RESTClient/http/RestRequest.cs:282) RESTClient.RestRequest:Result(Action1) (at Assets/Dependencies/RESTClient/http/RestRequest.cs:269) Azure.StorageServices.<PutBlob>c__IteratorA:MoveNext() (at Assets/Dependencies/StorageServices/BlobService.cs:132) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

ganusajjan avatar Jul 05 '18 21:07 ganusajjan

I've the very same issue. Although samples from StorageServiceDemo project work, but whenever I'm incorporating it to my project I'm getting the MAC signature error as you.

rafek avatar Jul 19 '18 08:07 rafek

what is the MAC OS X and Unity3D Version?

ganusajjan avatar Jul 19 '18 17:07 ganusajjan

I'm encountering it on Win 10 actually, Unity is 2017.4.7f1.

rafek avatar Jul 19 '18 17:07 rafek

@ganusajjan I got it working. Check out this issue: https://github.com/Unity3dAzure/RESTClient/issues/4

There was a bug introduced in the newest version of RESTClient.

rafek avatar Jul 20 '18 15:07 rafek

@ganusajjan try now (update RESTClient to the newest one).

rafek avatar Jul 20 '18 15:07 rafek