question

key-holder avatar image
key-holder asked

WebException: Error writing request: The authentication or decryption has failed.

https://community.playfab.com/questions/121/205469488-How-to-upload-files-to-PlayFab-s-Content-Service.html

위의 링크의 소스를 단독으로 실행하였을 때 성공적으로 업로드 됩니다.

하지만 로그인을 기능을 추가하고 업로드를 하려고 하면

WebException: Error writing request: The authentication or decryption has failed. System.Net.WebConnectionStream.WriteHeaders () System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer) (wrapper remoting-invoke-with-check) System.Net.WebConnectionStream:SetHeaders (byte[]) System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error) UnityEngine.Debug:LogException(Exception) PlayFab.Internal.<MakeApiCall>c__AnonStoreyB:<>m__4(String) (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWWW.cs:137) PlayFab.Internal.<Post>c__Iterator5:MoveNext() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWWW.cs:212)

위와 같은 오류가 뜹니다.

로그인은 제대로 동작되는 것을 확인하였습니다.

어떻게 해결해야할까요?

***************************************************************

https://community.playfab.com/questions/121/205469488-How-to-upload-files-to-PlayFab-s-Content-Service.html

When executed successfully uploaded the source of the links above alone. But if you try to add a feature to log in and upload

WebException: Error writing request: The authentication or decryption has failed. System.Net.WebConnectionStream.WriteHeaders () System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer) (wrapper remoting-invoke-with-check) System.Net.WebConnectionStream:SetHeaders (byte[]) System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error) UnityEngine.Debug:LogException(Exception) PlayFab.Internal.<MakeApiCall>c__AnonStoreyB:<>m__4(String) (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWWW.cs:137) PlayFab.Internal.<Post>c__Iterator5:MoveNext() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWWW.cs:212)

I get the same error above .

Login has confirmed that work properly. How do you solve?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Sorry, but we're really only set up to answer questions in English. However, since this is about the Content service, let me also point you to this blog post, which details how to use that service: https://playfab.com/how-use-playfabs-content-management-api/.

If you're having trouble uploading files, can you send us the code snippet showing how you're getting the URL and how you're attempting the upload?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.