aws-samples / aws-samples/aws-sdk-unity-samples

Setup errors and invalid operation exception

Open
#39 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
163
Forks
107
PR merge metrics
No merged PRs in 30d

Description

I have been following the example, but trying to start the game throws an exception:

> InvalidOperationException: Cannot override system-specified headers
UnityEngine.Networking.UnityWebRequest.SetRequestHeader (System.String name, System.String value) (at :0)
UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2[TKey,TValue] headers) (at <545425060cf44a88bfddbe49cbfe1747>:0)
Amazon.Runtime.Internal.UnityMainThreadDispatcher+d__7.MoveNext () (at C:/a/uv3/sdk/src/Core/Amazon.Runtime/Pipeline/_unity/UnityMainThreadDispatcher.cs:130)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <05f2ac9c8847426992765a22ef6d94ca>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
Amazon.Runtime.Internal.UnityMainThreadDispatcher:ProcessRequests() (at C:/a/uv3/sdk/src/Core/Amazon.Runtime/Pipeline/_unity/UnityMainThreadDispatcher.cs:71)
Amazon.Runtime.Internal.UnityMainThreadDispatcher:Update() (at C:/a/uv3/sdk/src/Core/Amazon.Runtime/Pipeline/_unity/UnityMainThreadDispatcher.cs:57)

this seems to happen between client context setup for mobile analytics and when mobile analytics begins store session info. I know with asyncronous calls this could be anything but it is preventing me from continuing on.

This issues occurs on Unity version 2019.3.9f1 Personal

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.