TDN
Tiến Dũng Nguyễn

Voucher Management - Copy this React, Tailwind Component to your project

bị lỗi Error fetching vouchers: AxiosError {message: 'Request failed with status code 401', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …} code : "ERR_BAD_REQUEST" config : adapter : (3) ['xhr', 'http', 'fetch'] data : undefined env : {FormData: ƒ, Blob: ƒ} headers : AxiosHeaders {Accept: 'application/json, text/plain, */*', Content-Type: undefined, Authorization: 'Bearer null'} maxBodyLength : -1 maxContentLength : -1 method : "get" timeout : 0 transformRequest : [ƒ] transformResponse : [ƒ] transitional : {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false} url : "https://domstore.azurewebsites.net/api/v1/vouchers" validateStatus : ƒ validateStatus(status) xsrfCookieName : "XSRF-TOKEN" xsrfHeaderName : "X-XSRF-TOKEN" [[Prototype]] : Object message : "Request failed with status code 401" name : "AxiosError" request : XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …} response : {data: {…}, status: 401, statusText: 'Unauthorized', headers: AxiosHeaders, config: {…}, …} status : 401 stack : "AxiosError: Request failed with status code 401\n at settle (http://localhost:5500/node_modules/.vite/deps/axios.js?v=d7761cd7:1230:12)\n at XMLHttpRequest.onloadend (http://localhost:5500/node_modules/.vite/deps/axios.js?v=d7761cd7:1593:7)\n at Axios.request (http://localhost:5500/node_modules/.vite/deps/axios.js?v=d7761cd7:2145:41)\n at async fetchVouchers (http://localhost:5500/src/components/ManageVoucher.jsx?t=1731660995660:56:24)" [[Prototype]] : Error fetchVouchers @ ManageVoucher.jsx:51 await in fetchVouchers (anonymous) @ ManageVoucher.jsx:39 commitHookEffectListMount @ chunk-QT63QQJV.js?v=d7761cd7:16915 commitPassiveMountOnFiber @ chunk-QT63QQJV.js?v=d7761cd7:18156 commitPassiveMountEffects_complete @ chunk-QT63QQJV.js?v=d7761cd7:18129 commitPassiveMountEffects_begin @ chunk-QT63QQJV.js?v=d7761cd7:18119 commitPassiveMountEffects @ chunk-QT63QQJV.js?v=d7761cd7:18109 flushPassiveEffectsImpl @ chunk-QT63QQJV.js?v=d7761cd7:19490 flushPassiveEffects @ chunk-QT63QQJV.js?v=d7761cd7:19447 commitRootImpl @ chunk-QT63QQJV.js?v=d7761cd7:19416 commitRoot @ chunk-QT63QQJV.js?v=d7761cd7:19277 performSyncWorkOnRoot @ chunk-QT63QQJV.js?v=d7761cd7:18895 flushSyncCallbacks @ chunk-QT63QQJV.js?v=d7761cd7:9119 (anonymous) hẫy sửa nó

Prompt
Component Preview

About

VoucherManagement - Create and manage vouchers with features to add, edit, delete, and view statistics, built with React and Tailwind. Copy component code!

Share

Last updated 1 month ago