[GH-ISSUE #39] Could not submit password / Could not submit task #22

Closed
opened 2026-02-27 19:06:29 +03:00 by kerem · 20 comments
Owner

Originally created by @daMatz on GitHub (Jul 1, 2025).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/39

I am trying to use the Login example from the main Readme, but it fails.
What was checked: email/password are correct and Capsolver API key with available credits is ok, no proxy used.

The error is:

Traceback (most recent call last):
  File "client.py", line 16, in <module>
    instance.login()
  File "client.py", line 47, in wrapper
    result: R = func(*args, **kwargs)
  File "Python310\site-packages\spotapi\login.py", line 264, in login
    self._submit_password(captcha_response)
  File "client.py", line 47, in wrapper
    result: R = func(*args, **kwargs)
  File "Python310\site-packages\spotapi\login.py", line 207, in _submit_password
    raise LoginError("Could not submit password", error=resp.error.string)
spotapi.exceptions.errors.LoginError: Could not submit password

When I run it multiple times I also sometimes get the following error:

Traceback (most recent call last):
  File "client.py", line 16, in <module>
    instance.login()
  File "spotapi\types\annotations.py", line 47, in wrapper
    result: R = func(*args, **kwargs)
  File "spotapi\login.py", line 264, in login
    self._submit_password(captcha_response)
  File "spotapi\types\annotations.py", line 47, in wrapper
    result: R = func(*args, **kwargs)
  File "spotapi\login.py", line 210, in _submit_password
    self.handle_login_error(resp.response)
  File "spotapi\types\annotations.py", line 47, in wrapper
    result: R = func(*args, **kwargs)
  File "spotapi\login.py", line 220, in handle_login_error
    LoginChallenge(self, json_data).defeat()
  File "spotapi\login.py", line 350, in defeat
    self._submit_challenge()
  File "spotapi\login.py", line 331, in _submit_challenge
    raise LoginError("Could not submit challenge", error=resp.error.string)
spotapi.exceptions.errors.LoginError: Could not submit challenge

Any ideas how to resolve this?

Originally created by @daMatz on GitHub (Jul 1, 2025). Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/39 I am trying to use the Login example from the main Readme, but it fails. What was checked: email/password are correct and Capsolver API key with available credits is ok, no proxy used. The error is: ``` Traceback (most recent call last): File "client.py", line 16, in <module> instance.login() File "client.py", line 47, in wrapper result: R = func(*args, **kwargs) File "Python310\site-packages\spotapi\login.py", line 264, in login self._submit_password(captcha_response) File "client.py", line 47, in wrapper result: R = func(*args, **kwargs) File "Python310\site-packages\spotapi\login.py", line 207, in _submit_password raise LoginError("Could not submit password", error=resp.error.string) spotapi.exceptions.errors.LoginError: Could not submit password ``` When I run it multiple times I also sometimes get the following error: ``` Traceback (most recent call last): File "client.py", line 16, in <module> instance.login() File "spotapi\types\annotations.py", line 47, in wrapper result: R = func(*args, **kwargs) File "spotapi\login.py", line 264, in login self._submit_password(captcha_response) File "spotapi\types\annotations.py", line 47, in wrapper result: R = func(*args, **kwargs) File "spotapi\login.py", line 210, in _submit_password self.handle_login_error(resp.response) File "spotapi\types\annotations.py", line 47, in wrapper result: R = func(*args, **kwargs) File "spotapi\login.py", line 220, in handle_login_error LoginChallenge(self, json_data).defeat() File "spotapi\login.py", line 350, in defeat self._submit_challenge() File "spotapi\login.py", line 331, in _submit_challenge raise LoginError("Could not submit challenge", error=resp.error.string) spotapi.exceptions.errors.LoginError: Could not submit challenge ``` Any ideas how to resolve this?
kerem closed this issue 2026-02-27 19:06:29 +03:00
Author
Owner

@krishnabansal89 commented on GitHub (Jul 8, 2025):

did you get any solution ? @daMatz

<!-- gh-comment-id:3049674084 --> @krishnabansal89 commented on GitHub (Jul 8, 2025): did you get any solution ? @daMatz
Author
Owner

@daMatz commented on GitHub (Jul 8, 2025):

did you get any solution ? @daMatz

Unfortunately not

<!-- gh-comment-id:3049747311 --> @daMatz commented on GitHub (Jul 8, 2025): > did you get any solution ? [@daMatz](https://github.com/daMatz) Unfortunately not
Author
Owner

@krishnabansal89 commented on GitHub (Jul 8, 2025):

are you using any alternative now for spotify?

<!-- gh-comment-id:3049753121 --> @krishnabansal89 commented on GitHub (Jul 8, 2025): are you using any alternative now for spotify?
Author
Owner

@Aran404 commented on GitHub (Jul 8, 2025):

I've tested it the update and it works great. Please let me know if there are any more issues to fix. Thank you for the issue once more.

<!-- gh-comment-id:3049961346 --> @Aran404 commented on GitHub (Jul 8, 2025): I've tested it the update and it works great. Please let me know if there are any more issues to fix. Thank you for the issue once more.
Author
Owner

@krishnabansal89 commented on GitHub (Jul 8, 2025):

@Aran404 the issue is still there. tried but still getting the same error

<!-- gh-comment-id:3050108972 --> @krishnabansal89 commented on GitHub (Jul 8, 2025): @Aran404 the issue is still there. tried but still getting the same error
Author
Owner

@Aran404 commented on GitHub (Jul 8, 2025):

[15:48:07] Solving captcha... 
[15:48:14] Solved Captcha time_taken=7s
[15:48:14] Challenge detected, attempting to solve 
[15:48:15] Challenge solved 
[15:48:16] Logged in successfully time_taken=9s
<!-- gh-comment-id:3050122919 --> @Aran404 commented on GitHub (Jul 8, 2025): ``` [15:48:07] Solving captcha... [15:48:14] Solved Captcha time_taken=7s [15:48:14] Challenge detected, attempting to solve [15:48:15] Challenge solved [15:48:16] Logged in successfully time_taken=9s ```
Author
Owner

@krishnabansal89 commented on GitHub (Jul 8, 2025):

Traceback (most recent call last):
File "c:\Users\bansa\Documents\coding\not_mine\mmpc-be\server.py", line 18, in
instance.login()
File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\types\annotations.py", line 47, in wrapper
result: R = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\login.py", line 264, in login
self._submit_password(captcha_response)
File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\types\annotations.py", line 47, in wrapper
result: R = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\login.py", line 207, in _submit_password
raise LoginError("Could not submit password", error=resp.error.string)
spotapi.exceptions.errors.LoginError: Could not submit password

<!-- gh-comment-id:3050131296 --> @krishnabansal89 commented on GitHub (Jul 8, 2025): Traceback (most recent call last): File "c:\Users\bansa\Documents\coding\not_mine\mmpc-be\server.py", line 18, in <module> instance.login() File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\types\annotations.py", line 47, in wrapper result: R = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\login.py", line 264, in login self._submit_password(captcha_response) File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\types\annotations.py", line 47, in wrapper result: R = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bansa\Documents\coding\not_mine\mmpc-be\dev\Lib\site-packages\spotapi\login.py", line 207, in _submit_password raise LoginError("Could not submit password", error=resp.error.string) spotapi.exceptions.errors.LoginError: Could not submit password
Author
Owner

@Aran404 commented on GitHub (Jul 8, 2025):

Did you git pull or update on pypi?

<!-- gh-comment-id:3050136755 --> @Aran404 commented on GitHub (Jul 8, 2025): Did you git pull or update on pypi?
Author
Owner

@krishnabansal89 commented on GitHub (Jul 8, 2025):

pip uninstall spotapi
pip install spotapi

also checked the package code and it's the latest version

<!-- gh-comment-id:3050142109 --> @krishnabansal89 commented on GitHub (Jul 8, 2025): pip uninstall spotapi pip install spotapi also checked the package code and it's the latest version
Author
Owner

@Aran404 commented on GitHub (Jul 8, 2025):

Try using exact version 1.2.1. I think you can do pip install spotapi@1.2.1 or git clone it

<!-- gh-comment-id:3050144341 --> @Aran404 commented on GitHub (Jul 8, 2025): Try using exact version 1.2.1. I think you can do pip install spotapi@1.2.1 or git clone it
Author
Owner

@krishnabansal89 commented on GitHub (Jul 8, 2025):

Worked! Thanks man , really appreciate it.

<!-- gh-comment-id:3050180516 --> @krishnabansal89 commented on GitHub (Jul 8, 2025): Worked! Thanks man , really appreciate it.
Author
Owner

@daMatz commented on GitHub (Jul 8, 2025):

Thank you @Aran404, also worked for me. Closing 🚀

<!-- gh-comment-id:3050281618 --> @daMatz commented on GitHub (Jul 8, 2025): Thank you @Aran404, also worked for me. Closing 🚀
Author
Owner

@krishnabansal89 commented on GitHub (Jul 9, 2025):

@Aran404 for some wierd reasons , the issue is reappering. Can you look into it once.
Thanks

<!-- gh-comment-id:3053444023 --> @krishnabansal89 commented on GitHub (Jul 9, 2025): @Aran404 for some wierd reasons , the issue is reappering. Can you look into it once. Thanks
Author
Owner

@bsanchezb commented on GitHub (Jul 9, 2025):

Please try to update to

_TOTP_SECRET = b"10239356982684469120121471223494829410773366870"
...
"totpVer": 11,

Found at https://github.com/glomatico/votify/blob/main/votify/totp.py .

Seems to do the trick.

<!-- gh-comment-id:3053633927 --> @bsanchezb commented on GitHub (Jul 9, 2025): Please try to update to ``` _TOTP_SECRET = b"10239356982684469120121471223494829410773366870" ... "totpVer": 11, ``` Found at https://github.com/glomatico/votify/blob/main/votify/totp.py . Seems to do the trick.
Author
Owner

@krishnabansal89 commented on GitHub (Jul 9, 2025):

Please try to update to

_TOTP_SECRET = b"10239356982684469120121471223494829410773366870"
...
"totpVer": 11,

Found at https://github.com/glomatico/votify/blob/main/votify/totp.py .

Seems to do the trick.

Still getting the same error.

<!-- gh-comment-id:3053683118 --> @krishnabansal89 commented on GitHub (Jul 9, 2025): > Please try to update to > > ``` > _TOTP_SECRET = b"10239356982684469120121471223494829410773366870" > ... > "totpVer": 11, > ``` > > Found at https://github.com/glomatico/votify/blob/main/votify/totp.py . > > Seems to do the trick. Still getting the same error.
Author
Owner

@daMatz commented on GitHub (Jul 10, 2025):

Also reappeared for me, opening again.

<!-- gh-comment-id:3057262242 --> @daMatz commented on GitHub (Jul 10, 2025): Also reappeared for me, opening again.
Author
Owner

@RikyPy commented on GitHub (Jul 13, 2025):

@daMatz @krishnabansal89 try with the code from my pull request

<!-- gh-comment-id:3067245624 --> @RikyPy commented on GitHub (Jul 13, 2025): @daMatz @krishnabansal89 try with the code from [my pull request](https://github.com/Aran404/SpotAPI/pull/43)
Author
Owner

@daMatz commented on GitHub (Jul 21, 2025):

@krishnabansal89 could you please test: https://github.com/Aran404/SpotAPI/pull/44

<!-- gh-comment-id:3096877271 --> @daMatz commented on GitHub (Jul 21, 2025): @krishnabansal89 could you please test: https://github.com/Aran404/SpotAPI/pull/44
Author
Owner

@didux123 commented on GitHub (Jul 30, 2025):

Hi everyone,
@krishnabansal89 are you still experiencing this issue? I'm facing the same problem — I've tried with and without proxies, tested different CAPTCHA resolvers, but I keep running into the same login loop and can't figure out why.

Here’s the error I'm getting:

/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/bin/python /Users/max/Documents/PYTHON/API_SPOTIFY/test-spotapy.py 
Traceback (most recent call last):
  File "/Users/max/Documents/PYTHON/API_SPOTIFY/test-spotapy.py", line 18, in <module>
    instance.login()
    ~~~~~~~~~~~~~~^^
  File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/types/annotations.py", line 47, in wrapper
    result: R = func(*args, **kwargs)
                ~~~~^^^^^^^^^^^^^^^^^
  File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/login.py", line 279, in login
    self._submit_password(captcha_response)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/types/annotations.py", line 47, in wrapper
    result: R = func(*args, **kwargs)
                ~~~~^^^^^^^^^^^^^^^^^
  File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/login.py", line 223, in _submit_password
    raise LoginError("Could not submit password", error=resp.error.string)
spotapi.exceptions.errors.LoginError: Could not submit password

Process finished with exit code 1

I've tested the #44 but still have the same issue

<!-- gh-comment-id:3136514292 --> @didux123 commented on GitHub (Jul 30, 2025): Hi everyone, @krishnabansal89 are you still experiencing this issue? I'm facing the same problem — I've tried with and without proxies, tested different CAPTCHA resolvers, but I keep running into the same login loop and can't figure out why. Here’s the error I'm getting: ``` /Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/bin/python /Users/max/Documents/PYTHON/API_SPOTIFY/test-spotapy.py Traceback (most recent call last): File "/Users/max/Documents/PYTHON/API_SPOTIFY/test-spotapy.py", line 18, in <module> instance.login() ~~~~~~~~~~~~~~^^ File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/types/annotations.py", line 47, in wrapper result: R = func(*args, **kwargs) ~~~~^^^^^^^^^^^^^^^^^ File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/login.py", line 279, in login self._submit_password(captcha_response) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/types/annotations.py", line 47, in wrapper result: R = func(*args, **kwargs) ~~~~^^^^^^^^^^^^^^^^^ File "/Users/max/Documents/PYTHON/API_SPOTIFY/.venv1/lib/python3.13/site-packages/spotapi/login.py", line 223, in _submit_password raise LoginError("Could not submit password", error=resp.error.string) spotapi.exceptions.errors.LoginError: Could not submit password Process finished with exit code 1 ``` I've tested the [#44 ](https://github.com/Aran404/SpotAPI/pull/44) but still have the same issue
Author
Owner

@Aran404 commented on GitHub (Jul 31, 2025):

I keep getting 'InvalidCredentials'; they must've changed something, or it could be a CAPTCHA, I'm not too sure. I'll investigate soon.

<!-- gh-comment-id:3141043293 --> @Aran404 commented on GitHub (Jul 31, 2025): I keep getting 'InvalidCredentials'; they must've changed something, or it could be a CAPTCHA, I'm not too sure. I'll investigate soon.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SpotAPI#22
No description provided.