You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the axios dependency causes issues when attempting to run the SDK from Deno
Deno1.41.1exitusingctrl+d,ctrl+c,orclose()REPLisrunningwithallpermissionsallowed.Tospecifypermissions,run`deno repl`withallowflags.>import{OpenFgaClient}from"https://dev.jspm.io/@openfga/sdk"undefined>constfgaClient=newOpenFgaClient({apiUrl: "https://api.playground.fga.dev"})undefined>fgaClient.createStore({name: "test-deno-store"})Promise{<rejected> AxiosError: There is no suitable adapter to dispatch the request since :
- adapter xhr is not supported by the environment
- adapter http is not available in the build
at Object.getAdapter (https://dev.jspm.io/npm:axios@1.6.2!cjs:2123:13)
at Axios.dispatchRequest (https://dev.jspm.io/npm:axios@1.6.2!cjs:2162:28)
at Axios.request (https://dev.jspm.io/npm:axios@1.6.2!cjs:2470:33)
at wrap (https://dev.jspm.io/npm:axios@1.6.2!cjs:8:15)
at https://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:675:24
at Generator.next (<anonymous>)
at https://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:572:69
at new Promise (<anonymous>)
at __awaiter (https://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:554:12)
at attemptHttpRequest (https://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:670:12) {name: "FgaApiError",statusCode: undefined,statusText: undefined,requestData: undefined,requestURL: undefined,method: undefined,storeId: "",endpointCategory: "",apiErrorMessage: undefined,responseData: undefined,responseHeader: undefined,requestId: undefined}}UncaughtAxiosError: Thereisnosuitableadaptertodispatchtherequestsince :
-adapterxhrisnotsupportedbytheenvironment-adapterhttpisnotavailableinthebuildatObject.getAdapter(https://dev.jspm.io/npm:axios@1.6.2!cjs:2123:13)atAxios.dispatchRequest(https://dev.jspm.io/npm:axios@1.6.2!cjs:2162:28)atAxios.request(https://dev.jspm.io/npm:axios@1.6.2!cjs:2470:33)atwrap(https://dev.jspm.io/npm:axios@1.6.2!cjs:8:15)athttps://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:675:24atGenerator.next(<anonymous>)
at https://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:572:69
at new Promise (<anonymous>)
at __awaiter (https://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:554:12)
at attemptHttpRequest (https://dev.jspm.io/npm:@openfga/sdk@0.2.10/_/F1S5_afg.js:670:12)
The text was updated successfully, but these errors were encountered:
Currently, the axios dependency causes issues when attempting to run the SDK from Deno
The text was updated successfully, but these errors were encountered: