Skip to content

Fatal error: exception Unix.Unix_error(Unix.EADDRINUSE, "bind", "")

Thanks for sharing this!

I just tried to run it and go this error.

❯ dune exec graphql_serve db.sqlite
I'm a graphql server 
0 | id | INTEGER | 1 | NULL | 1
1 | text | TEXT | 0 | NULL | 0
0 | uuid | TEXT | 1 | NULL | 1
1 | phone | TEXT | 0 | NULL | 0
2 | an_int | INTEGER | 0 | NULL | 0
3 | a_blob | NUMERIC | 0 | NULL | 0
4 | a_real | REAL | 0 | NULL | 0
5 | a_numeric | NUMERIC | 0 | NULL | 0
6 | test_id | INTEGER | 1 | NULL | 0
0 | id | INTEGER | 1 | NULL | 1
1 | text_id | INTEGER | 1 | NULL | 0
2 | description | TEXT | 0 | NULL | 0
0 | 0 | test | text_id | id | NO ACTION | NO ACTION | NONE
Fatal error: exception Unix.Unix_error(Unix.EADDRINUSE, "bind", "")

Been reading but cant seem to figure out how to fix this. Any ideas?

Thanks again.