Skip to content

the game is working but i am getting leaderboard error  #5

@View-my-Git-Lab-krafi

Description

@View-my-Git-Lab-krafi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions