mirror of
https://github.com/Aran404/SpotAPI.git
synced 2026-04-25 16:55:50 +03:00
[PR #34] [MERGED] Fix: Specify domain when setting cookies to prevent conflicts #49
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SpotAPI#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Aran404/SpotAPI/pull/34
Author: @ParkJeongseop
Created: 6/28/2025
Status: ✅ Merged
Merged: 6/30/2025
Merged by: @Aran404
Base:
main← Head:main📝 Commits (1)
7384a43Fix: Specify domain when setting cookies to prevent conflicts📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
spotapi/login.py(+1 -1)📄 Description
Problem
The application was encountering a
CookieConflictErrorwhen trying to access cookies:tls_client.cookies.CookieConflictError: There are multiple cookies with name, 'sp_t'
This error occurred because cookies were being set without specifying a domain initially, and later the same cookie name (
sp_t) was set with the.spotify.comdomain, resulting in duplicate cookies with the same name but different domains.Solution
Modified the
from_cookiesmethod inspotapi/login.pyto explicitly specify the domain when setting cookies:Changes
spotapi/login.pyto include explicit domain specificationTesting
This fix ensures consistent cookie handling and prevents the duplicate cookie name conflicts that were causing authentication failures.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
get_playlist_infos():BaseClientError: Could not get general hashes#32