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

Why is chakra ui's "select" component direction upwards in machine selector #14

Open
aquibbaig opened this issue Jun 29, 2021 · 19 comments
Labels
good first issue Good for newcomers

Comments

@aquibbaig
Copy link
Contributor

Image

I haven't researched more on it, but it can be a good first issue. The solution can be replacing it with a "Menu" component instead

@aquibbaig aquibbaig added the good first issue Good for newcomers label Jun 29, 2021
@ruddi10
Copy link
Contributor

ruddi10 commented Jun 29, 2021

Hey @aquibbaig dont know why this is happening on your local environment its totally fine on mine. I have checked both on

Browsers - Mozilla Firefox 88.0.1 (64-bit)
Google Chrome Version 85.0.4183.83 (Official Build) (64-bit)

@satyaarthchhabra
Copy link

satyaarthchhabra commented Sep 14, 2021

hey, I would love to work on this issue . but i am getting an error , it would be great if you could help me through it @aquibbaig @ruddi10 . the issue is i am gettting this network error . i have also started the backend but still i am getting this error
Capture

@ruddi10
Copy link
Contributor

ruddi10 commented Sep 14, 2021

I think your backend stopped running due to some error can you share the ss of your terminal for both backend and frontend

@satyaarthchhabra
Copy link

hey , yes i just noted here is an issue with backend here are its logs
echo "compiling go-code and executing bench-routes"
compiling go-code and executing bench-routes
echo "using 9990 as default service listener port"
using 9990 as default service listener port
go run src/*.go 9990
level=info ts=2021-09-14T10:40:02.836Z caller=main.go:45 msg=configuration out="[{sample-google 5s https www.google.com /search get map[Content-Type:json] map[q:bench-routes] map[]}]"
level=info ts=2021-09-14T10:40:02.836Z caller=main.go:53 msg="launching machine routine"
level=info ts=2021-09-14T10:40:02.843Z caller=main.go:67 msg="launching monitor routine"
level=debug ts=2021-09-14T10:40:02.851Z caller=api.go:53 msg="Updated API domain map"
level=info ts=2021-09-14T10:40:02.852Z caller=main.go:117 msg="Listening at :9990"
level=error ts=2021-09-14T10:40:08.852Z caller=main.go:161 msg="running monitor" error="running monitor: job: sample-google: error in sending request: Get "https://www.google.com/search?q=bench-routes\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
exit status 1
make: *** [Makefile:19: run] Error 1

@ruddi10
Copy link
Contributor

ruddi10 commented Sep 14, 2021

You are having a storage folder right? Delete all its content and try restarting the backend

@aquibbaig
Copy link
Contributor Author

aquibbaig commented Sep 14, 2021

@satyaarthchhabra thanks for showing your interest in improving bench-routes dashboard, I think @ruddi10 has pointed out steps to fix your errors. After that, can you please let me know if you can reproduce this issue?

@satyaarthchhabra
Copy link

hey i have got all issues resolved but still the dashboard looks like the same
bench-routes(backend ):
echo "compiling go-code and executing bench-routes"
compiling go-code and executing bench-routes
echo "using 9990 as default service listener port"
using 9990 as default service listener port
go run src/*.go 9990
level=info ts=2021-09-15T08:18:28.093Z caller=main.go:45 msg=configuration out="[{sample-google 5s https www.google.com /search get map[Content-Type:json] map[q:bench-routes] map[]}]"
level=info ts=2021-09-15T08:18:28.093Z caller=main.go:53 msg="launching machine routine"
level=info ts=2021-09-15T08:18:28.094Z caller=chain.go:59 creatingin-memorychain'%s'withpathat'%s'=www.google.com_ping storage/www.google.com_ping.json=(MISSING)
level=info ts=2021-09-15T08:18:28.106Z caller=chain.go:59 creatingin-memorychain'%s'withpathat'%s'=www.google.com_jitter storage/www.google.com_jitter.json=(MISSING)
level=info ts=2021-09-15T08:18:28.115Z caller=main.go:67 msg="launching monitor routine"
level=info ts=2021-09-15T08:18:28.118Z caller=chain.go:59 creatingin-memorychain'%s'withpathat'%s'=sample-google_monitor storage/sample-google_monitor.json=(MISSING)
level=debug ts=2021-09-15T08:18:28.130Z caller=api.go:53 msg="Updated API domain map"
level=info ts=2021-09-15T08:18:28.130Z caller=main.go:117 msg="Listening at :9990"
level=warn ts=2021-09-15T08:19:03.017Z caller=api.go:93 component=api msg="ping: path not found at ./storage/_ping.json"
level=warn ts=2021-09-15T08:19:03.024Z caller=api.go:102 component=api msg="jitter: path not found at ./storage/_jitter.json"
2021/09/15 13:49:03 http: panic serving [::1]:56880: interface conversion: interface {} is nil, not
evaluate.Response
goroutine 57 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1801 +0xb9
panic({0x6e67c0, 0xc000226bd0})
/usr/local/go/src/runtime/panic.go:1047 +0x266
github.com/bench-routes/bench-routes/src/lib/api.(*API).getDomainEntity(0xc00009ba70, {0x7a5df0, 0xc0002141c0}, 0xc0001fe000)
/mnt/d/react learn/bench-routes/src/lib/api/api.go:123 +0xadb
net/http.HandlerFunc.ServeHTTP(0xc0003e4600, {0x7a5df0, 0xc0002141c0}, 0xc000180000)
/usr/local/go/src/net/http/server.go:2046 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001aa540, {0x7a5df0, 0xc0002141c0}, 0xc00019c500)
/home/satyaarth/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
github.com/rs/cors.(*Cors).Handler.func1({0x7a5df0, 0xc0002141c0}, 0xc00019c500)
/home/satyaarth/go/pkg/mod/github.com/rs/[email protected]/cors.go:219 +0x1bd
net/http.HandlerFunc.ServeHTTP(0xc0003e6020, {0x7a5df0, 0xc0002141c0}, 0x461c8e)
/usr/local/go/src/net/http/server.go:2046 +0x2f
net/http.serverHandler.ServeHTTP({0xc0002265a0}, {0x7a5df0, 0xc0002141c0}, 0xc00019c500)
/usr/local/go/src/net/http/server.go:2878 +0x43b
net/http.(*conn).serve(0xc0001fe280, {0x7a7300, 0xc0000e4090})
/usr/local/go/src/net/http/server.go:1929 +0xb08
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3033 +0x4e8
2021/09/15 13:49:03 http: panic serving [::1]:56882: interface conversion: interface {} is nil, not
evaluate.Response
goroutine 25 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1801 +0xb9
panic({0x6e67c0, 0xc000226090})
/usr/local/go/src/runtime/panic.go:1047 +0x266
github.com/bench-routes/bench-routes/src/lib/api.(*API).getDomainEntity(0xc00009ba70, {0x7a5df0, 0xc000350460}, 0xc0001fe000)
/mnt/d/react learn/bench-routes/src/lib/api/api.go:123 +0xadb
net/http.HandlerFunc.ServeHTTP(0xc00019c600, {0x7a5df0, 0xc000350460}, 0xc000180000)
/usr/local/go/src/net/http/server.go:2046 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001aa540, {0x7a5df0, 0xc000350460}, 0xc0003e4500)
/home/satyaarth/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
github.com/rs/cors.(*Cors).Handler.func1({0x7a5df0, 0xc000350460}, 0xc0003e4500)
/home/satyaarth/go/pkg/mod/github.com/rs/[email protected]/cors.go:219 +0x1bd
net/http.HandlerFunc.ServeHTTP(0xc0000bc070, {0x7a5df0, 0xc000350460}, 0x461c8e)
/usr/local/go/src/net/http/server.go:2046 +0x2f
net/http.serverHandler.ServeHTTP({0xc00014a480}, {0x7a5df0, 0xc000350460}, 0xc0003e4500)
/usr/local/go/src/net/http/server.go:2878 +0x43b
net/http.(*conn).serve(0xc0000b6a00, {0x7a7300, 0xc0000e4090})
/usr/local/go/src/net/http/server.go:1929 +0xb08
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3033 +0x4e8
2021/09/15 13:49:03 http: panic serving [::1]:56878: interface conversion: interface {} is nil, not
evaluate.Response
goroutine 56 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1801 +0xb9
panic({0x6e67c0, 0xc00014a1e0})
/usr/local/go/src/runtime/panic.go:1047 +0x266
github.com/bench-routes/bench-routes/src/lib/api.(*API).getDomainEntity(0xc00009ba70, {0x7a5df0, 0xc00005c0e0}, 0xc0001fe000)
/mnt/d/react learn/bench-routes/src/lib/api/api.go:123 +0xadb
net/http.HandlerFunc.ServeHTTP(0xc0003e4000, {0x7a5df0, 0xc00005c0e0}, 0x9a1aa0)
/usr/local/go/src/net/http/server.go:2046 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001aa540, {0x7a5df0, 0xc00005c0e0}, 0xc0003e4400)
/home/satyaarth/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
github.com/rs/cors.(*Cors).Handler.func1({0x7a5df0, 0xc00005c0e0}, 0xc0003e4400)
/home/satyaarth/go/pkg/mod/github.com/rs/[email protected]/cors.go:219 +0x1bd
net/http.HandlerFunc.ServeHTTP(0xc0003e6020, {0x7a5df0, 0xc00005c0e0}, 0x461c8e)
/usr/local/go/src/net/http/server.go:2046 +0x2f
net/http.serverHandler.ServeHTTP({0xc0002264b0}, {0x7a5df0, 0xc00005c0e0}, 0xc0003e4400)
/usr/local/go/src/net/http/server.go:2878 +0x43b
net/http.(*conn).serve(0xc0001fe0a0, {0x7a7300, 0xc0000e4090})
/usr/local/go/src/net/http/server.go:1929 +0xb08
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3033 +0x4e8
2021/09/15 13:49:03 http: panic serving [::1]:56884: interface conversion: interface {} is nil, not
evaluate.Response
goroutine 27 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1801 +0xb9
panic({0x6e67c0, 0xc000564330})
/usr/local/go/src/runtime/panic.go:1047 +0x266
github.com/bench-routes/bench-routes/src/lib/api.(*API).getDomainEntity(0xc00009ba70, {0x7a5df0, 0xc000350000}, 0xc0001fe000)
/mnt/d/react learn/bench-routes/src/lib/api/api.go:123 +0xadb
net/http.HandlerFunc.ServeHTTP(0xc0001f2300, {0x7a5df0, 0xc000350000}, 0xc000080000)
/usr/local/go/src/net/http/server.go:2046 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001aa540, {0x7a5df0, 0xc000350000}, 0xc0001f2000)
/home/satyaarth/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
github.com/rs/cors.(*Cors).Handler.func1({0x7a5df0, 0xc000350000}, 0xc0001f2000)
/home/satyaarth/go/pkg/mod/github.com/rs/[email protected]/cors.go:219 +0x1bd
net/http.HandlerFunc.ServeHTTP(0xc0000bc0c0, {0x7a5df0, 0xc000350000}, 0x461c8e)
/usr/local/go/src/net/http/server.go:2046 +0x2f
net/http.serverHandler.ServeHTTP({0xc0005640c0}, {0x7a5df0, 0xc000350000}, 0xc0001f2000)
/usr/local/go/src/net/http/server.go:2878 +0x43b
net/http.(*conn).serve(0xc0001fe280, {0x7a7300, 0xc0000e4090})
/usr/local/go/src/net/http/server.go:1929 +0xb08
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3033 +0x4e8

frontend (bench-routes):

Compiled successfully!

You can now view bench-routes-dashboard in the browser.

Local: http://localhost:3000
On Your Network: http://192.168.37.244:3000

Note that the development build is not optimized.
To create a production build, use yarn build.

@aquibbaig
Copy link
Contributor Author

aquibbaig commented Sep 17, 2021

@satyaarthchhabra Are you on Linux? With current state of the app, I am being able to run bench-routes successfully

@aquibbaig
Copy link
Contributor Author

@satyaarthchhabra Thanks for bringing this up. I believe there are at least some ambiguities/errors in the way we fetch data from bench-routes-backend. Please go ahead and open an issue saying "Not able to bootstrap bench-routes-dashboard" listing screenshots for the issue and once you start the dashboard, make sure you drop a screenshot of the "Networks" tab. I will assign myself to it and we can fix them, thanks!

@ruddi10
Copy link
Contributor

ruddi10 commented Sep 17, 2021

@aquibbaig hey actually earlier I faced similar issue the reason was the shutting of backend on its own and tushar told me that the reason behind this is frequent on off cause duplication leading to problems so the only solution was to delete all the files in storage folder

@satyaarthchhabra
Copy link

satyaarthchhabra commented Sep 17, 2021

Hi @ruddi10 , what happens is when i delete the storage folder , " error running ping : socket: permission denied" error comes and i am not able to get how things are going . here are its log

compiling go-code and executing bench-routes
echo "using 9990 as default service listener port"
using 9990 as default service listener port
go run src/*.go 9990
level=info ts=2021-09-17T20:00:06.055Z caller=main.go:45 msg=configuration out="[{sample-google 5s https www.google.com /search get map[Content-Type:json] map[q:bench-routes] map[]}]"
level=info ts=2021-09-17T20:00:06.055Z caller=main.go:53 msg="launching machine routine"
level=info ts=2021-09-17T20:00:06.062Z caller=main.go:67 msg="launching monitor routine"
level=debug ts=2021-09-17T20:00:06.065Z caller=api.go:53 msg="Updated API domain map"
level=info ts=2021-09-17T20:00:06.065Z caller=main.go:117 msg="Listening at :9990"
level=error ts=2021-09-17T20:00:07.233Z caller=main.go:161 msg="running machine" error="running machine: job: sample-google: error running ping : socket: permission denied"
exit status 1
make: *** [Makefile:19: run] Error 1

@aquibbaig
Copy link
Contributor Author

I think this is not a good place to track this discussion, we should do that in a new issue that matches the context

@satyaarthchhabra
Copy link

Hi @aquibbaig and @ruddi10 , i have created a new issue at bench-routes/bench-routes#506

@ruddi10
Copy link
Contributor

ruddi10 commented Sep 20, 2021

Hey @satyaarthchhabra are you using windows?

@satyaarthchhabra
Copy link

@ruddi10 yes windows 10

@saideepesh000
Copy link

hey @ruddi10 @aquibbaig , shall I work on this issue

@ruddi10
Copy link
Contributor

ruddi10 commented Dec 7, 2021

hey @ruddi10 @aquibbaig , shall I work on this issue

Sure go ahead first of all please confirm is this problem reproducible on your system. As I wasn't able to reproduce it

@ruddi10
Copy link
Contributor

ruddi10 commented Jan 22, 2022

@aquibbaig This bug is not reproducible on my system can we close this issue or do we need to keep this?

@aquibbaig
Copy link
Contributor Author

I have a better idea, lets replace this component with a MenuList.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants