{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Khắc phục sự cố","projectTitle":"Tisane Developer Documentation","description":"Tisane is an NLP platform, used for content moderation & more.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"khắc-phục-sự-cố","__idx":0},"children":["Khắc phục sự cố"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nếu yêu cầu gửi tới API Tisane  của bạn không thành công, hãy kiểm tra mã lỗi và các bước khắc phục sự cố bên dưới."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"gọi-api-không-thành-công-với-mã-lỗi-400-yêu-cầu-không-hợp-lệ","__idx":1},"children":["Gọi API không thành công với mã lỗi 400 (Yêu cầu không hợp lệ)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Thông thường lỗi này có nghĩa là nội dung yêu cầu không đúng định dạng hoặc không hợp lệ. Trong ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/parse"]}," và ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/transform"]},", nội dung đầu vào và mã ngôn ngữ hợp lệ phải được chỉ định."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Các lý do có khả năng:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["JSON không hợp lệ. Kiểm tra các chuỗi ký tự chưa kết thúc hoặc dấu ngoặc kép chưa thoát trong chuỗi của bạn."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Mã ngôn ngữ không hợp lệ. Xác minh rằng mô hình ngôn ngữ tồn tại và tên thuộc tính là chính xác (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ngôn ngữ"]}," trong ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/parse"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["from"]}," và ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["to"]}," trong ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/transform"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Thiếu phần tử ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nội dung"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"gọi-api-không-thành-công-với-mã-lỗi-401-không-được-cấp-quyền","__idx":2},"children":["Gọi API không thành công với mã lỗi 401 (Không được cấp quyền)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Lỗi này có nghĩa là yêu cầu của bạn không được cấp quyền. Các lý do có khả năng:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Khóa API không chính xác"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Đảm bảo bạn cung cấp giá trị khóa API chính xác cho tiêu đề HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ocp-Apim-Subscription-Key"]},"."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Vượt quá giới hạn tần suất"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Mỗi gói đăng ký đều có giới hạn tần suất. Giới hạn tần suất của Gói Cộng đồng miễn phí chỉ được đặt ở mức 10 yêu cầu mỗi phút (đủ để thử nghiệm, không đủ để đưa vào sản xuất cho hầu hết các mục đích). Kiểm tra giới hạn trên ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://tisane.ai/subscription-plans/"},"children":["trang Các gói đăng ký"]},"."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Vượt quá hạn ngạch hàng tháng"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nếu bạn đã đạt đến mức tối đa hàng tháng, hãy cân nhắc nâng cấp trên ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://tisane.ai/subscription-plans/"},"children":["trang Các gói đăng ký"]},". Nhiều thông báo sẽ được gửi khi đạt đến mức tối đa hàng tháng."]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"gọi-api-không-thành-công-với-mã-lỗi-404","__idx":3},"children":["Gọi API không thành công với mã lỗi 404"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kiểm tra xem tên phương thức và động từ có chính xác hay không. Ví dụ: chỉ định ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," khi thao tác sử dụng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," sẽ dẫn đến mã trạng thái 404."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"các-mã-lỗi-khác-json-không-hợp-lệ-hoặc-sự-cố-đánh-dấu","__idx":4},"children":["Các mã lỗi khác (JSON không hợp lệ hoặc sự cố đánh dấu)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nếu bạn gặp lỗi khác ngoài lỗi 401, hãy kiểm tra định dạng JSON không hợp lệ:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Thoát khỏi dấu ngoặc kép đúng cách"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nếu nội dung của bạn chứa dấu ngoặc kép (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\""]},"), hãy đảm bảo chúng được thoát đúng cách (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\\""]},")."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tránh gửi nội dung đánh dấu"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["API Tisane xử lý ngôn ngữ tự nhiên, do đó việc gửi HTML, XML hoặc JSON dưới dạng nội dung có thể gây ra sự cố."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nếu bạn phải gửi nội dung đánh dấu, hãy làm sạch dữ liệu đầu vào của bạn trước khi gửi."]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tìm-khóa-api-của-bạn","__idx":5},"children":["Tìm khóa API của bạn"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["tl;dr"]},": Đăng nhập vào cổng thông tin dành cho nhà phát triển của chúng tôi và lấy khóa API từ trang hồ sơ của bạn."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"hướng-dẫn-từng-bước","__idx":6},"children":["Hướng dẫn từng bước"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Đăng nhập bằng thông tin đăng nhập của bạn ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://dev.tisane.ai/signin/"},"children":["tại đây"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nếu bạn chưa có tài khoản, hãy đăng ký ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://dev.tisane.ai/signup/"},"children":["tại đây"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nhấp vào menu ở góc trên bên phải và vào phần ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Hồ sơ"]},", hoặc sử dụng ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://dev.tisane.ai/profile"},"children":["liên kết trực tiếp này"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Trong phần ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Khóa chính"]}," hoặc ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Khóa phụ"]},", nhấp vào ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Hiển thị"]}," để hiển thị khóa API của bạn."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Trong ứng dụng của bạn, hãy cung cấp khóa này dưới dạng tiêu đề HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ocp-Apim-Subscription-Key"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"các-bước-khắc-phục-sự-cố-tổng-quát","__idx":7},"children":["Các bước khắc phục sự cố tổng quát"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Kiểm tra khóa API của bạn"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Kiểm tra giới hạn gói đăng ký của bạn"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Xác thực định dạng JSON trước khi gửi"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Làm sạch dữ liệu đầu vào để xóa tất cả thẻ đánh dấu"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"chúng-tôi-không-nhận-được-phản-hồi-như-chúng-tôi-mong-đợi","__idx":8},"children":["Chúng tôi không nhận được phản hồi như chúng tôi mong đợi"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mặc dù chúng tôi không thể đảm bảo độ chính xác 100%, vui lòng ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://tisane.ai/contact-us/#support"},"children":["gửi ghi chú cho chúng tôi"]}," và chúng tôi sẽ xem xét. Chúng tôi không ngừng nỗ lực cải thiện độ chính xác của Tisane và rất trân trọng sự hợp tác của bạn."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tôi-có-thể-xử-lý-văn-bản-từ-nội-dung-đánh-dấu-html-hoặc-xml-không","__idx":9},"children":["Tôi có thể xử lý văn bản từ nội dung đánh dấu (HTML hoặc XML) không?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sau đây là biểu thức chính quy chung có thể được sử dụng trong bất kỳ ngôn ngữ lập trình nào để xóa thẻ HTML khỏi văn bản:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<[^>]+>"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<"]}," → Phù hợp với ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["dấu ngoặc nhọn mở"]}," của thẻ HTML."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[^>]+"]}," → Phù hợp với ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["mọi ký tự bên trong thẻ"]},", ngoại trừ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[">"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":[">"]}," → Phù hợp với ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["dấu ngoặc nhọn đóng"]}," của thẻ HTML."]}]}]},"headings":[{"value":"Khắc phục sự cố","id":"khắc-phục-sự-cố","depth":1},{"value":"Gọi API không thành công với mã lỗi 400 (Yêu cầu không hợp lệ)","id":"gọi-api-không-thành-công-với-mã-lỗi-400-yêu-cầu-không-hợp-lệ","depth":2},{"value":"Gọi API không thành công với mã lỗi 401 (Không được cấp quyền)","id":"gọi-api-không-thành-công-với-mã-lỗi-401-không-được-cấp-quyền","depth":2},{"value":"Gọi API không thành công với mã lỗi 404","id":"gọi-api-không-thành-công-với-mã-lỗi-404","depth":2},{"value":"Các mã lỗi khác (JSON không hợp lệ hoặc sự cố đánh dấu)","id":"các-mã-lỗi-khác-json-không-hợp-lệ-hoặc-sự-cố-đánh-dấu","depth":2},{"value":"Tìm khóa API của bạn","id":"tìm-khóa-api-của-bạn","depth":2},{"value":"Hướng dẫn từng bước","id":"hướng-dẫn-từng-bước","depth":3},{"value":"Các bước khắc phục sự cố tổng quát","id":"các-bước-khắc-phục-sự-cố-tổng-quát","depth":2},{"value":"Chúng tôi không nhận được phản hồi như chúng tôi mong đợi","id":"chúng-tôi-không-nhận-được-phản-hồi-như-chúng-tôi-mong-đợi","depth":2},{"value":"Tôi có thể xử lý văn bản từ nội dung đánh dấu (HTML hoặc XML) không?","id":"tôi-có-thể-xử-lý-văn-bản-từ-nội-dung-đánh-dấu-html-hoặc-xml-không","depth":2}],"frontmatter":{"seo":{"title":"Khắc phục sự cố"}},"lastModified":"2025-05-27T02:21:08.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/support/troubleshooting","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}