iggy-rs / iggy-web-ui Goto Github PK
View Code? Open in Web Editor NEWWeb UI management panel for Iggy.rs message streaming.
License: MIT License
Web UI management panel for Iggy.rs message streaming.
License: MIT License
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.
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
... 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."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.