Replies: 1 comment
-
Fixed after adding import org.apache.hc.core5.http.ParseException; } catch (SpotifyWebApiException | IOException | ParseException e) { |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i have no idea why i get this error help me out
full code:
`private void authenticateSpotify(String authorizationCode) {
try {
AuthorizationCodePKCERequest authCodePKCERequest = SPOTIFY_API.authorizationCodePKCE(authorizationCode, CODE_VERIFIER).build();
AuthorizationCodeCredentials authCredentials = authCodePKCERequest.execute();
SPOTIFY_API.setAccessToken(authCredentials.getAccessToken());
SPOTIFY_API.setRefreshToken(authCredentials.getRefreshToken());
tokenRefresh = authCredentials.getExpiresIn();
isConnected = true;
the error happens on
AuthorizationCodeCredentials authCredentials = authCodePKCERequest.execute(); AuthorizationCodeCredentials refreshRequest = SPOTIFY_API.authorizationCodePKCERefresh().build().execute();
on .execute
idk why
when i add
catch (SpotifyWebApiException e) {
it does this
Required type:
Throwable
Provided:
SpotifyWebApiException
Beta Was this translation helpful? Give feedback.
All reactions