Hello n8n community, does anyone know how to fix this problem?, so i was trying to use the API ofr apilabtools. it works when the process of “POST” node but during “GET” node, it seems like it doesnt work or getting error.
{
“nodes”: [
{
“parameters”: {
“amount”: 80
},
“type”: “n8n-nodes-base.wait”,
“typeVersion”: 1.1,
“position”: [
660,
100
],
“id”: “ec7a7e73-d7f3-44f4-8b8b-31c868713000”,
“name”: “Wait”,
“webhookId”: “d00a408a-5ae3-43e2-8586-bce98103e646”
},
{
“parameters”: {
“url”: “=https://www.ailabtools.com/api/hairstyle-editor-pro/result/”,
“sendQuery”: true,
“queryParameters”: {
“parameters”: [
{
“name”: “task_id”,
“value”: “={{ $json.task_id }}”
}
]
},
“sendHeaders”: true,
“headerParameters”: {
“parameters”: [
{
“name”: “accept”,
“value”: “application/json”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
820,
100
],
“id”: “14ac9123-6d20-4a15-82a0-22fe3fd714a6”,
“name”: “HTTP Request”
},
{
“parameters”: {
“operation”: “download”,
“fileId”: {
“__rl”: true,
“value”: “={{ $json.id }}”,
“mode”: “id”
},
“options”: {}
},
“type”: “n8n-nodes-base.googleDrive”,
“typeVersion”: 3,
“position”: [
340,
100
],
“id”: “252f252d-e1c4-40f4-a6c5-e7c90346edbb”,
“name”: “Google Drive1”,
“credentials”: {
“googleDriveOAuth2Api”: {
“id”: “Xu5tRt47KBk8DcHF”,
“name”: “Google Drive account”
}
}
},
{
“parameters”: {
“method”: “POST”,
“url”: “https://www.ailabapi.com/api/portrait/effects/hairstyle-editor-pro”,
“sendHeaders”: true,
“headerParameters”: {
“parameters”: [
{
“name”: “ailabapi-api-key”,
“value”: “=FQLdp0A2eE4RIhDKufkU6lx8S3oKlwXVr1akjqFB9s8scJdOaWP6MtgnihBoAHLN”
},
{
“name”: “content-type”,
“value”: “multiplatfrom/form-data”
}
]
},
“sendBody”: true,
“contentType”: “multipart-form-data”,
“bodyParameters”: {
“parameters”: [
{
“name”: “task_type”,
“value”: “async”
},
{
“name”: “hair_style”,
“value”: “BuzzCut”
},
{
“parameterType”: “formBinaryData”,
“name”: “image”,
“inputDataFieldName”: “data”
},
{
“name”: “color”,
“value”: “silver”
},
{
“name”: “image_size”,
“value”: “1”
}
]
},
“options”: {
“redirect”: {
“redirect”: {}
}
}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
500,
100
],
“id”: “ea2e3ed0-4bd6-4403-85ea-8a229e58ceb8”,
“name”: “Send to ailabapi”
}
],
“connections”: {
“Wait”: {
“main”: [
[
{
“node”: “HTTP Request”,
“type”: “main”,
“index”: 0
}
]
]
},
“HTTP Request”: {
“main”: [
]
},
“Google Drive1”: {
“main”: [
[
{
“node”: “Send to ailabapi”,
“type”: “main”,
“index”: 0
}
]
]
},
“Send to ailabapi”: {
“main”: [
[
{
“node”: “Wait”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “566d540975b2c1394cbcff71fcca4acd8737ab7baca770fa7ebf91ba5be83106”
}
}
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: