{"id":118361,"date":"2025-08-18T15:34:53","date_gmt":"2025-08-18T08:34:53","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=118361"},"modified":"2025-08-18T15:37:39","modified_gmt":"2025-08-18T08:37:39","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":"M\u1ed9t s\u1ed1 l\u1ed7i k\u1ebft n\u1ed1i API th\u01b0\u1eddng g\u1eb7p trong n8n (nguy\u00ean nh\u00e2n &amp; c\u00e1ch kh\u1eafc ph\u1ee5c)"},"content":{"rendered":"\n<p><strong>Khi l\u00e0m vi\u1ec7c v\u1edbi<a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\" target=\"_blank\" data-type=\"post\" data-id=\"104774\" rel=\"noreferrer noopener\"> n8n<\/a>, kh\u00f4ng \u00edt ng\u01b0\u1eddi d\u00f9ng th\u01b0\u1eddng xuy\u00ean g\u1eb7p ph\u1ea3i c\u00e1c l\u1ed7i k\u1ebft n\u1ed1i <a href=\"https:\/\/tino.vn\/blog\/cach-them-api-vao-n8n\/\" target=\"_blank\" data-type=\"post\" data-id=\"104998\" rel=\"noreferrer noopener\">API<\/a> khi\u1ebfn workflow b\u1ecb gi\u00e1n \u0111o\u1ea1n, \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn hi\u1ec7u qu\u1ea3 c\u00f4ng vi\u1ec7c. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd t\u1ed5ng h\u1ee3p m\u1ed9t s\u1ed1 l\u1ed7i k\u1ebft n\u1ed1i API th\u01b0\u1eddng g\u1eb7p trong n8n, k\u00e8m theo v\u00ed d\u1ee5 minh h\u1ecda b\u1eb1ng workflow th\u1ef1c t\u1ebf \u0111\u1ec3 b\u1ea1n d\u1ec5 h\u00ecnh dung.<\/strong><\/p>\n\n\n\n<h2 id=\"Vai_tr\u00f2_c\u1ee7a_API_trong_c\u00e1c_workflow_t\u1ef1_\u0111\u1ed9ng_h\u00f3a\"><a id=\"post-118361-_lck3v1qgqvbw\"><\/a>Vai tr\u00f2 c\u1ee7a API trong c\u00e1c workflow t\u1ef1 \u0111\u1ed9ng h\u00f3a<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>K\u1ebft n\u1ed1i \u0111a n\u1ec1n t\u1ea3ng:<\/strong> API cho ph\u00e9p n8n d\u1ec5 d\u00e0ng t\u00edch h\u1ee3p v\u1edbi h\u00e0ng tr\u0103m \u1ee9ng d\u1ee5ng ph\u1ed5 bi\u1ebfn m\u00e0 kh\u00f4ng c\u1ea7n vi\u1ebft code ph\u1ee9c t\u1ea1p. \u0110i\u1ec1u n\u00e0y gi\u00fap workflow tr\u1edf n\u00ean linh ho\u1ea1t v\u00e0 c\u00f3 th\u1ec3 m\u1edf r\u1ed9ng kh\u00f4ng gi\u1edbi h\u1ea1n.<\/li>\n\n\n\n<li><strong>T\u1ef1 \u0111\u1ed9ng trao \u0111\u1ed5i d\u1eef li\u1ec7u: <\/strong>API \u0111\u1ea3m b\u1ea3o d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c truy\u1ec1n t\u1ea3i qua l\u1ea1i gi\u1eefa c\u00e1c \u1ee9ng d\u1ee5ng m\u1ed9t c\u00e1ch t\u1ef1 \u0111\u1ed9ng, nhanh ch\u00f3ng v\u00e0 ch\u00ednh x\u00e1c.<\/li>\n\n\n\n<li><strong>T\u1ed1i \u01b0u hi\u1ec7u su\u1ea5t c\u00f4ng vi\u1ec7c:<\/strong> Thay v\u00ec thao t\u00e1c th\u1ee7 c\u00f4ng tr\u00ean nhi\u1ec1u \u1ee9ng d\u1ee5ng, API cho ph\u00e9p n8n \u201cthay b\u1ea1n\u201d x\u1eed l\u00fd to\u00e0n b\u1ed9 lu\u1ed3ng c\u00f4ng vi\u1ec7c. Nh\u1edd v\u1eady, doanh nghi\u1ec7p ti\u1ebft ki\u1ec7m \u0111\u01b0\u1ee3c th\u1eddi gian, gi\u1ea3m sai s\u00f3t v\u00e0 n\u00e2ng cao hi\u1ec7u su\u1ea5t.<\/li>\n\n\n\n<li><strong>T\u0103ng kh\u1ea3 n\u0103ng m\u1edf r\u1ed9ng h\u1ec7 th\u1ed1ng: <\/strong>Th\u00f4ng qua API, workflow trong n8n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng m\u1edf r\u1ed9ng khi th\u00eam \u1ee9ng d\u1ee5ng m\u1edbi. B\u1ea1n ch\u1ec9 c\u1ea7n k\u1ebft n\u1ed1i API m\u00e0 kh\u00f4ng c\u1ea7n thay \u0111\u1ed5i to\u00e0n b\u1ed9 c\u1ea5u tr\u00fac workflow.<\/li>\n\n\n\n<li><strong>B\u1ea3o m\u1eadt v\u00e0 ki\u1ec3m so\u00e1t truy c\u1eadp: <\/strong>API th\u01b0\u1eddng \u0111i k\u00e8m v\u1edbi c\u00e1c c\u01a1 ch\u1ebf x\u00e1c th\u1ef1c (API Key, OAuth2, Token) gi\u00fap ki\u1ec3m so\u00e1t v\u00e0 b\u1ea3o m\u1eadt khi \u1ee9ng d\u1ee5ng truy c\u1eadp d\u1eef li\u1ec7u. Trong n8n, vi\u1ec7c s\u1eed d\u1ee5ng Credential gi\u00fap qu\u1ea3n l\u00fd t\u1eadp trung, h\u1ea1n ch\u1ebf r\u1ee7i ro l\u1ed9 th\u00f4ng tin.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/loi-ket-noi-api-thuong-gap-trong-n8n-1.png\" alt=\"Vai tr\u00f2 c\u1ee7a API trong c\u00e1c workflow t\u1ef1 \u0111\u1ed9ng h\u00f3a\" class=\"wp-image-118369\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/loi-ket-noi-api-thuong-gap-trong-n8n-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/loi-ket-noi-api-thuong-gap-trong-n8n-1-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Vai tr\u00f2 c\u1ee7a API trong c\u00e1c workflow t\u1ef1 \u0111\u1ed9ng h\u00f3a<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 id=\"V\u00ec_sao_k\u1ebft_n\u1ed1i_API_th\u01b0\u1eddng_d\u1ec5_g\u1eb7p_l\u1ed7i?\"><a id=\"post-118361-_73ecysl4dtm\"><\/a>V\u00ec sao k\u1ebft n\u1ed1i API th\u01b0\u1eddng d\u1ec5 g\u1eb7p l\u1ed7i?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>X\u00e1c th\u1ef1c ph\u1ee9c t\u1ea1p: <\/strong>Nhi\u1ec1u API y\u00eau c\u1ea7u c\u01a1 ch\u1ebf x\u00e1c th\u1ef1c kh\u1eaft khe nh\u01b0 API Key, OAuth2, Bearer Token. N\u1ebfu nh\u1eadp sai key, token h\u1ebft h\u1ea1n ho\u1eb7c c\u1ea5u h\u00ecnh ch\u01b0a \u0111\u00fang, request s\u1ebd b\u1ecb t\u1eeb ch\u1ed1i ngay l\u1eadp t\u1ee9c.<\/li>\n\n\n\n<li><strong>Endpoint ho\u1eb7c tham s\u1ed1 kh\u00f4ng ch\u00ednh x\u00e1c: <\/strong>Ch\u1ec9 c\u1ea7n sai m\u1ed9t k\u00fd t\u1ef1 trong URL ho\u1eb7c thi\u1ebfu tham s\u1ed1 query l\u00e0 API s\u1ebd tr\u1ea3 v\u1ec1 l\u1ed7i (th\u01b0\u1eddng l\u00e0 404 Not Found ho\u1eb7c 400 Bad Request). \u0110\u00e2y l\u00e0 l\u1ed7i ph\u1ed5 bi\u1ebfn khi ng\u01b0\u1eddi d\u00f9ng m\u1edbi l\u00e0m quen.<\/li>\n\n\n\n<li><strong>H\u1ea1n ch\u1ebf t\u1eeb ph\u00eda server API:<\/strong> M\u1ed9t s\u1ed1 API gi\u1edbi h\u1ea1n s\u1ed1 l\u01b0\u1ee3ng request (rate limit) ho\u1eb7c ch\u1eb7n truy c\u1eadp t\u1eeb nh\u1eefng IP\/\u1ee9ng d\u1ee5ng kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p. Khi v\u01b0\u1ee3t qu\u00e1 gi\u1edbi h\u1ea1n, request s\u1ebd b\u1ecb tr\u1ea3 v\u1ec1 l\u1ed7i 429 Too Many Requests.<\/li>\n\n\n\n<li><strong>S\u1ef1 c\u1ed1 m\u1ea1ng v\u00e0 th\u1eddi gian ph\u1ea3n h\u1ed3i: <\/strong>N\u1ebfu k\u1ebft n\u1ed1i m\u1ea1ng y\u1ebfu, server API qu\u00e1 t\u1ea3i ho\u1eb7c ph\u1ea3n h\u1ed3i ch\u1eadm, n8n c\u00f3 th\u1ec3 b\u00e1o l\u1ed7i timeout. \u0110i\u1ec1u n\u00e0y th\u01b0\u1eddng x\u1ea3y ra v\u1edbi API qu\u1ed1c t\u1ebf ho\u1eb7c khi server \u0111ang b\u1ea3o tr\u00ec.<\/li>\n\n\n\n<li><strong>V\u1ea5n \u0111\u1ec1 b\u1ea3o m\u1eadt (SSL, CORS):<\/strong> API c\u00f3 th\u1ec3 y\u00eau c\u1ea7u <a href=\"https:\/\/tino.vn\/blog\/docs\/cai-dat-chung-chi-ssl-mien-phi-tren-hosting\/\" target=\"_blank\" data-type=\"ht_kb\" data-id=\"62\" rel=\"noreferrer noopener\">ch\u1ee9ng ch\u1ec9 SSL<\/a> h\u1ee3p l\u1ec7 ho\u1eb7c gi\u1edbi h\u1ea1n domain \u0111\u01b0\u1ee3c ph\u00e9p g\u1ecdi. Khi n8n kh\u00f4ng \u0111\u00e1p \u1ee9ng c\u00e1c \u0111i\u1ec1u ki\u1ec7n n\u00e0y, l\u1ed7i SSL Error ho\u1eb7c CORS Error s\u1ebd xu\u1ea5t hi\u1ec7n.<\/li>\n\n\n\n<li><strong>\u0110\u1ecbnh d\u1ea1ng d\u1eef li\u1ec7u kh\u00f4ng kh\u1edbp:<\/strong> Kh\u00f4ng ph\u1ea3i API n\u00e0o c\u0169ng tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u JSON chu\u1ea9n. N\u1ebfu d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 b\u1ecb sai \u0111\u1ecbnh d\u1ea1ng ho\u1eb7c kh\u00e1c v\u1edbi c\u1ea5u tr\u00fac m\u00e0 workflow mong \u0111\u1ee3i, n8n s\u1ebd b\u00e1o l\u1ed7i khi parse d\u1eef li\u1ec7u.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/loi-ket-noi-api-thuong-gap-trong-n8n-2.png\" alt=\"V\u00ec sao k\u1ebft n\u1ed1i API th\u01b0\u1eddng d\u1ec5 g\u1eb7p l\u1ed7i?\" class=\"wp-image-118370\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/loi-ket-noi-api-thuong-gap-trong-n8n-2.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/loi-ket-noi-api-thuong-gap-trong-n8n-2-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>V\u00ec sao k\u1ebft n\u1ed1i API th\u01b0\u1eddng d\u1ec5 g\u1eb7p l\u1ed7i?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 id=\"T\u00ecm_hi\u1ec3u_m\u1ed9t_s\u1ed1_l\u1ed7i_k\u1ebft_n\u1ed1i_API_th\u01b0\u1eddng_g\u1eb7p_trong_n8n_(nguy\u00ean_nh\u00e2n_&amp;_c\u00e1ch_kh\u1eafc_ph\u1ee5c)\"><a id=\"post-118361-_xoffpujca19n\"><\/a>T\u00ecm hi\u1ec3u m\u1ed9t s\u1ed1 l\u1ed7i k\u1ebft n\u1ed1i API th\u01b0\u1eddng g\u1eb7p trong n8n (nguy\u00ean nh\u00e2n &amp; c\u00e1ch kh\u1eafc ph\u1ee5c)<\/h2>\n\n\n\n<p>Gi\u1ea3 s\u1eed, Tino c\u00f3 m\u1ed9t workflow nh\u01b0 sau:<\/p>\n\n\n\n<p>&#8211; L\u1ea5y d\u1eef li\u1ec7u th\u1eddi ti\u1ebft t\u1eeb API c\u1ee7a <a href=\"https:\/\/openweathermap.org\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/openweathermap.org\/\" rel=\"noreferrer noopener nofollow\">Openweathermap<\/a>.<\/p>\n\n\n\n<p>&#8211; L\u1ecdc th\u00f4ng tin c\u1ea7n thi\u1ebft.<\/p>\n\n\n\n<p>&#8211; L\u01b0u k\u1ebft qu\u1ea3 ra Google Sheet.<\/p>\n\n\n\n<p>C\u1ea5u tr\u00fac workflow: Trigger node \u2192 HTTP Request Node (G\u1ecdi API th\u1eddi ti\u1ebft) \u2192 Code (X\u1eed l\u00fd d\u1eef li\u1ec7u JSON t\u1eeb API) \u2192 Google Sheets Node (L\u01b0u d\u1eef li\u1ec7u \u0111\u00e3 x\u1eed l\u00fd).<\/p>\n\n\n\n<p>Trong \u0111\u00f3: URL c\u1ee7a API l\u00e0: <code>https:\/\/api.openweathermap.org\/data\/2.5\/weather?q=hanoi&amp;appid=YOUR_API_KEY<\/code><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><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\" 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\" \/><figcaption class=\"wp-element-caption\"><strong>Workflow m\u1eabu<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"L\u1ed7i_401_Unauthorized_(Authorization_failed)\"><a id=\"post-118361-_49jdudrc7yvq\"><\/a><strong>L\u1ed7i 401 Unauthorized (Authorization failed)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u00f4 t\u1ea3 l\u1ed7i trong workflow:<\/strong> Node HTTP Request tr\u1ea3 v\u1ec1 th\u00f4ng b\u00e1o Authorization failed. Workflow kh\u00f4ng l\u1ea5y \u0111\u01b0\u1ee3c d\u1eef li\u1ec7u JSON th\u1eddi ti\u1ebft.<\/li>\n\n\n\n<li><strong>Nguy\u00ean nh\u00e2n:<\/strong> API key kh\u00f4ng h\u1ee3p l\u1ec7, h\u1ebft h\u1ea1n ho\u1eb7c b\u1ecb thu h\u1ed3i. Trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y, gi\u1ea3 \u0111\u1ecbnh b\u1ea1n nh\u1eadp URL thi\u1ebfu ph\u1ea7n <strong>Query Parameters<\/strong> (bao g\u1ed3m <strong>&amp;appid=YOUR_API_KEY<\/strong>) ho\u1eb7c nh\u1eadp sai API Key.<\/li>\n\n\n\n<li><strong>C\u00e1ch kh\u1eafc ph\u1ee5c: <\/strong>C\u1eadp nh\u1eadt Query Parameters ch\u00ednh x\u00e1c.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1514\" height=\"894\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-2.png\" alt=\"L\u1ed7i 401 Unauthorized (Authorization failed)\" class=\"wp-image-118363\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-2.png 1514w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-2-300x177.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-2-1024x605.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-2-768x453.png 768w\" sizes=\"(max-width: 1514px) 100vw, 1514px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u1ed7i 401 Unauthorized (Authorization failed)<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"L\u1ed7i_404_Not_Found_(Sai_Endpoint_ho\u1eb7c_tham_s\u1ed1_query)\"><a id=\"post-118361-_uzohu3h99rc6\"><\/a><strong>L\u1ed7i 404 Not Found (Sai Endpoint ho\u1eb7c tham s\u1ed1 query)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u00f4 t\u1ea3 l\u1ed7i trong workflow: <\/strong>Node HTTP Request tr\u1ea3 v\u1ec1 m\u00e3 l\u1ed7i 404, th\u00f4ng b\u00e1o \u201c<strong>The resource you are requesting could not be found<\/strong>\u201d. D\u1eef li\u1ec7u kh\u00f4ng \u0111\u01b0\u1ee3c l\u1ea5y, workflow kh\u00f4ng ti\u1ebfn h\u00e0nh x\u1eed l\u00fd \u1edf node ti\u1ebfp theo.<\/li>\n\n\n\n<li><strong>Nguy\u00ean nh\u00e2n:<\/strong> Endpoint API sai ho\u1eb7c tham s\u1ed1 query kh\u00f4ng h\u1ee3p l\u1ec7, v\u00ed d\u1ee5: T\u00ean th\u00e0nh ph\u1ed1 sai ch\u00ednh t\u1ea3 (gi\u1ea3 \u0111\u1ecbnh <strong>q=hanio<\/strong> thay v\u00ec <strong>q=hanoi<\/strong>) ho\u1eb7c s\u1eed d\u1ee5ng endpoint c\u0169 kh\u00f4ng c\u00f2n h\u1ed7 tr\u1ee3 (OpenWeatherMap c\u00f3 th\u1ec3 thay \u0111\u1ed5i API version).<\/li>\n\n\n\n<li><strong>C\u00e1ch kh\u1eafc ph\u1ee5c:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Ki\u1ec3m tra t\u00e0i li\u1ec7u API ch\u00ednh th\u1ee9c c\u1ee7a trang web \u0111\u1ec3 x\u00e1c nh\u1eadn endpoint \u0111\u00fang (v\u00ed d\u1ee5:<strong> \/data\/2.5\/weather<\/strong> l\u00e0 \u0111\u00fang cho th\u1eddi ti\u1ebft hi\u1ec7n t\u1ea1i). N\u1ebfu endpoint thay \u0111\u1ed5i, c\u1eadp nh\u1eadt URL m\u1edbi theo t\u00e0i li\u1ec7u.<\/li>\n\n\n\n<li>\u0110\u1ea3m b\u1ea3o <strong>q=hanoi<\/strong> (vi\u1ebft \u0111\u00fang ch\u00ednh t\u1ea3, kh\u00f4ng d\u1ea5u v\u00e0 th\u00eam ,vn n\u1ebfu c\u1ea7n \u0111\u1ec3 ch\u1ec9 \u0111\u1ecbnh qu\u1ed1c gia: <strong>q=hanoi,vn<\/strong>).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1515\" height=\"875\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-3.png\" alt=\"L\u1ed7i 404 Not Found (Sai Endpoint ho\u1eb7c tham s\u1ed1 query)\" class=\"wp-image-118364\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-3.png 1515w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-3-300x173.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-3-1024x591.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-3-768x444.png 768w\" sizes=\"(max-width: 1515px) 100vw, 1515px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u1ed7i 404 Not Found (Sai Endpoint ho\u1eb7c tham s\u1ed1 query)<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"L\u1ed7i_429_Too_Many_Requests_(Qu\u00e1_nhi\u1ec1u_y\u00eau_c\u1ea7u)\"><a id=\"post-118361-_kzu6765hx0ex\"><\/a><strong>L\u1ed7i 429 Too Many Requests (Qu\u00e1 nhi\u1ec1u y\u00eau c\u1ea7u)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u00f4 t\u1ea3 l\u1ed7i trong workflow: <\/strong>Node HTTP Request tr\u1ea3 v\u1ec1 m\u00e3 l\u1ed7i 429 sau khi workflow ch\u1ea1y nhi\u1ec1u l\u1ea7n. API t\u1eeb ch\u1ed1i y\u00eau c\u1ea7u, d\u1eabn \u0111\u1ebfn kh\u00f4ng c\u00f3 d\u1eef li\u1ec7u cho node sau x\u1eed l\u00fd.<\/li>\n\n\n\n<li><strong>Nguy\u00ean nh\u00e2n: <\/strong>V\u01b0\u1ee3t qu\u00e1 gi\u1edbi h\u1ea1n g\u1ecdi API (OpenWeatherMap free plan gi\u1edbi h\u1ea1n kho\u1ea3ng 60 calls\/ph\u00fat ho\u1eb7c 1 tri\u1ec7u calls\/th\u00e1ng). Gi\u1ea3 \u0111\u1ecbnh workflow \u0111\u01b0\u1ee3c trigger li\u00ean t\u1ee5c (v\u00ed d\u1ee5: qua Cron node m\u1ed7i gi\u00e2y) g\u00e2y qu\u00e1 t\u1ea3i.<\/li>\n\n\n\n<li>C\u00e1ch kh\u1eafc ph\u1ee5c:\n<ul class=\"wp-block-list\">\n<li>Ki\u1ec3m tra gi\u1edbi h\u1ea1n API. N\u1ebfu c\u1ea7n, chuy\u1ec3n sang plan tr\u1ea3 ph\u00ed ho\u1eb7c s\u1eed d\u1ee5ng API kh\u00e1c thay th\u1ebf.<\/li>\n\n\n\n<li>Th\u00eam node &#8220;Wait&#8221; \u0111\u1ec3 gi\u00e3n c\u00e1ch y\u00eau c\u1ea7u (v\u00ed d\u1ee5: delay 1 ph\u00fat gi\u1eefa c\u00e1c call).<\/li>\n\n\n\n<li>Th\u00eam node &#8220;If&#8221; \u0111\u1ec3 ki\u1ec3m tra n\u1ebfu d\u1eef li\u1ec7u tr\u01b0\u1edbc khi g\u1ecdi API m\u1edbi, gi\u1ea3m s\u1ed1 l\u01b0\u1ee3ng call kh\u00f4ng c\u1ea7n thi\u1ebft.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1172\" height=\"993\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-4.jpeg\" alt=\"L\u1ed7i 429 Too Many Requests (Qu\u00e1 nhi\u1ec1u y\u00eau c\u1ea7u)\" 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\" \/><figcaption class=\"wp-element-caption\"><strong>L\u1ed7i 429 Too Many Requests (Qu\u00e1 nhi\u1ec1u y\u00eau c\u1ea7u)<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"L\u1ed7i_500_Internal_Server_Error_(L\u1ed7i_m\u00e1y_ch\u1ee7_n\u1ed9i_b\u1ed9)\"><a id=\"post-118361-_gzrg198999gj\"><\/a><strong>L\u1ed7i 500 Internal Server Error (L\u1ed7i m\u00e1y ch\u1ee7 n\u1ed9i b\u1ed9)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u00f4 t\u1ea3 l\u1ed7i trong workflow<\/strong>: Node HTTP Request tr\u1ea3 v\u1ec1 m\u00e3 l\u1ed7i 500, v\u1edbi th\u00f4ng b\u00e1o chung chung t\u1eeb server. Workflow th\u1ea5t b\u1ea1i, kh\u00f4ng l\u1ea5y \u0111\u01b0\u1ee3c d\u1eef li\u1ec7u.<\/li>\n\n\n\n<li><strong>Nguy\u00ean nh\u00e2n: <\/strong>L\u1ed7i t\u1eeb ph\u00eda server \u1ee9ng d\u1ee5ng b\u1ea1n mu\u1ed1n g\u1ecdi API (v\u00ed d\u1ee5: b\u1ea3o tr\u00ec, overload t\u1ea1m th\u1eddi ho\u1eb7c bug n\u1ed9i b\u1ed9). Kh\u00f4ng ph\u1ea3i do c\u1ea5u h\u00ecnh workflow c\u1ee7a b\u1ea1n.<\/li>\n\n\n\n<li><strong>C\u00e1ch kh\u1eafc ph\u1ee5c:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Th\u1eed l\u1ea1i sau v\u00e0i ph\u00fat ho\u1eb7c gi\u1edd, v\u00ec l\u1ed7i 500 th\u01b0\u1eddng t\u1ea1m th\u1eddi.<\/li>\n\n\n\n<li>Ki\u1ec3m tra tr\u1ea1ng th\u00e1i server \u1ee9ng d\u1ee5ng ho\u1eb7c di\u1ec5n \u0111\u00e0n h\u1ed7 tr\u1ee3 \u0111\u1ec3 xem c\u00f3 downtime kh\u00f4ng.<\/li>\n\n\n\n<li>S\u1eed d\u1ee5ng node &#8220;Error Trigger&#8221; ho\u1eb7c &#8220;Loop Over Items&#8221; v\u1edbi \u0111i\u1ec1u ki\u1ec7n retry n\u1ebfu l\u1ed7i 500.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"961\" height=\"663\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-5.png\" alt=\"L\u1ed7i 500 Internal Server Error (L\u1ed7i m\u00e1y ch\u1ee7 n\u1ed9i b\u1ed9)\" 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\" \/><figcaption class=\"wp-element-caption\"><strong>L\u1ed7i 500 Internal Server Error (L\u1ed7i m\u00e1y ch\u1ee7 n\u1ed9i b\u1ed9)<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"L\u1ed7i_SSL\"><a id=\"post-118361-_thkda3aq0tgm\"><\/a><strong>L\u1ed7i SSL<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u00f4 t\u1ea3 l\u1ed7i trong workflow: <\/strong>Node HTTP Request th\u1ea5t b\u1ea1i v\u1edbi th\u00f4ng b\u00e1o l\u1ed7i li\u00ean quan \u0111\u1ebfn SSL.<\/li>\n\n\n\n<li><strong>Nguy\u00ean nh\u00e2n:<\/strong>\n<ul class=\"wp-block-list\">\n<li>API endpoint s\u1eed d\u1ee5ng ch\u1ee9ng ch\u1ec9 SSL kh\u00f4ng h\u1ee3p l\u1ec7 ho\u1eb7c h\u1ebft h\u1ea1n (gi\u1ea3 \u0111\u1ecbnh server g\u1eb7p s\u1ef1 c\u1ed1 c\u1eadp nh\u1eadt ch\u1ee9ng ch\u1ec9).<\/li>\n\n\n\n<li>C\u1ea5u h\u00ecnh proxy ho\u1eb7c firewall c\u1ee7a b\u1ea1n ch\u1eb7n k\u1ebft n\u1ed1i SSL an to\u00e0n.<\/li>\n\n\n\n<li>n8n ch\u1ea1y tr\u00ean m\u00f4i tr\u01b0\u1eddng kh\u00f4ng h\u1ed7 tr\u1ee3 SSL m\u1edbi nh\u1ea5t (v\u00ed d\u1ee5: phi\u00ean b\u1ea3n n8n c\u0169 kh\u00f4ng t\u01b0\u01a1ng th\u00edch v\u1edbi TLS 1.3).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1467\" height=\"896\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-6.png\" alt=\"L\u1ed7i SSL\" class=\"wp-image-118367\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-6.png 1467w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-6-300x183.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-6-1024x625.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-6-768x469.png 768w\" sizes=\"(max-width: 1467px) 100vw, 1467px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u1ed7i SSL<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>C\u00e1ch kh\u1eafc ph\u1ee5c:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Ki\u1ec3m tra tr\u1ea1ng th\u00e1i ch\u1ee9ng ch\u1ec9 SSL c\u1ee7a \u1ee9ng d\u1ee5ng b\u1ea1n mu\u1ed1n g\u1ecdi API b\u1eb1ng c\u00f4ng c\u1ee5 nh\u01b0 SSL Labs.<\/li>\n\n\n\n<li>N\u1ebfu ch\u1ee9ng ch\u1ec9 h\u1ebft h\u1ea1n, ch\u1edd nh\u00e0 cung c\u1ea5p c\u1eadp nh\u1eadt (th\u01b0\u1eddng l\u1ed7i n\u00e0y do server API, kh\u00f4ng ph\u1ea3i workflow).<\/li>\n\n\n\n<li>C\u1eadp nh\u1eadt n8n l\u00ean phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o t\u01b0\u01a1ng th\u00edch v\u1edbi TLS 1.2\/1.3.<\/li>\n\n\n\n<li>N\u1ebfu ch\u1ea1y local, d\u00f9ng proxy ho\u1eb7c server trung gian \u0111\u1ec3 x\u1eed l\u00fd request.<\/li>\n\n\n\n<li>Trong HTTP Request Node, t\u1eaft t\u00f9y ch\u1ecdn <strong>SSL Certificates<\/strong> \u0111\u1ec3 b\u1ecf qua x\u00e1c minh SSL.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1236\" height=\"736\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-7.png\" alt=\"L\u1ed7i SSL\" class=\"wp-image-118368\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-7.png 1236w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-7-300x179.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-7-1024x610.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/08\/word-image-118361-7-768x457.png 768w\" sizes=\"(max-width: 1236px) 100vw, 1236px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u1ed7i SSL<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 id=\"L\u1ed7i_CORS_(Cross-Origin_Resource_Sharing)\"><a id=\"post-118361-_65y88k5t0ptu\"><\/a><strong>L\u1ed7i CORS (Cross-Origin Resource Sharing)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u00f4 t\u1ea3 l\u1ed7i trong workflow: <\/strong>Node HTTP Request tr\u1ea3 v\u1ec1 l\u1ed7i CORS, v\u00ed d\u1ee5: &#8220;No &#8216;Access-Control-Allow-Origin&#8217; header is present&#8221; trong log ho\u1eb7c browser console (n\u1ebfu ch\u1ea1y n8n tr\u00ean tr\u00ecnh duy\u1ec7t). D\u1eef li\u1ec7u kh\u00f4ng \u0111\u01b0\u1ee3c l\u1ea5y, workflow d\u1eebng l\u1ea1i.<\/li>\n\n\n\n<li><strong>Nguy\u00ean nh\u00e2n:<\/strong>\n<ul class=\"wp-block-list\">\n<li>API c\u1ee7a \u1ee9ng d\u1ee5ng kh\u00f4ng cho ph\u00e9p y\u00eau c\u1ea7u tr\u1ef1c ti\u1ebfp t\u1eeb domain m\u00e0 n8n \u0111ang ch\u1ea1y (gi\u1ea3 \u0111\u1ecbnh b\u1ea1n ch\u1ea1y n8n local t\u1ea1i http:\/\/localhost ho\u1eb7c domain kh\u00f4ng \u0111\u01b0\u1ee3c whitelist).<\/li>\n\n\n\n<li>Y\u00eau c\u1ea7u HTTP Request \u0111\u01b0\u1ee3c g\u1eedi v\u1edbi header kh\u00f4ng \u0111\u01b0\u1ee3c server API ch\u1ea5p nh\u1eadn (v\u00ed d\u1ee5: thi\u1ebfu header ho\u1eb7c sai c\u1ea5u h\u00ecnh).<\/li>\n\n\n\n<li>CORS l\u00e0 v\u1ea5n \u0111\u1ec1 t\u1eeb ph\u00eda server API, kh\u00f4ng ph\u1ea3i l\u1ed7i c\u1ee7a workflow, nh\u01b0ng \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn kh\u1ea3 n\u0103ng truy c\u1eadp d\u1eef li\u1ec7u.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>C\u00e1ch kh\u1eafc ph\u1ee5c:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Ki\u1ec3m tra t\u00e0i li\u1ec7u API c\u1ee7a \u1ee9ng d\u1ee5ng \u0111\u1ec3 x\u00e1c nh\u1eadn ch\u00ednh s\u00e1ch CORS.<\/li>\n\n\n\n<li>Ch\u1ea1y n8n tr\u00ean m\u1ed9t domain \u0111\u01b0\u1ee3c whitelist b\u1edfi API (v\u00ed d\u1ee5: tri\u1ec3n khai n8n tr\u00ean server v\u1edbi domain c\u00f4ng khai thay v\u00ec localhost).<\/li>\n\n\n\n<li>S\u1eed d\u1ee5ng proxy server (nh\u01b0 ngrok ho\u1eb7c m\u1ed9t API gateway) \u0111\u1ec3 g\u1eedi y\u00eau c\u1ea7u thay v\u00ec g\u1ecdi tr\u1ef1c ti\u1ebfp t\u1eeb n8n. C\u1ea5u h\u00ecnh proxy trong HTTP Request node, v\u00ed d\u1ee5: thay URL th\u00e0nh https:\/\/your-proxy.com\/api.openweathermap.org\/data\/2.5\/weather?q=hanoi&amp;appid=[key]&amp;units=metric.<\/li>\n\n\n\n<li>Th\u00eam header t\u00f9y ch\u1ec9nh trong HTTP Request node (n\u1ebfu t\u00e0i li\u1ec7u API cho ph\u00e9p), v\u00ed d\u1ee5: Access-Control-Allow-Origin: * (l\u01b0u \u00fd: server API ph\u1ea3i h\u1ed7 tr\u1ee3, kh\u00f4ng ph\u1ea3i client t\u1ef1 th\u00eam).<\/li>\n\n\n\n<li>Test l\u1ea1i workflow sau khi \u00e1p d\u1ee5ng proxy v\u00e0 ki\u1ec3m tra response trong log n8n.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 id=\"K\u1ebft_lu\u1eadn\"><a id=\"post-118361-_f1fcpi8hubug\"><\/a><strong>K\u1ebft lu\u1eadn<\/strong><\/h3>\n\n\n\n<p>T\u00f3m lai, c\u00e1c l\u1ed7i khi k\u1ebft n\u1ed1i API ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 x\u1eed l\u00fd n\u1ebfu b\u1ea1n n\u1eafm r\u00f5 nguy\u00ean nh\u00e2n v\u00e0 c\u00e1ch kh\u1eafc ph\u1ee5c. Hy v\u1ecdng v\u1edbi workflow minh h\u1ecda, b\u1ea1n s\u1ebd hi\u1ec3u h\u01a1n v\u1ec1 c\u00e1ch x\u1eed l\u00fd nh\u1eefng s\u1ef1 c\u1ed1 t\u01b0\u01a1ng t\u1ef1 v\u00e0 t\u1ed1i \u01b0u hi\u1ec7u qu\u1ea3 khi l\u00e0m vi\u1ec7c v\u1edbi n8n.<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\"><a id=\"post-118361-_98a9bre3qkk5\"><\/a>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=\"T\u00f4i_n\u00ean_l\u00e0m_g\u00ec_n\u1ebfu_l\u1ed7i_API_kh\u00f4ng_\u0111\u01b0\u1ee3c_gi\u1ea3i_quy\u1ebft?\">T\u00f4i n\u00ean l\u00e0m g\u00ec n\u1ebfu l\u1ed7i API kh\u00f4ng \u0111\u01b0\u1ee3c gi\u1ea3i quy\u1ebft?<\/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>Trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y, b\u1ea1n h\u00e3y tham gia c\u00e1c di\u1ec5n \u0111\u00e0n v\u1ec1 n8n v\u00e0 t\u00ecm s\u1ef1 h\u1ed7 tr\u1ee3 t\u1ed1t h\u01a1n t\u1eeb c\u1ed9ng \u0111\u1ed3ng. N\u1ebfu c\u00f3 th\u1ec3, h\u00e3y li\u00ean h\u1ec7 v\u1edbi \u0111\u1ed9i ng\u0169 k\u1ef9 thu\u1eadt c\u1ee7a nh\u00e0 cung c\u1ea5p API \u0111\u1ec3 h\u1ecd h\u1ed7 tr\u1ee3 t\u1ed1t h\u01a1n.<\/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\u00e0m_th\u1ebf_n\u00e0o_\u0111\u1ec3_tr\u00e1nh_v\u01b0\u1ee3t_qu\u00e1_gi\u1edbi_h\u1ea1n_request_(429_Too_Many_Requests)?\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 tr\u00e1nh v\u01b0\u1ee3t qu\u00e1 gi\u1edbi h\u1ea1n request (429 Too Many Requests)?<\/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>B\u1ea1n c\u00f3 th\u1ec3 gi\u1ea3m t\u1ea7n su\u1ea5t g\u1ecdi API b\u1eb1ng c\u00e1ch th\u00eam Wait Node ho\u1eb7c c\u1ea5u h\u00ecnh Trigger ch\u1ea1y theo kho\u1ea3ng th\u1eddi gian d\u00e0i h\u01a1n. N\u1ebfu c\u1ea7n g\u1ecdi nhi\u1ec1u h\u01a1n, h\u00e3y n\u00e2ng c\u1ea5p g\u00f3i API tr\u1ea3 ph\u00ed.<\/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=\"V\u00ec_sao_API_tr\u1ea3_v\u1ec1_d\u1eef_li\u1ec7u_HTML_thay_v\u00ec_JSON?\">V\u00ec sao API tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u 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>\u0110i\u1ec1u n\u00e0y th\u01b0\u1eddng x\u1ea3y ra khi request b\u1ecb l\u1ed7i (v\u00ed d\u1ee5 sai API Key ho\u1eb7c endpoint). Khi \u0111\u00f3, server tr\u1ea3 v\u1ec1 m\u1ed9t trang l\u1ed7i HTML thay v\u00ec JSON. B\u1ea1n c\u1ea7n ki\u1ec3m tra status code trong HTTP Request Node \u0111\u1ec3 bi\u1ebft ch\u00ednh x\u00e1c nguy\u00ean nh\u00e2n.<\/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\u00e0m_th\u1ebf_n\u00e0o_\u0111\u1ec3_debug_l\u1ed7i_API_trong_n8n_nhanh_nh\u1ea5t?\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 debug l\u1ed7i API trong n8n nhanh nh\u1ea5t?<\/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>Ch\u1ea1y workflow \u1edf ch\u1ebf \u0111\u1ed9 test, sau \u0111\u00f3 m\u1edf tab Response c\u1ee7a HTTP Request Node \u0111\u1ec3 xem chi ti\u1ebft d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 (status code, body, headers). \u0110\u00e2y l\u00e0 c\u00e1ch nhanh nh\u1ea5t \u0111\u1ec3 t\u00ecm nguy\u00ean nh\u00e2n l\u1ed7i.<\/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\": \"T\u00f4i n\u00ean l\u00e0m g\u00ec n\u1ebfu l\u1ed7i API kh\u00f4ng \u0111\u01b0\u1ee3c gi\u1ea3i quy\u1ebft?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y, b\u1ea1n h\u00e3y tham gia c\u00e1c di\u1ec5n \u0111\u00e0n v\u1ec1 n8n v\u00e0 t\u00ecm s\u1ef1 h\u1ed7 tr\u1ee3 t\u1ed1t h\u01a1n t\u1eeb c\u1ed9ng \u0111\u1ed3ng. N\u1ebfu c\u00f3 th\u1ec3, h\u00e3y li\u00ean h\u1ec7 v\u1edbi \u0111\u1ed9i ng\u0169 k\u1ef9 thu\u1eadt c\u1ee7a nh\u00e0 cung c\u1ea5p API \u0111\u1ec3 h\u1ecd h\u1ed7 tr\u1ee3 t\u1ed1t h\u01a1n.<\/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\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 tr\u00e1nh v\u01b0\u1ee3t qu\u00e1 gi\u1edbi h\u1ea1n request (429 Too Many Requests)?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>B\u1ea1n c\u00f3 th\u1ec3 gi\u1ea3m t\u1ea7n su\u1ea5t g\u1ecdi API b\u1eb1ng c\u00e1ch th\u00eam Wait Node ho\u1eb7c c\u1ea5u h\u00ecnh Trigger ch\u1ea1y theo kho\u1ea3ng th\u1eddi gian d\u00e0i h\u01a1n. N\u1ebfu c\u1ea7n g\u1ecdi nhi\u1ec1u h\u01a1n, h\u00e3y n\u00e2ng c\u1ea5p g\u00f3i API tr\u1ea3 ph\u00ed.<\/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\": \"V\u00ec sao API tr\u1ea3 v\u1ec1 d\u1eef li\u1ec7u 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>\u0110i\u1ec1u n\u00e0y th\u01b0\u1eddng x\u1ea3y ra khi request b\u1ecb l\u1ed7i (v\u00ed d\u1ee5 sai API Key ho\u1eb7c endpoint). Khi \u0111\u00f3, server tr\u1ea3 v\u1ec1 m\u1ed9t trang l\u1ed7i HTML thay v\u00ec JSON. B\u1ea1n c\u1ea7n ki\u1ec3m tra status code trong HTTP Request Node \u0111\u1ec3 bi\u1ebft ch\u00ednh x\u00e1c nguy\u00ean nh\u00e2n.<\/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\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 debug l\u1ed7i API trong n8n nhanh nh\u1ea5t?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Ch\u1ea1y workflow \u1edf ch\u1ebf \u0111\u1ed9 test, sau \u0111\u00f3 m\u1edf tab Response c\u1ee7a HTTP Request Node \u0111\u1ec3 xem chi ti\u1ebft d\u1eef li\u1ec7u tr\u1ea3 v\u1ec1 (status code, body, headers). \u0110\u00e2y l\u00e0 c\u00e1ch nhanh nh\u1ea5t \u0111\u1ec3 t\u00ecm nguy\u00ean nh\u00e2n l\u1ed7i.<\/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","protected":false},"excerpt":{"rendered":"<p>Khi l\u00e0m vi\u1ec7c v\u1edbi n8n, kh\u00f4ng \u00edt ng\u01b0\u1eddi d\u00f9ng th\u01b0\u1eddng xuy\u00ean g\u1eb7p ph\u1ea3i c\u00e1c l\u1ed7i k\u1ebft n\u1ed1i API khi\u1ebfn workflow b\u1ecb gi\u00e1n \u0111o\u1ea1n, \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn hi\u1ec7u qu\u1ea3 c\u00f4ng vi\u1ec7c. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd t\u1ed5ng h\u1ee3p m\u1ed9t s\u1ed1 l\u1ed7i k\u1ebft n\u1ed1i API th\u01b0\u1eddng g\u1eb7p trong n8n, k\u00e8m theo v\u00ed d\u1ee5 minh h\u1ecda b\u1eb1ng workflow th\u1ef1c [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":118371,"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":1,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/118361\/revisions"}],"predecessor-version":[{"id":118372,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/118361\/revisions\/118372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/118371"}],"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}]}}