Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spotify] Remove items #12527

Closed
user4me opened this issue Jan 9, 2025 · 2 comments · May be fixed by #12531
Closed

[Spotify] Remove items #12527

user4me opened this issue Jan 9, 2025 · 2 comments · May be fixed by #12531
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@user4me
Copy link

user4me commented Jan 9, 2025

Bug Description

When specifying multiple comma-separated trackIds in the trackId parameter, the Spotify API returns an error during track deletion, even though adding tracks works correctly :

{
  "errorMessage": "Bad request - please check your parameters",
  "errorDescription": "Invalid base62 id",
  "errorDetails": {
    "rawErrorMessage": [
      "400 - {\"error\":{\"status\":400,\"message\":\"Invalid base62 id\"}}"
    ],
    "httpCode": "400"
  },
  "n8nDetails": {
    "nodeName": "************",
    "nodeType": "n8n-nodes-base.spotify",
    "nodeVersion": 1,
    "resource": "playlist",
    "operation": "delete",
    "time": "09/01/2025 12:17:39",
    "n8nVersion": "1.72.1 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeApiError: Bad request - please check your parameters",
      "    at ExecuteContext.spotifyApiRequest (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Spotify/GenericFunctions.ts:43:9)",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at ExecuteContext.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Spotify/Spotify.node.ts:1096:23)",
      "    at Workflow.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1394:8)",
      "    at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1173:27",
      "    at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1894:11"
    ]
  }
}

To Reproduce

  1. Select Spotify Node
  2. Select Credentials
  3. Select Resource "playlist"
  4. Select "Remove an item"
  5. Write playlistId
  6. Specify multiple comma separated trackIds into trackId

Expected behavior

Delete the specified tracks from the playlist

Operating System

Debian 12

n8n Version

1.72.1

Node.js Version

20.18.1

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 9, 2025

Hey @user4me,

We have created an internal ticket to look into this which we will be tracking as "N8N-8069"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 9, 2025
@Joffcom
Copy link
Member

Joffcom commented Jan 9, 2025

Hey @user4me,

Thanks for raising this, As you have also put in a PR I will close this issue as there is nothing for us to fix you have already done it. I will try and get the PR reviewed later today as well.

@Joffcom Joffcom closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants