Git Product home page Git Product logo

iggy-web-ui's People

Contributors

pawel-zygmunt avatar spetz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iggy-web-ui's Issues

Add user form not submitting

I don't even see a network request there just a console log in JS add user form valid so guessing that parts just not complete yet, but thought should be tracked somewhere since it looks more functional than it is.

CreateTopic/UpdateTopic getting 422 from server (though reporting in logs as 500)

When submitting a new topic in Web UI the server logs show

2024-01-26T13:42:30.836761Z ERROR server::http::diagnostics: Returning an invalid status code: 422 Unprocessable Entity, IP address: 127.0.0.1:57549, request ID: 01HN303Y5KP8HAZ43A9Z850MTF

and the svelte client logs

handleErrorStatus: 500 http://127.0.0.1:3000/streams/100/topics

Internal Error (http://127.0.0.1:3333/dashboard/overview) after login

... async eval (/Users/aditya/iggy-web-ui/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:141:13)
TypeError: Expected a finite number, got string: 43788 KiB
at Proxy.prettyBytes (file:///Users/aditya/iggy-web-ui/node_modules/pretty-bytes/index.js:68:9)
at Module.bytesFormatter (/Users/aditya/iggy-web-ui/src/lib/utils/formatters/bytesFormatter.ts:7:10)
at Module.statsMapper (/Users/aditya/iggy-web-ui/src/lib/domain/Stats.ts:67:14)
at load (/Users/aditya/iggy-web-ui/src/routes/dashboard/overview/+page.server.ts:15:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Module.load_server_data (/Users/aditya/iggy-web-ui/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:51:17)
at async eval (/Users/aditya/iggy-web-ui/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:141:13)

Copilot says : "The error message indicates that there is a type error in the code. Specifically, it is expecting a finite number but receiving a string value.

To resolve this issue, you need to locate the code that is causing the error and fix the type mismatch. Based on the stack trace, it seems that the error is occurring in the bytesFormatter.ts file at line 7.

Open the bytesFormatter.ts file and check the code at line 7. Make sure that the value being passed to the prettyBytes function is a finite number. If it is a string, you can convert it to a number using the parseInt or parseFloat function.

Here's an example of how you can convert a string to a number in JavaScript:

const value = parseInt(stringValue, 10); // Assuming the base is 10

After making the necessary changes, save the file and re-run the command npm run dev -- --host --port 3333 to see if the error is resolved."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.