Description
Describe the bug
I am using AWSSDK in unity to send data from my game to Kinesis Stream. My credential is CognitoAWSCredentials
After I finish my implementation, I can send events to Kinesis Stream on Unity Editor. But on Android, it does not work.
I got this exception on Android:
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception: at System.Net.WebConnection.HandleError (System.Net.WebExceptionStatus st, System.Exception e, System.String where) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at System.AsyncCallback.Invoke (System.IAsyncResult ar) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at System.Action.Invoke () <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at System.Threading.ContextCallback.Invoke (System.Object state) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback,
Please help me to check this bug
Expected Behavior
Android can send events normally without exception
Current Behavior
The exception is thrown on Android devices when sending data to the Kinesis Stream
Reproduction Steps
- Create a unity 2019.4.38 empty project.
- Config project to run with: .Net Standard 2.0 and IL2CPP
- Integrating AWS SDK with Unity: AWSSDK.CognitoIdentity, AWSSDK.Core, AWSSDK.Kinesis, AWSSDK.SecurityToken, AWSSDK.KinesisFirehose
- Update link.xml
- Sent event to Kinesis Stream by using: CognitoAWSCredentials
- Build an Android project and check to send event functions on android devices.
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
aws-sdk-dotnet-core/3.3.107.22
Targeted .NET Platform
.Net Standard 2.0
Operating System and version
Android