JoshLmao / Spotify4Unity

🎮🎵 Add the SpotifyAPI.NET library into Unity, enabling access to the Spotify Web API, allowing for control of Spotify and accessing the world of music
https://assetstore.unity.com/packages/tools/integration/spotify4unity-ui-tools-spotify-authorization-129028
MIT License
94 stars 8 forks source link

error or user error. #57

Open pat600130 opened 3 months ago

pat600130 commented 3 months ago

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 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)

xalsvr commented 2 weeks ago

I get the same error. Any advice?