monkeytype-clone icon indicating copy to clipboard operation
monkeytype-clone copied to clipboard

the game is working but i am getting leaderboard error

Open View-my-Git-Lab-krafi opened this issue 1 year ago • 1 comments

Unhandled Runtime Error Error: An error occurred while fetching the data.

Source src/hooks/useLeaderboard.ts (39:12) @ _callee$

37 | }); 38 | if (!res.ok) {

39 | throw new Error('An error occurred while fetching the data.'); | ^ 40 | } 41 | return res.json(); 42 | }; Call Stack tryCatch node_modules/next/dist/compiled/regenerator-runtime/runtime.js (45:15) Generator.invoke [as _invoke] node_modules/next/dist/compiled/regenerator-runtime/runtime.js (274:0) prototype. [as next] node_modules/next/dist/compiled/regenerator-runtime/runtime.js (97:0) asyncGeneratorStep node_modules/@swc/helpers/src/_async_to_generator.mjs (3:0) _next node_modules/@swc/helpers/src/_async_to_generator.mjs (25:0)

View-my-Git-Lab-krafi avatar Apr 25 '23 17:04 View-my-Git-Lab-krafi