Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: error convert to float64 #25

Closed
shivamsouravjha opened this issue Oct 12, 2024 · 3 comments
Closed

bug: error convert to float64 #25

shivamsouravjha opened this issue Oct 12, 2024 · 3 comments
Assignees
Labels
bug Something isn't working golang good first issue Good for newcomers hacktoberfest

Comments

@shivamsouravjha
Copy link
Owner

{"level":"error","ts":1728760233.67041,"caller":"helpers/helpers.go:72","msg":"Error converting to float64","error":"strconv.ParseFloat: parsing \"\": invalid syntax","stacktrace":"stockbackend/utils/helpers.ToFloat\n\t/Users/shivamsouravjha/medium/stockbackend/utils/helpers/helpers.go:72\nstockbackend/utils/helpers.RateStock\n\t/Users/shivamsouravjha/medium/stockbackend/utils/helpers/helpers.go:118\nstockbackend/services.(*fileService).ParseXLSXFile\n\t/Users/shivamsouravjha/medium/stockbackend/services/file_service.go:212\nstockbackend/controllers.(*fileController).ParseXLSXFile\n\t/Users/shivamsouravjha/medium/stockbackend/controllers/file_controller.go:94\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/Users/shivamsouravjha/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185\nmain.main.CORSMiddleware.func1\n\t/Users/shivamsouravjha/medium/stockbackend/main.go:53\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/Users/shivamsouravjha/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185\ngithub.com/getsentry/sentry-go/gin.(*handler).handle\n\t/Users/shivamsouravjha/go/pkg/mod/github.com/getsentry/[email protected]/gin/sentrygin.go:101\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/Users/shivamsouravjha/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185\ngithub.com/gin-gonic/gin.(*Engine).handleHTTPRequest\n\t/Users/shivamsouravjha/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633\ngithub.com/gin-gonic/gin.(*Engine).ServeHTTP\n\t/Users/shivamsouravjha/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589\nnet/http.serverHandler.ServeHTTP\n\t/Users/shivamsouravjha/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:3210\nnet/http.(*conn).serve\n\t/Users/shivamsouravjha/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2092"}
@shivamsouravjha shivamsouravjha added bug Something isn't working good first issue Good for newcomers hacktoberfest golang labels Oct 12, 2024
@shivamsouravjha shivamsouravjha self-assigned this Oct 12, 2024
@ayesparshh
Copy link

ayesparshh commented Oct 13, 2024

same problem with this one float(nil) (here nil == "") throws an error but float(0) doesn't maybe we need to work on this thing it will indirectly solve the issue #27

@umardevX
Copy link

@shivamsouravjha Can you assign it to me and share more details?

@shivamsouravjha
Copy link
Owner Author

I think this is solved in last pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working golang good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants