Open pat600130 opened 3 months ago
that error is APIException: Invalid context Uri ,am I doing something rong. I'm using the version from the unity asset store if that helps the full message is APIException: Invalid context uri SpotifyAPI.Web.Http.APIConnector.ProcessErrors (SpotifyAPI.Web.Http.IResponse response) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.DoRequest (SpotifyAPI.Web.Http.IRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.DoSerializedRequest[T] (SpotifyAPI.Web.Http.IRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.SendAPIRequestDetailed (System.Uri uri, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary 2[TKey,TValue] parameters, System.Object body, System.Collections.Generic.IDictionary 2[TKey,TValue] headers) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.Put (System.Uri uri, System.Collections.Generic.IDictionary 2[TKey,TValue] parameters, System.Object body) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.PlayerClient.ResumePlayback (SpotifyAPI.Web.PlayerResumePlaybackRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SinglePlaylistSelectableTrack.OnPlayTrack () (at Assets/Spotify4Unity/Examples/Scripts/Spotify App/Prefabs/SinglePlaylistSelectableTrack.cs:82) System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <f7237cf7abef49bfbb552d7eb076e422>:0) UnityEngine.UnitySynchronizationContext.Exec () (at <f7237cf7abef49bfbb552d7eb076e422>:0) UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <f7237cf7abef49bfbb552d7eb076e422>:0)
APIException: Invalid context Uri
APIException: Invalid context uri SpotifyAPI.Web.Http.APIConnector.ProcessErrors (SpotifyAPI.Web.Http.IResponse response) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.DoRequest (SpotifyAPI.Web.Http.IRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.DoSerializedRequest[T] (SpotifyAPI.Web.Http.IRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.SendAPIRequestDetailed (System.Uri uri, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary 2[TKey,TValue] parameters, System.Object body, System.Collections.Generic.IDictionary 2[TKey,TValue] headers) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.Put (System.Uri uri, System.Collections.Generic.IDictionary 2[TKey,TValue] parameters, System.Object body) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.PlayerClient.ResumePlayback (SpotifyAPI.Web.PlayerResumePlaybackRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SinglePlaylistSelectableTrack.OnPlayTrack () (at Assets/Spotify4Unity/Examples/Scripts/Spotify App/Prefabs/SinglePlaylistSelectableTrack.cs:82) System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <f7237cf7abef49bfbb552d7eb076e422>:0) UnityEngine.UnitySynchronizationContext.Exec () (at <f7237cf7abef49bfbb552d7eb076e422>:0) UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <f7237cf7abef49bfbb552d7eb076e422>:0)
I get the same error. Any advice?
so when I click play on a song in the Spotify app scene unity spits out an error
that error is
APIException: Invalid context Uri
,am I doing something rong. I'm using the version from the unity asset store if that helps the full message isAPIException: Invalid context uri SpotifyAPI.Web.Http.APIConnector.ProcessErrors (SpotifyAPI.Web.Http.IResponse response) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.DoRequest (SpotifyAPI.Web.Http.IRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.DoSerializedRequest[T] (SpotifyAPI.Web.Http.IRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.SendAPIRequestDetailed (System.Uri uri, System.Net.Http.HttpMethod method, System.Collections.Generic.IDictionary 2[TKey,TValue] parameters, System.Object body, System.Collections.Generic.IDictionary 2[TKey,TValue] headers) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.Http.APIConnector.Put (System.Uri uri, System.Collections.Generic.IDictionary 2[TKey,TValue] parameters, System.Object body) (at <db7ef63b4b89422d8e399b25975a049b>:0) SpotifyAPI.Web.PlayerClient.ResumePlayback (SpotifyAPI.Web.PlayerResumePlaybackRequest request) (at <db7ef63b4b89422d8e399b25975a049b>:0) SinglePlaylistSelectableTrack.OnPlayTrack () (at Assets/Spotify4Unity/Examples/Scripts/Spotify App/Prefabs/SinglePlaylistSelectableTrack.cs:82) System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0) UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <f7237cf7abef49bfbb552d7eb076e422>:0) UnityEngine.UnitySynchronizationContext.Exec () (at <f7237cf7abef49bfbb552d7eb076e422>:0) UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <f7237cf7abef49bfbb552d7eb076e422>:0)