{"id":118361,"date":"2025-08-18T15:34:53","date_gmt":"2025-08-18T08:34:53","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=118361"},"modified":"2026-10-23T10:47:35","modified_gmt":"2026-10-23T03:47:35","slug":"loi-ket-noi-api-thuong-gap-trong-n8n","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/loi-ket-noi-api-thuong-gap-trong-n8n\/","title":{"rendered":"L\u1ed7i API l\u00e0 g\u00ec? B\u1ea3ng m\u00e3 l\u1ed7i khi g\u1ecdi API trong n8n"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>L\u1ed7i API<\/strong> l\u00e0 khi y\u00eau c\u1ea7u g\u1eedi t\u1edbi m\u1ed9t API th\u1ea5t b\u1ea1i: m\u00e1y ch\u1ee7 tr\u1ea3 m\u00e3 l\u1ed7i ho\u1eb7c kh\u00f4ng tr\u1ea3 l\u1eddi k\u1ecbp. M\u00e3 4xx ngh\u0129a l\u00e0 request c\u00f3 v\u1ea5n \u0111\u1ec1 (sai kh\u00f3a, sai URL, g\u1eedi qu\u00e1 nhanh), m\u00e3 5xx l\u00e0 l\u1ed7i ph\u00eda m\u00e1y ch\u1ee7 API. Trong n8n, l\u1ed7i hi\u1ec7n \u1edf node HTTP Request k\u00e8m m\u00e3 v\u00e0 th\u00f4ng b\u00e1o.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Trang n\u00e0y l\u00e0 b\u1ea3ng tra l\u1ed7i API cho ng\u01b0\u1eddi d\u00f9ng <a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\">n8n<\/a>: \u0111\u1ecdc m\u00e3, \u0111o\u00e1n nguy\u00ean nh\u00e2n, ki\u1ec3m \u1edf \u0111\u00e2u, r\u1ed3i \u0111i t\u1edbi b\u00e0i chi ti\u1ebft c\u1ee7a t\u1eebng l\u1ed7i. T\u00ean n\u00fat v\u00e0 th\u00f4ng b\u00e1o theo n8n 2.x, \u0111\u1ed1i chi\u1ebfu docs.n8n.io ng\u00e0y 22\/10\/2026.<\/p>\n\n\n\n<h2 id=\"L\u1ed7i_API_l\u00e0_g\u00ec?\">L\u1ed7i API l\u00e0 g\u00ec?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">L\u1ed7i API l\u00e0 ph\u1ea3n h\u1ed3i cho bi\u1ebft m\u1ed9t request t\u1edbi API kh\u00f4ng th\u00e0nh c\u00f4ng. Ph\u1ea3n h\u1ed3i g\u1ed3m m\u00e3 tr\u1ea1ng th\u00e1i HTTP v\u00e0 th\u01b0\u1eddng k\u00e8m n\u1ed9i dung m\u00f4 t\u1ea3 l\u1ed7i. Theo <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9110#name-status-codes\" target=\"_blank\" rel=\"noopener nofollow\">RFC 9110<\/a>, m\u00e3 4xx l\u00e0 l\u1ed7i ph\u00eda client (request sai, thi\u1ebfu quy\u1ec1n, sai \u0111\u1ecba ch\u1ec9), m\u00e3 5xx l\u00e0 l\u1ed7i ph\u00eda m\u00e1y ch\u1ee7. Ngo\u00e0i ra c\u00f2n nh\u00f3m l\u1ed7i k\u1ebft n\u1ed1i kh\u00f4ng c\u00f3 m\u00e3 HTTP: m\u00e1y ch\u1ee7 t\u1eeb ch\u1ed1i k\u1ebft n\u1ed1i, qu\u00e1 th\u1eddi gian ch\u1edd, l\u1ed7i ch\u1ee9ng ch\u1ec9 SSL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ph\u00e2n bi\u1ec7t ba nh\u00f3m n\u00e0y gi\u00fap quy\u1ebft \u0111\u1ecbnh \u0111\u00fang vi\u1ec7c c\u1ea7n l\u00e0m: l\u1ed7i 4xx ph\u1ea3i s\u1eeda request, l\u1ed7i 5xx th\u01b0\u1eddng ch\u1edd ho\u1eb7c th\u1eed l\u1ea1i, l\u1ed7i k\u1ebft n\u1ed1i ph\u1ea3i ki\u1ec3m m\u1ea1ng, DNS, c\u1ed5ng, ch\u1ee9ng ch\u1ec9.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-cay-chan-doan.webp\" alt=\"C\u00e2y ch\u1ea9n \u0111o\u00e1n l\u1ed7i API trong n8n: m\u1edf panel OUTPUT c\u1ee7a node l\u1ed7i, n\u1ebfu c\u00f3 m\u00e3 4xx th\u00ec ki\u1ec3m tham s\u1ed1 (400, 415), x\u00e1c th\u1ef1c (401), quy\u1ec1n (403), URL (404), t\u1ed1c \u0111\u1ed9 (429); n\u1ebfu m\u00e3 5xx th\u00ec l\u1ed7i m\u00e1y ch\u1ee7 API, b\u1eadt Retry On Fail; n\u1ebfu kh\u00f4ng c\u00f3 m\u00e3 th\u00ec l\u00e0 l\u1ed7i k\u1ebft n\u1ed1i ECONNREFUSED, timeout ho\u1eb7c SSL\" class=\"wp-image-131501\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-cay-chan-doan.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-cay-chan-doan-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-cay-chan-doan-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-cay-chan-doan-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<h2 id=\"B\u1ea3ng_m\u00e3_l\u1ed7i_API_th\u01b0\u1eddng_g\u1eb7p_trong_n8n\">B\u1ea3ng m\u00e3 l\u1ed7i API th\u01b0\u1eddng g\u1eb7p trong n8n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea3ng d\u01b0\u1edbi gom c\u00e1c l\u1ed7i node HTTP Request hay b\u00e1o, theo <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.httprequest\/common-issues\/\" target=\"_blank\" rel=\"noopener nofollow\">trang Common issues c\u1ee7a node HTTP Request<\/a> v\u00e0 kinh nghi\u1ec7m ch\u1ea1y workflow th\u1ef1c t\u1ebf. Th\u00f4ng b\u00e1o trong n8n l\u1ea5y nguy\u00ean v\u0103n ti\u1ebfng Anh \u0111\u1ec3 b\u1ea1n d\u1ec5 t\u00ecm; v\u1edbi m\u00e3 kh\u00f4ng c\u00f3 th\u00f4ng b\u00e1o ri\u00eang, n8n hi\u1ec3n th\u1ecb n\u1ed9i dung l\u1ed7i c\u1ee7a d\u1ecbch v\u1ee5.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>M\u00e3 \/ l\u1ed7i<\/th><th>Th\u00f4ng b\u00e1o trong n8n<\/th><th>Nguy\u00ean nh\u00e2n th\u01b0\u1eddng g\u1eb7p<\/th><th>C\u00e1ch ki\u1ec3m v\u00e0 s\u1eeda<\/th><th>B\u00e0i chi ti\u1ebft<\/th><\/tr><\/thead><tbody><tr><td>400 Bad Request<\/td><td>Bad request &#8211; please check your parameters<\/td><td>Sai t\u00ean ho\u1eb7c gi\u00e1 tr\u1ecb tham s\u1ed1, m\u1ea3ng truy\u1ec1n sai \u0111\u1ecbnh d\u1ea1ng<\/td><td>So tham s\u1ed1 v\u1edbi t\u00e0i li\u1ec7u API; th\u1eed t\u00f9y ch\u1ecdn Array Format in Query Parameters<\/td><td><\/td><\/tr><tr><td>401 Unauthorized<\/td><td>Authorization failed &#8211; please check your credentials<\/td><td>Thi\u1ebfu ho\u1eb7c sai API key, token h\u1ebft h\u1ea1n, sai ki\u1ec3u x\u00e1c th\u1ef1c<\/td><td>D\u00f9ng credential (Header Auth, Query Auth, OAuth2), k\u1ebft n\u1ed1i l\u1ea1i t\u00e0i kho\u1ea3n<\/td><td><a href=\"https:\/\/tino.vn\/blog\/khac-phuc-loi-401-unauthorized-authorization-failed\/\">L\u1ed7i 401 Unauthorized<\/a><\/td><\/tr><tr><td>403 Forbidden<\/td><td>Forbidden &#8211; perhaps check your credentials<\/td><td>\u0110\u00e3 x\u00e1c th\u1ef1c nh\u01b0ng thi\u1ebfu quy\u1ec1n, scope, g\u00f3i d\u1ecbch v\u1ee5 ho\u1eb7c IP b\u1ecb ch\u1eb7n<\/td><td>C\u1ea5p th\u00eam quy\u1ec1n ho\u1eb7c scope, t\u1ea1o key m\u1edbi \u0111\u1ee7 quy\u1ec1n<\/td><td><a href=\"https:\/\/tino.vn\/blog\/khac-phuc-loi-401-unauthorized-authorization-failed\/\">L\u1ed7i 401 Unauthorized<\/a> (m\u1ee5c 401 v\u00e0 403)<\/td><\/tr><tr><td>404 Not Found<\/td><td>The resource you are requesting could not be found<\/td><td>Sai endpoint, sai ID, API \u0111\u00e3 \u0111\u1ed5i phi\u00ean b\u1ea3n<\/td><td>\u0110\u1ed1i chi\u1ebfu URL v\u1edbi t\u00e0i li\u1ec7u API hi\u1ec7n h\u00e0nh<\/td><td><\/td><\/tr><tr><td>405 Method Not Allowed<\/td><td>N\u1ed9i dung l\u1ed7i c\u1ee7a d\u1ecbch v\u1ee5<\/td><td>D\u00f9ng GET cho endpoint ch\u1ec9 nh\u1eadn POST (ho\u1eb7c ng\u01b0\u1ee3c l\u1ea1i)<\/td><td>\u0110\u1ed5i Method c\u1ee7a node theo t\u00e0i li\u1ec7u<\/td><td><\/td><\/tr><tr><td>413 Payload Too Large<\/td><td>N\u1ed9i dung l\u1ed7i c\u1ee7a d\u1ecbch v\u1ee5<\/td><td>File ho\u1eb7c body v\u01b0\u1ee3t gi\u1edbi h\u1ea1n c\u1ee7a m\u00e1y ch\u1ee7 nh\u1eadn<\/td><td>Gi\u1ea3m k\u00edch th\u01b0\u1edbc, chia nh\u1ecf l\u00f4<\/td><td><\/td><\/tr><tr><td>415 Unsupported Media Type<\/td><td>N\u1ed9i dung l\u1ed7i c\u1ee7a d\u1ecbch v\u1ee5<\/td><td>API c\u1ea7n multipart\/form-data nh\u01b0ng body g\u1eedi d\u1ea1ng kh\u00e1c<\/td><td>Body Content Type = Form-Data, tham s\u1ed1 ki\u1ec3u n8n Binary File<\/td><td><\/td><\/tr><tr><td>JSON kh\u00f4ng h\u1ee3p l\u1ec7<\/td><td>JSON parameter need to be an valid JSON<\/td><td>Thi\u1ebfu d\u1ea5u ngo\u1eb7c, d\u1ea5u ph\u1ea9y, d\u1ea5u nh\u00e1y trong body JSON<\/td><td>Ki\u1ec3m c\u00fa ph\u00e1p JSON; d\u00f9ng expression th\u00ec b\u1ecdc c\u1ea3 JSON trong {{ }}<\/td><td><\/td><\/tr><tr><td>429 Too Many Requests<\/td><td>The service is receiving too many requests from you<\/td><td>V\u01b0\u1ee3t gi\u1edbi h\u1ea1n t\u1ed1c \u0111\u1ed9 c\u1ee7a d\u1ecbch v\u1ee5<\/td><td>Options &gt; Batching (Items per Batch, Batch Interval), Retry On Fail<\/td><td><a href=\"https:\/\/tino.vn\/blog\/sua-loi-tich-hop-google-sheet-drive-voi-n8n\/\">L\u1ed7i Google Sheets, Drive<\/a> (429 c\u1ee7a Google)<\/td><\/tr><tr><td>500 Internal Server Error<\/td><td>The service was not able to process your request<\/td><td>L\u1ed7i n\u1ed9i b\u1ed9 c\u1ee7a d\u1ecbch v\u1ee5, th\u01b0\u1eddng t\u1ea1m th\u1eddi<\/td><td>Th\u1eed l\u1ea1i sau, xem trang tr\u1ea1ng th\u00e1i c\u1ee7a d\u1ecbch v\u1ee5<\/td><td><\/td><\/tr><tr><td>502, 503, 504<\/td><td>N\u1ed9i dung l\u1ed7i c\u1ee7a c\u1ed5ng ho\u1eb7c d\u1ecbch v\u1ee5<\/td><td>Gateway ho\u1eb7c m\u00e1y ch\u1ee7 ph\u00eda sau qu\u00e1 t\u1ea3i, b\u1ea3o tr\u00ec, qu\u00e1 h\u1ea1n<\/td><td>Retry On Fail c\u00f3 gi\u00e3n c\u00e1ch; b\u00e1o nh\u00e0 cung c\u1ea5p n\u1ebfu k\u00e9o d\u00e0i<\/td><td><a href=\"https:\/\/tino.vn\/blog\/timeout-trong-n8n\/\">Timeout trong n8n<\/a><\/td><\/tr><tr><td>ECONNREFUSED<\/td><td>Connection refused<\/td><td>C\u1ed5ng kh\u00f4ng c\u00f3 d\u1ecbch v\u1ee5 l\u1eafng nghe; trong Docker, localhost l\u00e0 ch\u00ednh container n8n<\/td><td>D\u00f9ng host.docker.internal ho\u1eb7c t\u00ean service trong Docker Compose<\/td><td><\/td><\/tr><tr><td>Timeout, ETIMEDOUT<\/td><td>N\u1ed9i dung l\u1ed7i k\u1ebft n\u1ed1i<\/td><td>API tr\u1ea3 l\u1eddi ch\u1eadm h\u01a1n Timeout c\u1ee7a node, m\u1ea1ng ho\u1eb7c t\u01b0\u1eddng l\u1eeda ch\u1eb7n<\/td><td>T\u0103ng Options &gt; Timeout, ki\u1ec3m m\u1ea1ng t\u1eeb m\u00e1y ch\u1ee7 n8n<\/td><td><a href=\"https:\/\/tino.vn\/blog\/timeout-trong-n8n\/\">Timeout trong n8n<\/a><\/td><\/tr><tr><td>L\u1ed7i SSL<\/td><td>N\u1ed9i dung l\u1ed7i ch\u1ee9ng ch\u1ec9<\/td><td>Ch\u1ee9ng ch\u1ec9 c\u1ee7a API h\u1ebft h\u1ea1n, sai t\u00ean mi\u1ec1n, thi\u1ebfu ch\u1ee9ng ch\u1ec9 trung gian<\/td><td>Ki\u1ec3m ch\u1ee9ng ch\u1ec9 c\u1ee7a API; Ignore SSL Issues ch\u1ec9 d\u00f9ng t\u1ea1m \u0111\u1ec3 ch\u1ea9n \u0111o\u00e1n<\/td><td><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">B\u1ea3ng tra l\u1ed7i node HTTP Request trong n8n 2.x (\u0111\u1ed1i chi\u1ebfu docs.n8n.io, RFC 9110, RFC 6585; truy c\u1eadp 22\/10\/2026)<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1ed9t l\u01b0u \u00fd v\u1ec1 401 v\u00e0 403: t\u00e0i li\u1ec7u n8n ghi th\u00f4ng b\u00e1o 403 l\u00e0 &#8220;authentication failed&#8221;, nh\u01b0ng theo RFC 9110, 403 l\u00e0 \u0111\u00e3 hi\u1ec3u y\u00eau c\u1ea7u v\u00e0 t\u1eeb ch\u1ed1i, th\u01b0\u1eddng do thi\u1ebfu quy\u1ec1n. Khi g\u1eb7p 403, ki\u1ec3m quy\u1ec1n v\u00e0 scope c\u1ee7a key tr\u01b0\u1edbc khi \u0111\u1ed5i key.<\/p>\n\n\n\n<h2 id=\"V\u00ed_d\u1ee5:_\u0111\u1ecdc_l\u1ed7i_tr\u00ean_m\u1ed9t_workflow_g\u1ecdi_API_th\u1eddi_ti\u1ebft\">V\u00ed d\u1ee5: \u0111\u1ecdc l\u1ed7i tr\u00ean m\u1ed9t workflow g\u1ecdi API th\u1eddi ti\u1ebft<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Workflow m\u1eabu l\u1ea5y d\u1eef li\u1ec7u th\u1eddi ti\u1ebft t\u1eeb OpenWeatherMap, x\u1eed l\u00fd b\u1eb1ng node Code r\u1ed3i ghi v\u00e0o Google Sheets: Manual Trigger \u2192 HTTP Request \u2192 Code \u2192 Google Sheets. M\u1ed7i l\u1ed7i d\u01b0\u1edbi \u0111\u00e2y \u0111\u01b0\u1ee3c d\u1ef1ng l\u1ea1i tr\u00ean ch\u00ednh workflow n\u00e0y.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1226\" height=\"399\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-1.png\" alt=\"Workflow m\u1eabu trong n8n: Manual Trigger, HTTP Request g\u1ecdi API OpenWeatherMap, node Code x\u1eed l\u00fd JSON v\u00e0 Google Sheets ghi d\u00f2ng m\u1edbi\" class=\"wp-image-118362\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-1.png 1226w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-1-300x98.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-1-1024x333.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-1-768x250.png 768w\" sizes=\"(max-width: 1226px) 100vw, 1226px\" \/><\/figure>\n\n\n\n<h3 id=\"L\u1ed7i_401:_thi\u1ebfu_ho\u1eb7c_sai_API_key\">L\u1ed7i 401: thi\u1ebfu ho\u1eb7c sai API key<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Node HTTP Request b\u00e1o &#8220;Authorization failed &#8211; please check your credentials&#8221;, Full message c\u1ee7a OpenWeatherMap ghi &#8220;Invalid API key&#8221;. S\u1eeda b\u1eb1ng credential Query Auth v\u1edbi Name <code>appid<\/code> thay v\u00ec d\u00e1n key v\u00e0o URL. H\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc c\u00f3 trong b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/khac-phuc-loi-401-unauthorized-authorization-failed\/\">L\u1ed7i 401 Unauthorized<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1514\" height=\"894\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-401-da-che-key.webp\" alt=\"Node HTTP Request trong n8n b\u00e1o l\u1ed7i 401 Authorization failed, Full message Invalid API key t\u1eeb OpenWeatherMap, API key trong URL \u0111\u00e3 \u0111\u01b0\u1ee3c che\" class=\"wp-image-131502\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-401-da-che-key.webp 1514w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-401-da-che-key-300x177.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-401-da-che-key-1024x605.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-401-da-che-key-768x453.webp 768w\" sizes=\"(max-width: 1514px) 100vw, 1514px\" \/><\/figure>\n\n\n\n<h3 id=\"L\u1ed7i_404:_sai_endpoint_ho\u1eb7c_tham_s\u1ed1\">L\u1ed7i 404: sai endpoint ho\u1eb7c tham s\u1ed1<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">G\u00f5 sai t\u00ean th\u00e0nh ph\u1ed1 (<code>q=hanio<\/code>) ho\u1eb7c d\u00f9ng endpoint c\u0169, node b\u00e1o &#8220;The resource you are requesting could not be found&#8221; k\u00e8m m\u00e3 404. Ki\u1ec3m l\u1ea1i \u0111\u01b0\u1eddng d\u1eabn <code>\/data\/2.5\/weather<\/code> v\u00e0 tham s\u1ed1 trong t\u00e0i li\u1ec7u API; t\u00ean th\u00e0nh ph\u1ed1 c\u00f3 th\u1ec3 th\u00eam m\u00e3 qu\u1ed1c gia nh\u01b0 <code>q=hanoi,vn<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1515\" height=\"875\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-404-da-che-key.webp\" alt=\"Node HTTP Request trong n8n b\u00e1o l\u1ed7i 404 The resource you are requesting could not be found khi g\u1ecdi OpenWeatherMap v\u1edbi t\u00ean th\u00e0nh ph\u1ed1 sai, API key \u0111\u00e3 \u0111\u01b0\u1ee3c che\" class=\"wp-image-131503\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-404-da-che-key.webp 1515w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-404-da-che-key-300x173.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-404-da-che-key-1024x591.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-loi-404-da-che-key-768x444.webp 768w\" sizes=\"(max-width: 1515px) 100vw, 1515px\" \/><\/figure>\n\n\n\n<h3 id=\"L\u1ed7i_429:_g\u1ecdi_API_qu\u00e1_nhanh\">L\u1ed7i 429: g\u1ecdi API qu\u00e1 nhanh<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Workflow ch\u1ea1y d\u00e0y ho\u1eb7c x\u1eed l\u00fd nhi\u1ec1u item c\u00f9ng l\u00fac d\u1ec5 v\u01b0\u1ee3t gi\u1edbi h\u1ea1n c\u1ee7a g\u00f3i API, node b\u00e1o &#8220;The service is receiving too many requests from you&#8221;. M\u1edf Options &gt; Batching, \u0111\u1eb7t Items per Batch v\u00e0 Batch Interval (ms); v\u00ed d\u1ee5 1 item m\u1ed7i 1.000 ms l\u00e0 m\u1ed9t request m\u1ed7i gi\u00e2y. V\u1edbi l\u1ecbch ch\u1ea1y, d\u00f9ng Schedule Trigger \u1edf chu k\u1ef3 ph\u00f9 h\u1ee3p v\u1edbi h\u1ea1n m\u1ee9c thay v\u00ec ch\u1ea1y li\u00ean t\u1ee5c.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1172\" height=\"993\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-4.jpeg\" alt=\"Node HTTP Request trong n8n b\u00e1o l\u1ed7i 429 The service is receiving too many requests from you, Full message g\u1ee3i \u00fd gi\u00e3n request b\u1eb1ng batching trong Options\" class=\"wp-image-118365\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-4.jpeg 1172w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-4-300x254.jpeg 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-4-1024x868.jpeg 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-4-768x651.jpeg 768w\" sizes=\"(max-width: 1172px) 100vw, 1172px\" \/><\/figure>\n\n\n\n<h3 id=\"L\u1ed7i_500:_m\u00e1y_ch\u1ee7_API_g\u1eb7p_s\u1ef1_c\u1ed1\">L\u1ed7i 500: m\u00e1y ch\u1ee7 API g\u1eb7p s\u1ef1 c\u1ed1<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">M\u00e3 500 k\u00e8m th\u00f4ng b\u00e1o &#8220;The service was not able to process your request&#8221; ngh\u0129a l\u00e0 l\u1ed7i n\u1eb1m \u1edf d\u1ecbch v\u1ee5, kh\u00f4ng ph\u1ea3i c\u1ea5u h\u00ecnh workflow. B\u1eadt Retry On Fail \u0111\u1ec3 node t\u1ef1 th\u1eed l\u1ea1i, ki\u1ec3m trang tr\u1ea1ng th\u00e1i c\u1ee7a nh\u00e0 cung c\u1ea5p, v\u00e0 ghi l\u1ea1i th\u1eddi \u0111i\u1ec3m l\u1ed7i n\u1ebfu c\u1ea7n b\u00e1o h\u1ed7 tr\u1ee3.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"961\" height=\"663\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-5.png\" alt=\"Node HTTP Request trong n8n b\u00e1o l\u1ed7i 500 The service was not able to process your request, Internal Server Error t\u1eeb ph\u00eda d\u1ecbch v\u1ee5 API\" class=\"wp-image-118366\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-5.png 961w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-5-300x207.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-5-768x530.png 768w\" sizes=\"(max-width: 961px) 100vw, 961px\" \/><\/figure>\n\n\n\n<h3 id=\"L\u1ed7i_SSL:_ch\u1ee9ng_ch\u1ec9_c\u1ee7a_API_kh\u00f4ng_h\u1ee3p_l\u1ec7\">L\u1ed7i SSL: ch\u1ee9ng ch\u1ec9 c\u1ee7a API kh\u00f4ng h\u1ee3p l\u1ec7<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">L\u1ed7i SSL x\u1ea3y ra khi n8n kh\u00f4ng x\u00e1c minh \u0111\u01b0\u1ee3c ch\u1ee9ng ch\u1ec9 c\u1ee7a m\u00e1y ch\u1ee7 API: ch\u1ee9ng ch\u1ec9 h\u1ebft h\u1ea1n, sai t\u00ean mi\u1ec1n, thi\u1ebfu ch\u1ee9ng ch\u1ec9 trung gian, ho\u1eb7c proxy c\u00f4ng ty ch\u00e8n ch\u1ee9ng ch\u1ec9 ri\u00eang.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ki\u1ec3m ch\u1ee9ng ch\u1ec9 c\u1ee7a API b\u1eb1ng tr\u00ecnh duy\u1ec7t ho\u1eb7c c\u00f4ng c\u1ee5 nh\u01b0 SSL Labs; t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 <a href=\"https:\/\/tino.vn\/blog\/ssl-certificate-la-gi\/\">ch\u1ee9ng ch\u1ec9 SSL<\/a>. T\u00f9y ch\u1ecdn Options &gt; Ignore SSL Issues trong <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.httprequest\/\" target=\"_blank\" rel=\"noopener nofollow\">node HTTP Request<\/a> ch\u1ec9 n\u00ean b\u1eadt t\u1ea1m \u0111\u1ec3 ch\u1ea9n \u0111o\u00e1n, v\u00ec n\u00f3 t\u1eaft l\u1edbp b\u1ea3o v\u1ec7 ch\u1ed1ng gi\u1ea3 m\u1ea1o m\u00e1y ch\u1ee7.<\/p>\n\n\n\n<h2 id=\"C\u00e1ch_xem_chi_ti\u1ebft_l\u1ed7i_API_trong_n8n\">C\u00e1ch xem chi ti\u1ebft l\u1ed7i API trong n8n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">n8n hi\u1ec3n th\u1ecb chi ti\u1ebft l\u1ed7i \u1edf panel OUTPUT c\u1ee7a node l\u1ed7i, g\u1ed3m Error code, Full message v\u00e0 request \u0111\u00e3 g\u1eedi. V\u1edbi workflow \u0111\u00e3 Publish, l\u1ed7i n\u1eb1m trong tab Executions thay v\u00ec tr\u00ean canvas. Khi th\u00f4ng b\u00e1o ch\u01b0a \u0111\u1ee7 \u0111\u1ec3 \u0111o\u00e1n nguy\u00ean nh\u00e2n, b\u1eadt th\u00eam t\u00f9y ch\u1ecdn tr\u1ea3 v\u1ec1 header ho\u1eb7c ch\u1ea1y l\u1ea1i \u0111\u00fang d\u1eef li\u1ec7u c\u0169:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Panel OUTPUT<\/strong>: m\u1edf node l\u1ed7i, xem Error details. Ph\u1ea7n Request cho bi\u1ebft URL, header, tham s\u1ed1 n8n \u0111\u00e3 g\u1eedi (th\u00f4ng tin nh\u1ea1y c\u1ea3m \u0111\u01b0\u1ee3c \u1ea9n).<\/li>\n\n\n<li><strong>Include Response Headers and Status<\/strong>: trong Options &gt; Response, b\u1eadt \u0111\u1ec3 nh\u1eadn c\u1ea3 m\u00e3 tr\u1ea1ng th\u00e1i v\u00e0 header, h\u1eefu \u00edch khi API b\u00e1o h\u1ea1n m\u1ee9c trong header.<\/li>\n\n\n<li><strong>Never Error<\/strong>: c\u0169ng trong Options &gt; Response, node tr\u1ea3 k\u1ebft qu\u1ea3 k\u1ec3 c\u1ea3 khi m\u00e3 kh\u00e1c 2xx, \u0111\u1ec3 node ph\u00eda sau t\u1ef1 r\u1ebd nh\u00e1nh theo m\u00e3.<\/li>\n\n\n<li><strong>Tab Executions<\/strong>: workflow \u0111\u00e3 Publish kh\u00f4ng hi\u1ec7n d\u1eef li\u1ec7u tr\u00ean canvas; m\u1edf Executions \u0111\u1ec3 xem l\u1ea7n ch\u1ea1y l\u1ed7i. Xem th\u00eam <a href=\"https:\/\/tino.vn\/blog\/cach-doc-va-hieu-execution-log-trong-n8n\/\">c\u00e1ch \u0111\u1ecdc execution log trong n8n<\/a>.<\/li>\n\n\n<li><strong>Debug in editor<\/strong>: t\u1eeb m\u1ed9t execution c\u0169, sao ch\u00e9p d\u1eef li\u1ec7u v\u00e0o editor \u0111\u1ec3 ch\u1ea1y l\u1ea1i \u0111\u00fang d\u1eef li\u1ec7u \u0111\u00e3 g\u00e2y l\u1ed7i.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"C\u00e1ch_t\u1ef1_x\u1eed_l\u00fd_l\u1ed7i_API_trong_workflow\">C\u00e1ch t\u1ef1 x\u1eed l\u00fd l\u1ed7i API trong workflow<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Workflow ch\u1ea1y t\u1ef1 \u0111\u1ed9ng c\u1ea7n c\u00f3 s\u1eb5n c\u00e1ch ph\u1ea3n \u1ee9ng khi API l\u1ed7i, v\u00ec kh\u00f4ng ai ng\u1ed3i xem canvas l\u00fac 3 gi\u1edd s\u00e1ng. n8n c\u00f3 ba l\u1edbp x\u1eed l\u00fd: th\u1eed l\u1ea1i t\u1ea1i node, r\u1ebd nh\u00e1nh khi l\u1ed7i v\u00e0 workflow b\u00e1o \u0111\u1ed9ng ri\u00eang, theo <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.httprequest\/common-issues\/\" target=\"_blank\" rel=\"noopener nofollow\">t\u00e0i li\u1ec7u node HTTP Request<\/a> v\u00e0 <a href=\"https:\/\/docs.n8n.io\/build\/flow-logic\/handle-errors-gracefully\/\" target=\"_blank\" rel=\"noopener nofollow\">h\u01b0\u1edbng d\u1eabn x\u1eed l\u00fd l\u1ed7i<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-xu-ly-loi-tu-dong-v3.webp\" alt=\"Lu\u1ed3ng x\u1eed l\u00fd m\u1ed9t request l\u1ed7i trong n8n: l\u1ed7i 429, 5xx, timeout \u0111i qua Retry On Fail, l\u1ed7i 401, 403, 404 kh\u00f4ng th\u1eed l\u1ea1i m\u00e0 c\u1ea7n s\u1eeda credential ho\u1eb7c URL; n\u1ebfu v\u1eabn l\u1ed7i, node c\u00f3 On Error Continue \u0111\u01b0a item sang nh\u00e1nh l\u1ed7i \u0111\u1ec3 c\u00e1c item kh\u00e1c ch\u1ea1y ti\u1ebfp, n\u1ebfu kh\u00f4ng th\u00ec execution th\u1ea5t b\u1ea1i v\u00e0 Error workflow b\u1eaft \u0111\u1ea7u b\u1eb1ng Error Trigger g\u1eedi c\u1ea3nh b\u00e1o qua Telegram, email\" class=\"wp-image-131587\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-xu-ly-loi-tu-dong-v3.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-xu-ly-loi-tu-dong-v3-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-xu-ly-loi-tu-dong-v3-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/loi-ket-noi-api-thuong-gap-trong-n8n-xu-ly-loi-tu-dong-v3-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Retry On Fail<\/strong> (tab Settings c\u1ee7a node): \u0111\u1eb7t Max Tries v\u00e0 Wait Between Tries (ms). D\u00f9ng cho 429, 5xx, timeout tho\u00e1ng qua; kh\u00f4ng d\u00f9ng cho 401, 403, 404.<\/li>\n\n\n<li><strong>On Error = Continue (using error output)<\/strong>: node c\u00f3 th\u00eam \u0111\u1ea7u ra l\u1ed7i \u0111\u1ec3 ghi log, g\u1eedi th\u00f4ng b\u00e1o ho\u1eb7c tr\u1ea3 d\u1eef li\u1ec7u d\u1ef1 ph\u00f2ng, c\u00e1c item kh\u00e1c v\u1eabn \u0111i ti\u1ebfp.<\/li>\n\n\n<li><strong>Error workflow<\/strong>: t\u1ea1o workflow b\u1eaft \u0111\u1ea7u b\u1eb1ng Error Trigger (g\u1eedi Telegram, email), r\u1ed3i ch\u1ecdn n\u00f3 \u1edf Settings &gt; Error workflow c\u1ee7a workflow ch\u00ednh. Node Stop and Error d\u00f9ng \u0111\u1ec3 ch\u1ee7 \u0111\u1ed9ng \u0111\u00e1nh d\u1ea5u m\u1ed9t t\u00ecnh hu\u1ed1ng l\u00e0 l\u1ed7i.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"Node_HTTP_Request_c\u00f3_b\u1ecb_l\u1ed7i_CORS_kh\u00f4ng?\">Node HTTP Request c\u00f3 b\u1ecb l\u1ed7i CORS kh\u00f4ng?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng. CORS l\u00e0 c\u01a1 ch\u1ebf c\u1ee7a tr\u00ecnh duy\u1ec7t, ki\u1ec3m so\u00e1t vi\u1ec7c m\u1ed9t trang web g\u1ecdi t\u1edbi t\u00ean mi\u1ec1n kh\u00e1c. Node HTTP Request ch\u1ea1y tr\u00ean m\u00e1y ch\u1ee7 n8n, kh\u00f4ng ch\u1ea1y trong tr\u00ecnh duy\u1ec7t, n\u00ean kh\u00f4ng b\u1ecb CORS ch\u1eb7n. Th\u00eam header <code>Access-Control-Allow-Origin<\/code> v\u00e0o request t\u1eeb n8n c\u0169ng kh\u00f4ng c\u00f3 t\u00e1c d\u1ee5ng, v\u00ec header n\u00e0y do m\u00e1y ch\u1ee7 tr\u1ea3 v\u1ec1.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CORS ch\u1ec9 li\u00ean quan khi chi\u1ec1u ng\u01b0\u1ee3c l\u1ea1i: m\u1ed9t trang web g\u1ecdi webhook c\u1ee7a n8n t\u1eeb tr\u00ecnh duy\u1ec7t v\u00e0 b\u1ecb ch\u1eb7n. Khi \u0111\u00f3 \u0111\u1eb7t t\u00f9y ch\u1ecdn Allowed Origins (CORS) trong <a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.webhook\/\" target=\"_blank\" rel=\"noopener nofollow\">node Webhook<\/a>. Chi ti\u1ebft c\u00f3 trong b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/node-webhook-trong-n8n\/\">node Webhook trong n8n<\/a>.<\/p>\n\n\n\n<h2 id=\"\u0110\u1ecdc_ti\u1ebfp_theo_t\u1eebng_l\u1ed7i\">\u0110\u1ecdc ti\u1ebfp theo t\u1eebng l\u1ed7i<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1c b\u00e0i l\u1ed7i n8n tr\u00ean blog Tino chia theo nh\u00f3m: l\u1ed7i x\u00e1c th\u1ef1c, l\u1ed7i c\u1ee7a d\u1ecbch v\u1ee5 Google, l\u1ed7i qu\u00e1 th\u1eddi gian ch\u1edd v\u00e0 l\u1ed7i hi\u1ec7u n\u0103ng. B\u1ea3ng m\u00e3 l\u1ed7i \u1edf tr\u00ean \u0111\u00e3 d\u1eabn t\u1edbi t\u1eebng b\u00e0i; danh s\u00e1ch \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau, m\u1ed7i b\u00e0i k\u00e8m v\u00ed d\u1ee5 d\u1ef1ng l\u1ea1i tr\u00ean n8n:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/tino.vn\/blog\/khac-phuc-loi-401-unauthorized-authorization-failed\/\">L\u1ed7i 401 Unauthorized<\/a>: \u0111\u1ecbnh ngh\u0129a, ph\u00e2n bi\u1ec7t 401 v\u1edbi 403, c\u00e1ch s\u1eeda tr\u00ean website, API v\u00e0 trong n8n.<\/li>\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/sua-loi-tich-hop-google-sheet-drive-voi-n8n\/\">S\u1eeda l\u1ed7i t\u00edch h\u1ee3p Google Sheets, Google Drive v\u1edbi n8n<\/a>: l\u1ed7i 403, 404, 429 v\u00e0 token h\u1ebft h\u1ea1n c\u1ee7a Google.<\/li>\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/timeout-trong-n8n\/\">Timeout trong n8n<\/a>: l\u1ed7i qu\u00e1 th\u1eddi gian ch\u1edd \u1edf node HTTP Request, webhook v\u00e0 gi\u1edbi h\u1ea1n th\u1eddi gian ch\u1ea1y workflow.<\/li>\n\n\n<li><a href=\"https:\/\/tino.vn\/blog\/tai-sao-workflow-trong-n8n-chay-cham\/\">T\u1ea1i sao workflow trong n8n ch\u1ea1y ch\u1eadm<\/a>: d\u1eef li\u1ec7u l\u1edbn, database ph\u00ecnh, c\u1ea5u h\u00ecnh m\u00e1y ch\u1ee7.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu b\u1ea1n \u0111ang d\u1ef1ng workflow \u0111\u1ea7u ti\u00ean, b\u1eaft \u0111\u1ea7u t\u1eeb <a href=\"https:\/\/tino.vn\/blog\/cach-tao-workflow-tren-n8n-co-ban\/\">c\u00e1ch t\u1ea1o workflow tr\u00ean n8n<\/a> v\u00e0 <a href=\"https:\/\/tino.vn\/blog\/cach-them-api-vao-n8n\/\">c\u00e1ch th\u00eam API v\u00e0o n8n<\/a>; ph\u1ea7n credential c\u00f3 \u1edf <a href=\"https:\/\/tino.vn\/blog\/credential-trong-n8n-la-gi\/\">b\u00e0i credential trong n8n<\/a>.<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\">Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"V\u00ec_sao_API_tr\u1ea3_v\u1ec1_HTML_thay_v\u00ec_JSON?\">V\u00ec sao API tr\u1ea3 v\u1ec1 HTML thay v\u00ec JSON?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Th\u01b0\u1eddng do request \u0111i nh\u1ea7m ch\u1ed7: sai URL n\u00ean nh\u1eadn trang l\u1ed7i c\u1ee7a m\u00e1y ch\u1ee7 web, b\u1ecb chuy\u1ec3n h\u01b0\u1edbng sang trang \u0111\u0103ng nh\u1eadp, ho\u1eb7c g\u1eb7p trang ch\u1eb7n c\u1ee7a t\u01b0\u1eddng l\u1eeda. B\u1eadt Include Response Headers and Status \u0111\u1ec3 xem m\u00e3 tr\u1ea1ng th\u00e1i v\u00e0 header Content-Type, r\u1ed3i ki\u1ec3m l\u1ea1i URL v\u00e0 x\u00e1c th\u1ef1c.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"L\u1ed7i_API_do_n8n_hay_do_d\u1ecbch_v\u1ee5_b\u00ean_kia?\">L\u1ed7i API do n8n hay do d\u1ecbch v\u1ee5 b\u00ean kia?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Nh\u00ecn m\u00e3 tr\u1ea1ng th\u00e1i: 4xx th\u01b0\u1eddng do request t\u1eeb n8n (tham s\u1ed1, x\u00e1c th\u1ef1c, t\u1ed1c \u0111\u1ed9 g\u1eedi), 5xx do d\u1ecbch v\u1ee5 b\u00ean kia. G\u1ecdi th\u1eed c\u00f9ng request b\u1eb1ng curl ho\u1eb7c Postman; n\u1ebfu curl c\u0169ng l\u1ed7i th\u00ec v\u1ea5n \u0111\u1ec1 kh\u00f4ng n\u1eb1m \u1edf c\u1ea5u h\u00ecnh node.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"n8n_Cloud_v\u00e0_n8n_t\u1ef1_host_c\u00f3_g\u1eb7p_l\u1ed7i_API_kh\u00e1c_nhau_kh\u00f4ng?\">n8n Cloud v\u00e0 n8n t\u1ef1 host c\u00f3 g\u1eb7p l\u1ed7i API kh\u00e1c nhau kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">M\u00e3 l\u1ed7i gi\u1ed1ng nhau. Kh\u00e1c bi\u1ec7t n\u1eb1m \u1edf m\u1ea1ng: b\u1ea3n t\u1ef1 host trong Docker hay g\u1eb7p ECONNREFUSED khi g\u1ecdi localhost, c\u00f2n n8n Cloud kh\u00f4ng g\u1ecdi \u0111\u01b0\u1ee3c d\u1ecbch v\u1ee5 ch\u1ec9 ch\u1ea1y trong m\u1ea1ng n\u1ed9i b\u1ed9 c\u1ee7a b\u1ea1n n\u1ebfu kh\u00f4ng m\u1edf qua tunnel.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"N\u00ean_l\u00e0m_g\u00ec_khi_\u0111\u00e3_th\u1eed_h\u1ebft_m\u00e0_l\u1ed7i_API_v\u1eabn_c\u00f2n?\">N\u00ean l\u00e0m g\u00ec khi \u0111\u00e3 th\u1eed h\u1ebft m\u00e0 l\u1ed7i API v\u1eabn c\u00f2n?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Ghi l\u1ea1i m\u00e3 l\u1ed7i, Full message, th\u1eddi \u0111i\u1ec3m v\u00e0 request (\u0111\u00e3 che key), r\u1ed3i g\u1eedi cho b\u1ed9 ph\u1eadn h\u1ed7 tr\u1ee3 c\u1ee7a nh\u00e0 cung c\u1ea5p API. Di\u1ec5n \u0111\u00e0n community.n8n.io h\u1eefu \u00edch khi l\u1ed7i n\u1eb1m \u1edf c\u00e1ch c\u1ea5u h\u00ecnh node.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"V\u00ec sao API tr\u1ea3 v\u1ec1 HTML thay v\u00ec JSON?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Th\u01b0\u1eddng do request \u0111i nh\u1ea7m ch\u1ed7: sai URL n\u00ean nh\u1eadn trang l\u1ed7i c\u1ee7a m\u00e1y ch\u1ee7 web, b\u1ecb chuy\u1ec3n h\u01b0\u1edbng sang trang \u0111\u0103ng nh\u1eadp, ho\u1eb7c g\u1eb7p trang ch\u1eb7n c\u1ee7a t\u01b0\u1eddng l\u1eeda. B\u1eadt Include Response Headers and Status \u0111\u1ec3 xem m\u00e3 tr\u1ea1ng th\u00e1i v\u00e0 header Content-Type, r\u1ed3i ki\u1ec3m l\u1ea1i URL v\u00e0 x\u00e1c th\u1ef1c.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"L\u1ed7i API do n8n hay do d\u1ecbch v\u1ee5 b\u00ean kia?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Nh\u00ecn m\u00e3 tr\u1ea1ng th\u00e1i: 4xx th\u01b0\u1eddng do request t\u1eeb n8n (tham s\u1ed1, x\u00e1c th\u1ef1c, t\u1ed1c \u0111\u1ed9 g\u1eedi), 5xx do d\u1ecbch v\u1ee5 b\u00ean kia. G\u1ecdi th\u1eed c\u00f9ng request b\u1eb1ng curl ho\u1eb7c Postman; n\u1ebfu curl c\u0169ng l\u1ed7i th\u00ec v\u1ea5n \u0111\u1ec1 kh\u00f4ng n\u1eb1m \u1edf c\u1ea5u h\u00ecnh node.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"n8n Cloud v\u00e0 n8n t\u1ef1 host c\u00f3 g\u1eb7p l\u1ed7i API kh\u00e1c nhau kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>M\u00e3 l\u1ed7i gi\u1ed1ng nhau. Kh\u00e1c bi\u1ec7t n\u1eb1m \u1edf m\u1ea1ng: b\u1ea3n t\u1ef1 host trong Docker hay g\u1eb7p ECONNREFUSED khi g\u1ecdi localhost, c\u00f2n n8n Cloud kh\u00f4ng g\u1ecdi \u0111\u01b0\u1ee3c d\u1ecbch v\u1ee5 ch\u1ec9 ch\u1ea1y trong m\u1ea1ng n\u1ed9i b\u1ed9 c\u1ee7a b\u1ea1n n\u1ebfu kh\u00f4ng m\u1edf qua tunnel.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"N\u00ean l\u00e0m g\u00ec khi \u0111\u00e3 th\u1eed h\u1ebft m\u00e0 l\u1ed7i API v\u1eabn c\u00f2n?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Ghi l\u1ea1i m\u00e3 l\u1ed7i, Full message, th\u1eddi \u0111i\u1ec3m v\u00e0 request (\u0111\u00e3 che key), r\u1ed3i g\u1eedi cho b\u1ed9 ph\u1eadn h\u1ed7 tr\u1ee3 c\u1ee7a nh\u00e0 cung c\u1ea5p API. Di\u1ec5n \u0111\u00e0n community.n8n.io h\u1eefu \u00edch khi l\u1ed7i n\u1eb1m \u1edf c\u00e1ch c\u1ea5u h\u00ecnh node.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\">Mu\u1ed1n ch\u1ea1y n8n 24\/7 m\u00e0 kh\u00f4ng t\u1ef1 c\u00e0i? <a href=\"https:\/\/tino.vn\/vps-n8n\">VPS n8n c\u1ee7a Tino<\/a> c\u00e0i s\u1eb5n n8n tr\u00ean VPS NVMe \u0111\u1eb7t t\u1ea1i Vi\u1ec7t Nam; b\u1ea1n v\u1eabn c\u00f3 quy\u1ec1n root \u0111\u1ec3 c\u1ea5u h\u00ecnh. Xem c\u1ea5u h\u00ecnh v\u00e0 gi\u00e1 tr\u00ean trang s\u1ea3n ph\u1ea9m.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>L\u1ed7i API l\u00e0 khi y\u00eau c\u1ea7u g\u1eedi t\u1edbi m\u1ed9t API th\u1ea5t b\u1ea1i: m\u00e1y ch\u1ee7 tr\u1ea3 m\u00e3 l\u1ed7i ho\u1eb7c kh\u00f4ng tr\u1ea3 l\u1eddi k\u1ecbp. M\u00e3 4xx ngh\u0129a l\u00e0 request c\u00f3 v\u1ea5n \u0111\u1ec1 (sai kh\u00f3a, sai URL, g\u1eedi qu\u00e1 nhanh), m\u00e3 5xx l\u00e0 l\u1ed7i ph\u00eda m\u00e1y ch\u1ee7 API. Trong n8n, l\u1ed7i hi\u1ec7n \u1edf node HTTP Request k\u00e8m m\u00e3 [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":131429,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-118361","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n","tag-n8n"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/118361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=118361"}],"version-history":[{"count":3,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/118361\/revisions"}],"predecessor-version":[{"id":131601,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/118361\/revisions\/131601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/131429"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=118361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=118361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=118361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}