rafacovez / notify

Telegram bot written in Python to interact with the Spotify API.
https://t.me/playlistNotificationBot
MIT License
2 stars 0 forks source link

Inconsistent Functionality for Sixth User Authorization #12

Open rafacovez opened 1 year ago

rafacovez commented 1 year ago

Issue: Inconsistent Functionality for Sixth User Authorization

Description

After the sixth user authorizes the bot to access their Spotify user data, they are only able to use a command once before encountering an error. Upon attempting to use the bot for the second time, it fails to work and displays an error message stating that the user is not registered in the Spotify developer settings for the app, even though the user is registered correctly.

Steps to Reproduce

  1. Install and set up the Notify bot from the GitHub repository.
  2. Authorize the bot to access your Spotify user data.
  3. Use the bot for the first time by executing a command (e.g., "play my favorite playlist").
  4. Verify that the command executes successfully and the desired action is performed.
  5. Attempt to use the bot for the second time by executing another command (e.g., "skip to the next track").
  6. Observe the error message stating that the user is not registered in the Spotify developer settings for the app, despite being registered correctly.

Expected Behavior

The Notify bot should allow the sixth user and subsequent users to use its commands multiple times after authorizing the bot to access their Spotify user data. The bot should not display an error message incorrectly claiming that the user is not registered in the Spotify developer settings.

Actual Behavior

After the sixth user authorizes the bot, they can only execute a command once. Any subsequent attempts to use the bot result in an error message stating that the user is not registered in the Spotify developer settings for the app, even though the user is correctly registered.

Additional Information

Reproducibility

Possible Solution

The issue could be related to the registration and authentication process between the Notify bot and the Spotify developer settings. It is recommended to review the authentication flow and ensure that the bot can correctly recognize users who have registered and authorized access to their Spotify user data.

Thank you for addressing this issue promptly. If any further information is needed, please let me know.

rafacovez commented 1 year ago

Might stop happening after code refactorization. Yet to confirm.

rafacovez commented 1 year ago

This bug is still happening and I still have no idea why might be provoking it.