
> spotify-backend@0.1.0 dev
> tsx watch src/index.ts

API server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
[0mPOST /auth/exchange [32m200[0m 144.220 ms - 749[0m
[0mPOST /users/91416peucsefexd7z3q9875hw/sync [32m200[0m 349.388 ms - 11[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 12.725 ms - 156666[0m
[0mGET /users/91416peucsefexd7z3q9875hw [32m200[0m 1.174 ms - 232[0m
[0mGET /users/91416peucsefexd7z3q9875hw/top-tracks?time_range=short_term [32m200[0m 4.523 ms - 73042[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 3.006 ms - 44[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 0.816 ms - 238[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 7.860 ms - 156852[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 3.907 ms - 61623[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 9.232 ms - 156666[0m
[0mGET /partners/requests/91416peucsefexd7z3q9875hw [32m200[0m 11.611 ms - 2[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 1.466 ms - 57[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 0.873 ms - 57[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 8.504 ms - 156852[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 35.615 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/now-playing [32m200[0m 3.749 ms - 20[0m
[0mGET /playlists/mixed [32m200[0m 2.786 ms - 5029[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29.jpeg [32m200[0m 3.610 ms - 264761[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 2.557 ms - 144313[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 2.834 ms - 204401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29.jpeg [32m200[0m 5.850 ms - 264761[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 3.053 ms - 144313[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 3.028 ms - 204401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29.jpeg [32m200[0m 6.302 ms - 264761[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 9.533 ms - 144313[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 12.364 ms - 204401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29.jpeg [32m200[0m 5.427 ms - 264761[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 9.141 ms - 204401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 2.173 ms - 144313[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29.jpeg [32m200[0m 3.012 ms - 264761[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 3.370 ms - 144313[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 2.712 ms - 204401[0m
Selected random playlist cover: /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg
Saving playlist to database: {
  id: '008255d7-98e8-493d-8bfd-659b0bdcbd09',
  name: 'Chill Melody - Oct 16',
  trackCount: 25,
  trackUris: [
    'spotify:track:1FywSVKhuVzqVyuJrqDo2E',
    'spotify:track:5WwhpsQ9ARJEyCEZqyP15E',
    'spotify:track:0BVQNP096tuY7s9ggvtEOo'
  ]
}
[0mPOST /playlists/mixed [32m200[0m 1772.528 ms - 1400[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29.jpeg [32m200[0m 6.630 ms - 264761[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 11.088 ms - 204401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 12.794 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 6.741 ms - 144313[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 3.646 ms - 204401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.497 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 6.103 ms - 144313[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29.jpeg [32m200[0m 4.945 ms - 264761[0m
[0mDELETE /playlists/mixed/a8580fac-781a-472e-94ce-ac88e7f67cb4 [32m200[0m 2.750 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 3.500 ms - 204401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.855 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(4).jpeg [32m200[0m 5.074 ms - 144313[0m
[0mDELETE /playlists/mixed/ac740cb2-3d6b-4a03-94d1-7c5bbb4514fa [32m200[0m 2.122 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.704 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(5).jpeg [32m200[0m 6.880 ms - 204401[0m
[0mDELETE /playlists/mixed/21f99970-416e-474a-8819-aaab31afa649 [32m200[0m 2.111 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.857 ms - 132357[0m
[0mDELETE /playlists/mixed/008255d7-98e8-493d-8bfd-659b0bdcbd09 [32m200[0m 1.747 ms - 16[0m
2:06:12 PM [tsx] change in ./src/lib/spotify.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:06:30 PM [tsx] change in ./src/lib/spotify.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:06:49 PM [tsx] change in ./src/lib/spotify.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:06:54 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:07:04 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:07:18 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:07:33 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:07:50 PM [tsx] change in ./src/lib/spotify.ts Restarting...
c2:07:51 PM [tsx] change in ./src/routes/playlists.ts Restarting...
API server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:08:00 PM [tsx] change in ./src/routes/playlists.ts Restarting...
c2:08:00 PM [tsx] change in ./src/routes/playlists.ts Restarting...
API server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:08:11 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:08:15 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:08:25 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:08:42 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:08:56 PM [tsx] change in ./src/lib/spotify.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
2:10:23 PM [tsx] change in ./src/routes/playlists.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
[0mGET / [33m404[0m 4.074 ms - 139[0m
2:10:52 PM [tsx] change in ./src/lib/spotify.ts Restarting...
cAPI server (HTTP) listening on http://0.0.0.0:8081
API server (HTTPS) listening on https://0.0.0.0:8082
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 10.347 ms - 44[0m
[0mGET /playlists/mixed [32m200[0m 3.149 ms - 16[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 2.377 ms - 44[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 7.331 ms - 156666[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 5.987 ms - 156852[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 3.810 ms - 61623[0m
[0mGET /partners/requests/91416peucsefexd7z3q9875hw [32m200[0m 2.445 ms - 2[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 1.295 ms - 57[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 2.151 ms - 238[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 7.602 ms - 156852[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 2.906 ms - 61623[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 98.682 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 7.454 ms - 57[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 1.046 ms - 238[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 5.938 ms - 156666[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 7.101 ms - 156852[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 44.738 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/now-playing [32m200[0m 2.759 ms - 20[0m
[0mGET /playlists/mixed [32m200[0m 2.235 ms - 16[0m
[MIXED PLAYLIST] Starting playlist creation process for creator: 91416peucsefexd7z3q9875hw, partner: 31at7552nbs34vogjfzmasypv6vy
[MIXED PLAYLIST] Request parameters: {
  name: undefined,
  description: 'An AI-blended mix with fresh recommendations',
  vibe: undefined,
  genres: [ 'pop' ],
  includeKnown: true,
  createForBoth: false,
  limit: 25
}
[MIXED PLAYLIST] Collecting seed tracks from creator (91416peucsefexd7z3q9875hw) and partner (31at7552nbs34vogjfzmasypv6vy)
[MIXED PLAYLIST] Found 20 tracks from creator, 16 tracks from partner
[MIXED PLAYLIST] Total seed track URIs: 36
[MIXED PLAYLIST] Creating Spotify playlist for creator: "Ethereal Symphony - Oct 16"
[PLAYLIST CREATION] Creating Spotify playlist: "Ethereal Symphony - Oct 16" for user: 91416peucsefexd7z3q9875hw
[PLAYLIST CREATION] Spotify playlist created successfully with ID: 0aUuc9FNcFaIFMuQm2tXdZ
[PLAYLIST COVER] Looking for images in directory: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers
[PLAYLIST COVER] Found 14 image files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg',
  'cover1.svg',
  'cover2.svg',
  'cover3.svg',
  'cover4.svg',
  'cover5.svg'
]
[PLAYLIST COVER] Selected random playlist cover: /api/playlist-covers/cover1.svg (from file: cover1.svg)
[PLAYLIST COVER] Looking for file: cover1.svg in files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg',
  'cover1.svg',
  'cover2.svg',
  'cover3.svg',
  'cover4.svg',
  'cover5.svg'
]
[PLAYLIST COVER] Attempting to upload cover image: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/cover1.svg
[PLAYLIST COVER] Attempting to upload cover image for playlist 0aUuc9FNcFaIFMuQm2tXdZ from path: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/cover1.svg
[PLAYLIST COVER] Image file size: 520 bytes (0.51 KB)
[PLAYLIST COVER] Failed to upload cover image for playlist 0aUuc9FNcFaIFMuQm2tXdZ: { error: { status: 401, message: 'Unauthorized.' } }
[PLAYLIST COVER] Failed to upload cover image to Spotify playlist 0aUuc9FNcFaIFMuQm2tXdZ, but playlist was created successfully
[MIXED PLAYLIST] Adding 25 tracks to creator playlist 0aUuc9FNcFaIFMuQm2tXdZ
[MIXED PLAYLIST] Successfully added tracks to creator playlist
[MIXED PLAYLIST] Saving playlist to database: {
  id: 'f9d6bf45-4b8f-472a-b482-e66fd88a3e16',
  name: 'Ethereal Symphony - Oct 16',
  trackCount: 25,
  creatorPlaylistId: '0aUuc9FNcFaIFMuQm2tXdZ',
  partnerPlaylistId: undefined,
  imageUrl: '/api/playlist-covers/cover1.svg',
  trackUris: [
    'spotify:track:2374M0fQpWi3dLnB54qaLX',
    'spotify:track:3siwsiaEoU4Kuuc9WKMUy5',
    'spotify:track:5DxDLsW6PsLz5gkwC7Mk5S'
  ]
}
[MIXED PLAYLIST] Playlist creation completed successfully: {
  id: 'f9d6bf45-4b8f-472a-b482-e66fd88a3e16',
  name: 'Ethereal Symphony - Oct 16',
  creatorPlaylistId: '0aUuc9FNcFaIFMuQm2tXdZ',
  partnerPlaylistId: undefined,
  trackCount: 25,
  imageUrl: '/api/playlist-covers/cover1.svg'
}
[0mPOST /playlists/mixed [32m200[0m 1429.828 ms - 1359[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 3.533 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.969 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.872 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 1.197 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.691 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.926 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 1.094 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.750 ms - 736[0m
[MIXED PLAYLIST] Starting playlist creation process for creator: 91416peucsefexd7z3q9875hw, partner: 31at7552nbs34vogjfzmasypv6vy
[MIXED PLAYLIST] Request parameters: {
  name: undefined,
  description: 'An AI-blended mix with fresh recommendations',
  vibe: undefined,
  genres: [ 'edm' ],
  includeKnown: true,
  createForBoth: false,
  limit: 25
}
[MIXED PLAYLIST] Collecting seed tracks from creator (91416peucsefexd7z3q9875hw) and partner (31at7552nbs34vogjfzmasypv6vy)
[MIXED PLAYLIST] Found 20 tracks from creator, 16 tracks from partner
[MIXED PLAYLIST] Total seed track URIs: 36
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.638 ms - 736[0m
[MIXED PLAYLIST] Creating Spotify playlist for creator: "Electric Sound - Oct 16"
[PLAYLIST CREATION] Creating Spotify playlist: "Electric Sound - Oct 16" for user: 91416peucsefexd7z3q9875hw
[PLAYLIST CREATION] Spotify playlist created successfully with ID: 2PSoapi3TkMSQxQeJ1wEfy
[PLAYLIST COVER] Looking for images in directory: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers
[PLAYLIST COVER] Found 14 image files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg',
  'cover1.svg',
  'cover2.svg',
  'cover3.svg',
  'cover4.svg',
  'cover5.svg'
]
[PLAYLIST COVER] Selected random playlist cover: /api/playlist-covers/cover1.svg (from file: cover1.svg)
[PLAYLIST COVER] Looking for file: cover1.svg in files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg',
  'cover1.svg',
  'cover2.svg',
  'cover3.svg',
  'cover4.svg',
  'cover5.svg'
]
[PLAYLIST COVER] Attempting to upload cover image: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/cover1.svg
[PLAYLIST COVER] Attempting to upload cover image for playlist 2PSoapi3TkMSQxQeJ1wEfy from path: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/cover1.svg
[PLAYLIST COVER] Image file size: 520 bytes (0.51 KB)
[PLAYLIST COVER] Failed to upload cover image for playlist 2PSoapi3TkMSQxQeJ1wEfy: { error: { status: 401, message: 'Unauthorized.' } }
[PLAYLIST COVER] Failed to upload cover image to Spotify playlist 2PSoapi3TkMSQxQeJ1wEfy, but playlist was created successfully
[MIXED PLAYLIST] Adding 25 tracks to creator playlist 2PSoapi3TkMSQxQeJ1wEfy
[MIXED PLAYLIST] Successfully added tracks to creator playlist
[MIXED PLAYLIST] Saving playlist to database: {
  id: '8ec2d0d9-de93-4ee7-ab76-69dc6ea6b432',
  name: 'Electric Sound - Oct 16',
  trackCount: 25,
  creatorPlaylistId: '2PSoapi3TkMSQxQeJ1wEfy',
  partnerPlaylistId: undefined,
  imageUrl: '/api/playlist-covers/cover1.svg',
  trackUris: [
    'spotify:track:5WwhpsQ9ARJEyCEZqyP15E',
    'spotify:track:6jDJVFA6A77yJNKR6UJvZo',
    'spotify:track:2GgE1PFCZGjViqHjQUpYkz'
  ]
}
[MIXED PLAYLIST] Playlist creation completed successfully: {
  id: '8ec2d0d9-de93-4ee7-ab76-69dc6ea6b432',
  name: 'Electric Sound - Oct 16',
  creatorPlaylistId: '2PSoapi3TkMSQxQeJ1wEfy',
  partnerPlaylistId: undefined,
  trackCount: 25,
  imageUrl: '/api/playlist-covers/cover1.svg'
}
[0mPOST /playlists/mixed [32m200[0m 1239.488 ms - 1356[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.613 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.759 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.689 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.667 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.969 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.757 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.999 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.927 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.763 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.873 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.677 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.809 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.867 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.766 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.803 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.678 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.800 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.764 ms - 736[0m
[MIXED PLAYLIST] Starting playlist creation process for creator: 91416peucsefexd7z3q9875hw, partner: 31at7552nbs34vogjfzmasypv6vy
[MIXED PLAYLIST] Request parameters: {
  name: undefined,
  description: 'An AI-blended mix with fresh recommendations',
  vibe: undefined,
  genres: [ 'rock' ],
  includeKnown: true,
  createForBoth: false,
  limit: 25
}
[MIXED PLAYLIST] Collecting seed tracks from creator (91416peucsefexd7z3q9875hw) and partner (31at7552nbs34vogjfzmasypv6vy)
[MIXED PLAYLIST] Found 20 tracks from creator, 16 tracks from partner
[MIXED PLAYLIST] Total seed track URIs: 36
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.874 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.756 ms - 736[0m
[MIXED PLAYLIST] Creating Spotify playlist for creator: "Harmonic Tune - Oct 16"
[PLAYLIST CREATION] Creating Spotify playlist: "Harmonic Tune - Oct 16" for user: 91416peucsefexd7z3q9875hw
[PLAYLIST CREATION] Spotify playlist created successfully with ID: 53jyCWUlxwsRgl7v6gCmzo
[PLAYLIST COVER] Looking for images in directory: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers
[PLAYLIST COVER] Found 14 image files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg',
  'cover1.svg',
  'cover2.svg',
  'cover3.svg',
  'cover4.svg',
  'cover5.svg'
]
[PLAYLIST COVER] Selected random playlist cover: /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg (from file: WhatsApp Image 2025-10-16 at 11.12.30.jpeg)
[PLAYLIST COVER] Looking for file: WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg in files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg',
  'cover1.svg',
  'cover2.svg',
  'cover3.svg',
  'cover4.svg',
  'cover5.svg'
]
[PLAYLIST COVER] Attempting to upload cover image: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.30.jpeg
[PLAYLIST COVER] Attempting to upload cover image for playlist 53jyCWUlxwsRgl7v6gCmzo from path: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.30.jpeg
[PLAYLIST COVER] Image file size: 98769 bytes (96.45 KB)
[PLAYLIST COVER] Failed to upload cover image for playlist 53jyCWUlxwsRgl7v6gCmzo: { error: { status: 401, message: 'Unauthorized.' } }
[PLAYLIST COVER] Failed to upload cover image to Spotify playlist 53jyCWUlxwsRgl7v6gCmzo, but playlist was created successfully
[MIXED PLAYLIST] Adding 25 tracks to creator playlist 53jyCWUlxwsRgl7v6gCmzo
[MIXED PLAYLIST] Successfully added tracks to creator playlist
[MIXED PLAYLIST] Saving playlist to database: {
  id: '8791c148-a234-4e08-8ff2-04f54f4348a1',
  name: 'Harmonic Tune - Oct 16',
  trackCount: 25,
  creatorPlaylistId: '53jyCWUlxwsRgl7v6gCmzo',
  partnerPlaylistId: undefined,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg',
  trackUris: [
    'spotify:track:2zYzyRzz6pRmhPzyfMEC8s',
    'spotify:track:6QAsrXPnMSXIbV0yEJHlEX',
    'spotify:track:4Yf5bqU3NK4kNOypcrLYwU'
  ]
}
[MIXED PLAYLIST] Playlist creation completed successfully: {
  id: '8791c148-a234-4e08-8ff2-04f54f4348a1',
  name: 'Harmonic Tune - Oct 16',
  creatorPlaylistId: '53jyCWUlxwsRgl7v6gCmzo',
  partnerPlaylistId: undefined,
  trackCount: 25,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg'
}
[0mPOST /playlists/mixed [32m200[0m 1497.571 ms - 1395[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 1.352 ms - 736[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 5.426 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.694 ms - 736[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.116 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.757 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [32m200[0m 0.685 ms - 736[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.725 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.131 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.736 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.627 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.331 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.537 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.683 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 1.895 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.571 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 1.176 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.786 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.588 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 1.487 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 3.403 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.698 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.659 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 3.457 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.695 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 1.205 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 3.829 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.572 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.953 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.118 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.782 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 1.583 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 4.709 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.857 ms - 27[0m
[MIXED PLAYLIST] Starting playlist creation process for creator: 91416peucsefexd7z3q9875hw, partner: 31at7552nbs34vogjfzmasypv6vy
[MIXED PLAYLIST] Request parameters: {
  name: undefined,
  description: 'An AI-blended mix with fresh recommendations',
  vibe: undefined,
  genres: [ 'indie' ],
  includeKnown: true,
  createForBoth: false,
  limit: 25
}
[MIXED PLAYLIST] Collecting seed tracks from creator (91416peucsefexd7z3q9875hw) and partner (31at7552nbs34vogjfzmasypv6vy)
[MIXED PLAYLIST] Found 20 tracks from creator, 16 tracks from partner
[MIXED PLAYLIST] Total seed track URIs: 36
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 1.120 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 3.859 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 1.464 ms - 27[0m
[MIXED PLAYLIST] Creating Spotify playlist for creator: "Dreamy Blend - Oct 16"
[PLAYLIST CREATION] Creating Spotify playlist: "Dreamy Blend - Oct 16" for user: 91416peucsefexd7z3q9875hw
[PLAYLIST CREATION] Spotify playlist created successfully with ID: 3cNxtBOsaZdJyWo2DGytkJ
[PLAYLIST COVER] Looking for images in directory: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers
[PLAYLIST COVER] Found 9 image files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Selected random playlist cover: /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg (from file: WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg)
[PLAYLIST COVER] Looking for file: WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg in files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Attempting to upload cover image: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg
[PLAYLIST COVER] Attempting to upload cover image for playlist 3cNxtBOsaZdJyWo2DGytkJ from path: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg
[PLAYLIST COVER] Image file size: 99239 bytes (96.91 KB)
[PLAYLIST COVER] Failed to upload cover image for playlist 3cNxtBOsaZdJyWo2DGytkJ: { error: { status: 401, message: 'Unauthorized.' } }
[PLAYLIST COVER] Failed to upload cover image to Spotify playlist 3cNxtBOsaZdJyWo2DGytkJ, but playlist was created successfully
[MIXED PLAYLIST] Adding 25 tracks to creator playlist 3cNxtBOsaZdJyWo2DGytkJ
[MIXED PLAYLIST] Successfully added tracks to creator playlist
[MIXED PLAYLIST] Saving playlist to database: {
  id: 'f66b57ab-0baa-4740-9303-fedbc5b90df6',
  name: 'Dreamy Blend - Oct 16',
  trackCount: 25,
  creatorPlaylistId: '3cNxtBOsaZdJyWo2DGytkJ',
  partnerPlaylistId: undefined,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg',
  trackUris: [
    'spotify:track:0BxE4FqsDD1Ot4YuBXwAPp',
    'spotify:track:20B2I2t11yceg5v6CSdF2C',
    'spotify:track:1v1cijv1qjMJ5o9OvMWACS'
  ]
}
[MIXED PLAYLIST] Playlist creation completed successfully: {
  id: 'f66b57ab-0baa-4740-9303-fedbc5b90df6',
  name: 'Dreamy Blend - Oct 16',
  creatorPlaylistId: '3cNxtBOsaZdJyWo2DGytkJ',
  partnerPlaylistId: undefined,
  trackCount: 25,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg'
}
[0mPOST /playlists/mixed [32m200[0m 1488.677 ms - 1400[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.880 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 3.061 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 1.993 ms - 132357[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.668 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 1.960 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.936 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 1.543 ms - 132357[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.644 ms - 27[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 2.126 ms - 44[0m
[0mGET /playlists/mixed [32m200[0m 2.656 ms - 6620[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 2.145 ms - 44[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 5.171 ms - 156666[0m
[0mGET /partners/requests/91416peucsefexd7z3q9875hw [32m200[0m 3.568 ms - 2[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 0.821 ms - 57[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 2.420 ms - 61623[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 4.760 ms - 156852[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 0.684 ms - 238[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 0.511 ms - 57[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 4.954 ms - 156852[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 4.000 ms - 61623[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 4.409 ms - 238[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 6.305 ms - 156666[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 4.941 ms - 156852[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 331.408 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 386.557 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/now-playing [32m200[0m 2.108 ms - 20[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 4.406 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 6.255 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 6.573 ms - 27[0m
[0mGET /playlists/mixed [32m200[0m 2.180 ms - 6620[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.499 ms - 27[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.759 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 5.424 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.527 ms - 27[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 0.985 ms - 27[0m
[0mDELETE /playlists/mixed/8ec2d0d9-de93-4ee7-ab76-69dc6ea6b432 [32m200[0m 1.857 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.592 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.204 ms - 131729[0m
[0mGET /api/playlist-covers/cover1.svg [33m404[0m 2.529 ms - 27[0m
[0mDELETE /playlists/mixed/f9d6bf45-4b8f-472a-b482-e66fd88a3e16 [32m200[0m 1.599 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.167 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 5.011 ms - 131729[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 1.746 ms - 44[0m
[0mGET /playlists/mixed [32m200[0m 2.243 ms - 3359[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 3.642 ms - 44[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 7.241 ms - 156666[0m
[0mGET /partners/requests/91416peucsefexd7z3q9875hw [32m200[0m 1.888 ms - 2[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 0.669 ms - 57[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 0.909 ms - 238[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 6.056 ms - 156852[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 2.810 ms - 61623[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 53.602 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 0.725 ms - 238[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 2.653 ms - 61623[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 6.048 ms - 156852[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 0.730 ms - 57[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 5.416 ms - 156666[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 4.647 ms - 156852[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 44.441 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/now-playing [32m200[0m 2.167 ms - 20[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.594 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 4.424 ms - 131729[0m
[0mGET /playlists/mixed [32m200[0m 5.963 ms - 3359[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.812 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 1.637 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 1.989 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.290 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.188 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.014 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.943 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 6.145 ms - 131729[0m
[MIXED PLAYLIST] Starting playlist creation process for creator: 91416peucsefexd7z3q9875hw, partner: 31at7552nbs34vogjfzmasypv6vy
[MIXED PLAYLIST] Request parameters: {
  name: undefined,
  description: 'An AI-blended mix with fresh recommendations',
  vibe: undefined,
  genres: [ 'pop' ],
  includeKnown: true,
  createForBoth: false,
  limit: 25
}
[MIXED PLAYLIST] Collecting seed tracks from creator (91416peucsefexd7z3q9875hw) and partner (31at7552nbs34vogjfzmasypv6vy)
[MIXED PLAYLIST] Found 20 tracks from creator, 16 tracks from partner
[MIXED PLAYLIST] Total seed track URIs: 36
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.525 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.561 ms - 132357[0m
[MIXED PLAYLIST] Creating Spotify playlist for creator: "Rhythmic Sound - Oct 16"
[PLAYLIST CREATION] Creating Spotify playlist: "Rhythmic Sound - Oct 16" for user: 91416peucsefexd7z3q9875hw
[PLAYLIST CREATION] Spotify playlist created successfully with ID: 0st3z31nDWsY5T4oRMsZwF
[PLAYLIST COVER] Looking for images in directory: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers
[PLAYLIST COVER] Found 9 image files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Selected random playlist cover: /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg (from file: WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg)
[PLAYLIST COVER] Looking for file: WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg in files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Attempting to upload cover image: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg
[PLAYLIST COVER] Attempting to upload cover image for playlist 0st3z31nDWsY5T4oRMsZwF from path: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg
[PLAYLIST COVER] Image file size: 203140 bytes (198.38 KB)
[PLAYLIST COVER] Failed to upload cover image for playlist 0st3z31nDWsY5T4oRMsZwF: Request failed with status code 413
[PLAYLIST COVER] Failed to upload cover image to Spotify playlist 0st3z31nDWsY5T4oRMsZwF, but playlist was created successfully
[MIXED PLAYLIST] Adding 25 tracks to creator playlist 0st3z31nDWsY5T4oRMsZwF
[MIXED PLAYLIST] Successfully added tracks to creator playlist
[MIXED PLAYLIST] Saving playlist to database: {
  id: '8bba02a1-389e-46e8-b4a2-efbb016647a3',
  name: 'Rhythmic Sound - Oct 16',
  trackCount: 25,
  creatorPlaylistId: '0st3z31nDWsY5T4oRMsZwF',
  partnerPlaylistId: undefined,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg',
  trackUris: [
    'spotify:track:6MrLkXsMmHaYt680fhJUAq',
    'spotify:track:5BZsQlgw21vDOAjoqkNgKb',
    'spotify:track:6dOtVTDdiauQNBQEDOtlAB'
  ]
}
[MIXED PLAYLIST] Playlist creation completed successfully: {
  id: '8bba02a1-389e-46e8-b4a2-efbb016647a3',
  name: 'Rhythmic Sound - Oct 16',
  creatorPlaylistId: '0st3z31nDWsY5T4oRMsZwF',
  partnerPlaylistId: undefined,
  trackCount: 25,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg'
}
[0mPOST /playlists/mixed [32m200[0m 1309.712 ms - 1402[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 4.178 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 6.168 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 4.953 ms - 270893[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.447 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 1.672 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 4.397 ms - 270893[0m
[MIXED PLAYLIST] Starting playlist creation process for creator: 91416peucsefexd7z3q9875hw, partner: 31at7552nbs34vogjfzmasypv6vy
[MIXED PLAYLIST] Request parameters: {
  name: undefined,
  description: 'An AI-blended mix with fresh recommendations',
  vibe: undefined,
  genres: [ 'pop' ],
  includeKnown: true,
  createForBoth: false,
  limit: 25
}
[MIXED PLAYLIST] Collecting seed tracks from creator (91416peucsefexd7z3q9875hw) and partner (31at7552nbs34vogjfzmasypv6vy)
[MIXED PLAYLIST] Found 20 tracks from creator, 16 tracks from partner
[MIXED PLAYLIST] Total seed track URIs: 36
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.961 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 6.393 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 9.415 ms - 270893[0m
[MIXED PLAYLIST] Creating Spotify playlist for creator: "Vibrant Fusion - Oct 16"
[PLAYLIST CREATION] Creating Spotify playlist: "Vibrant Fusion - Oct 16" for user: 91416peucsefexd7z3q9875hw
[PLAYLIST CREATION] Spotify playlist created successfully with ID: 0b7yrULu6aaBvXpeEUA4nR
[PLAYLIST COVER] Looking for images in directory: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers
[PLAYLIST COVER] Found 9 image files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Selected random playlist cover: /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg (from file: WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg)
[PLAYLIST COVER] Looking for file: WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg in files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Attempting to upload cover image: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg
[PLAYLIST COVER] Attempting to upload cover image for playlist 0b7yrULu6aaBvXpeEUA4nR from path: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg
[PLAYLIST COVER] Image file size: 100438 bytes (98.08 KB)
[PLAYLIST COVER] Failed to upload cover image for playlist 0b7yrULu6aaBvXpeEUA4nR: { error: { status: 401, message: 'Unauthorized.' } }
[PLAYLIST COVER] Failed to upload cover image to Spotify playlist 0b7yrULu6aaBvXpeEUA4nR, but playlist was created successfully
[MIXED PLAYLIST] Adding 25 tracks to creator playlist 0b7yrULu6aaBvXpeEUA4nR
[MIXED PLAYLIST] Successfully added tracks to creator playlist
[MIXED PLAYLIST] Saving playlist to database: {
  id: 'bc5de7f1-f91c-45e8-9549-ff411e05f47d',
  name: 'Vibrant Fusion - Oct 16',
  trackCount: 25,
  creatorPlaylistId: '0b7yrULu6aaBvXpeEUA4nR',
  partnerPlaylistId: undefined,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg',
  trackUris: [
    'spotify:track:5sBDrrtLGbV64QJnEqfjer',
    'spotify:track:05od2qm2MTSKCHxy1GBp5W',
    'spotify:track:62HoDY1Km6lm47haFpUn9c'
  ]
}
[MIXED PLAYLIST] Playlist creation completed successfully: {
  id: 'bc5de7f1-f91c-45e8-9549-ff411e05f47d',
  name: 'Vibrant Fusion - Oct 16',
  creatorPlaylistId: '0b7yrULu6aaBvXpeEUA4nR',
  partnerPlaylistId: undefined,
  trackCount: 25,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg'
}
[0mPOST /playlists/mixed [32m200[0m 1604.637 ms - 1402[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 2.817 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 4.009 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 3.588 ms - 270893[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg [32m200[0m 6.224 ms - 133957[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 1.734 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.503 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 3.109 ms - 270893[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg [32m200[0m 2.680 ms - 133957[0m
[0mGET /partners/events/91416peucsefexd7z3q9875hw?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI5MTQxNnBldWNzZWZleGQ3ejNxOTg3NWh3IiwiaWF0IjoxNzYwNjE2MDA3LCJleHAiOjE3NjMyMDgwMDd9.E5NRRqWPxfauImmWE0zi1eQlckg6cPN1i-ojwyXnYuI [32m200[0m 1.312 ms - -[0m
[0mGET /partners/events/91416peucsefexd7z3q9875hw?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI5MTQxNnBldWNzZWZleGQ3ejNxOTg3NWh3IiwiaWF0IjoxNzYwNjE2MDA3LCJleHAiOjE3NjMyMDgwMDd9.E5NRRqWPxfauImmWE0zi1eQlckg6cPN1i-ojwyXnYuI [32m200[0m 2.337 ms - -[0m
[0mGET /partners/events/91416peucsefexd7z3q9875hw?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI5MTQxNnBldWNzZWZleGQ3ejNxOTg3NWh3IiwiaWF0IjoxNzYwNjE2MDA3LCJleHAiOjE3NjMyMDgwMDd9.E5NRRqWPxfauImmWE0zi1eQlckg6cPN1i-ojwyXnYuI [32m200[0m 1.647 ms - -[0m
[0mGET /health [32m200[0m 0.661 ms - 11[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 1.623 ms - 44[0m
[0mGET /playlists/mixed [32m200[0m 2.029 ms - 6709[0m
[0mGET /partners/partner/91416peucsefexd7z3q9875hw [32m200[0m 1.555 ms - 44[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 5.543 ms - 156666[0m
[0mGET /partners/requests/91416peucsefexd7z3q9875hw [32m200[0m 1.618 ms - 2[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 0.735 ms - 57[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 4.746 ms - 156852[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 0.913 ms - 238[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 2.492 ms - 61623[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy [32m200[0m 2.921 ms - 238[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 5.500 ms - 156852[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 34.610 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/top-tracks?time_range=short_term [32m200[0m 3.567 ms - 61623[0m
[0mGET /users/91416peucsefexd7z3q9875hw/status [32m200[0m 0.847 ms - 57[0m
[0mGET /users/91416peucsefexd7z3q9875hw/recently-played [32m200[0m 6.017 ms - 156666[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 32.753 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/now-playing [32m200[0m 2.014 ms - 20[0m
[0mGET /users/31at7552nbs34vogjfzmasypv6vy/recently-played [32m200[0m 5.002 ms - 156852[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg [32m200[0m 3.188 ms - 133957[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 6.106 ms - 270893[0m
[0mGET /playlists/mixed [32m200[0m 2.215 ms - 6709[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 4.627 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 1.706 ms - 131729[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg [32m200[0m 3.480 ms - 133957[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 3.911 ms - 270893[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 5.660 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.253 ms - 131729[0m
[0mDELETE /playlists/mixed/bc5de7f1-f91c-45e8-9549-ff411e05f47d [32m200[0m 1.912 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30%20(2).jpeg [32m200[0m 4.191 ms - 270893[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.256 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 4.664 ms - 131729[0m
[0mDELETE /playlists/mixed/8bba02a1-389e-46e8-b4a2-efbb016647a3 [32m200[0m 1.718 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(3).jpeg [32m200[0m 3.657 ms - 132357[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 5.127 ms - 131729[0m
[0mDELETE /playlists/mixed/f66b57ab-0baa-4740-9303-fedbc5b90df6 [32m200[0m 1.900 ms - 16[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.30.jpeg [32m200[0m 2.258 ms - 131729[0m
[0mDELETE /playlists/mixed/8791c148-a234-4e08-8ff2-04f54f4348a1 [32m200[0m 2.063 ms - 16[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 88.599 ms - 20[0m
[MIXED PLAYLIST] Starting playlist creation process for creator: 91416peucsefexd7z3q9875hw, partner: 31at7552nbs34vogjfzmasypv6vy
[MIXED PLAYLIST] Request parameters: {
  name: undefined,
  description: 'An AI-blended mix with fresh recommendations',
  vibe: undefined,
  genres: undefined,
  includeKnown: true,
  createForBoth: false,
  limit: 25
}
[MIXED PLAYLIST] Collecting seed tracks from creator (91416peucsefexd7z3q9875hw) and partner (31at7552nbs34vogjfzmasypv6vy)
[MIXED PLAYLIST] Found 20 tracks from creator, 16 tracks from partner
[MIXED PLAYLIST] Total seed track URIs: 36
Using fallback genres: [ 'pop', 'rock', 'indie', 'alternative' ] based on track analysis
[MIXED PLAYLIST] Creating Spotify playlist for creator: "Rhythmic Tune - Oct 16"
[PLAYLIST CREATION] Creating Spotify playlist: "Rhythmic Tune - Oct 16" for user: 91416peucsefexd7z3q9875hw
[PLAYLIST CREATION] Spotify playlist created successfully with ID: 3soGn0w8lRVvJrg26j4MFp
[PLAYLIST COVER] Looking for images in directory: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers
[PLAYLIST COVER] Found 9 image files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Selected random playlist cover: /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg (from file: WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg)
[PLAYLIST COVER] Looking for file: WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg in files: [
  'WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (3).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (4).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29 (5).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.29.jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (1).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30 (2).jpeg',
  'WhatsApp Image 2025-10-16 at 11.12.30.jpeg'
]
[PLAYLIST COVER] Attempting to upload cover image: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg
[PLAYLIST COVER] Attempting to upload cover image for playlist 3soGn0w8lRVvJrg26j4MFp from path: /home/pschneid/Gulfslab/projects/spotify/server/public/playlist-covers/WhatsApp Image 2025-10-16 at 11.12.29 (1).jpeg
[PLAYLIST COVER] Image file size: 100438 bytes (98.08 KB)
[PLAYLIST COVER] Failed to upload cover image for playlist 3soGn0w8lRVvJrg26j4MFp: { error: { status: 401, message: 'Unauthorized.' } }
[PLAYLIST COVER] Failed to upload cover image to Spotify playlist 3soGn0w8lRVvJrg26j4MFp, but playlist was created successfully
[MIXED PLAYLIST] Adding 25 tracks to creator playlist 3soGn0w8lRVvJrg26j4MFp
[MIXED PLAYLIST] Successfully added tracks to creator playlist
[MIXED PLAYLIST] Saving playlist to database: {
  id: '88d544c9-b1d8-4ec5-9a4e-268430dff2e7',
  name: 'Rhythmic Tune - Oct 16',
  trackCount: 25,
  creatorPlaylistId: '3soGn0w8lRVvJrg26j4MFp',
  partnerPlaylistId: undefined,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg',
  trackUris: [
    'spotify:track:0TFTAtCYhp2tQ9KcJIZb55',
    'spotify:track:3DwQ7AH3xGD9h65ezslm6q',
    'spotify:track:6S9q9mEifNdnTNlli2xSuD'
  ]
}
[MIXED PLAYLIST] Playlist creation completed successfully: {
  id: '88d544c9-b1d8-4ec5-9a4e-268430dff2e7',
  name: 'Rhythmic Tune - Oct 16',
  creatorPlaylistId: '3soGn0w8lRVvJrg26j4MFp',
  partnerPlaylistId: undefined,
  trackCount: 25,
  imageUrl: '/api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg'
}
[0mPOST /playlists/mixed [32m200[0m 2897.898 ms - 1401[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg [32m200[0m 2.457 ms - 133957[0m
[0mGET /api/playlist-covers/WhatsApp%20Image%202025-10-16%20at%2011.12.29%20(1).jpeg [32m200[0m 2.064 ms - 133957[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 44.537 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 85.326 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 83.071 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 63.326 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 83.462 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 48.190 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 86.442 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 55.034 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 74.207 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 88.228 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 34.562 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 89.815 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 51.537 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 52.542 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 59.649 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 50.169 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 87.490 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 85.943 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 55.879 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 56.865 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 54.869 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 85.565 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 53.059 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 54.127 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 98.826 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 87.836 ms - 20[0m
[0mGET /users/91416peucsefexd7z3q9875hw/now-playing [32m200[0m 91.096 ms - 20[0m
