Open a962097364 opened 1 year ago
Hello!I try to run the demo of this project. However, when I click ASK CHATGPT, there is an ERROR comes out.
ArgumentNullException: Value cannot be null. Parameter name: source System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Boolean& found) (at <93223d662c2546d4b5d1784737504095>:0) System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable1[T] source) (at <93223d662c2546d4b5d1784737504095>:0) ChatGPTExtensions.CodeCleanUp (ChatGPTResponse chatGPTResponse) (at Assets/Scripts/ChatGPT/Extensions/ChatGPTExtensions.cs:11) ChatGPTClient+d__1.MoveNext () (at Assets/Scripts/ChatGPT/Client/ChatGPTClient.cs:57) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)
1[T] source, System.Boolean& found) (at <93223d662c2546d4b5d1784737504095>:0) System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable
Do you know how to deal with this problem? Thanks a lot!
Hi,have you solved this problem?
Hello!I try to run the demo of this project. However, when I click ASK CHATGPT, there is an ERROR comes out.
ArgumentNullException: Value cannot be null. Parameter name: source System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerabled__1.MoveNext () (at Assets/Scripts/ChatGPT/Client/ChatGPTClient.cs:57)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)
1[T] source, System.Boolean& found) (at <93223d662c2546d4b5d1784737504095>:0) System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable
1[T] source) (at <93223d662c2546d4b5d1784737504095>:0) ChatGPTExtensions.CodeCleanUp (ChatGPTResponse chatGPTResponse) (at Assets/Scripts/ChatGPT/Extensions/ChatGPTExtensions.cs:11) ChatGPTClient+Do you know how to deal with this problem? Thanks a lot!