Have the same problem. Did you solved it ?
Have you found a solution? I saw a fix on reddit but haven't tried yet. I fixed the JSON but that didn't seem to fix the problem.
Replying to my own issue in case someone encounters this:
(1) Addressing localhost will work from the local device, such as the xcode simulator, but not if you're using an external iPhone or iPad to run your code.
(2) JSON file has a trailing comma, needs to be deleted.
(3) Server file is broken, the reddit link above has the correct fix.
Please let me know if you find a better solution to this!
hi, it look like you go through it. i am stuck on this for days
so far i am delete the trailing comma on menu.json
save the OpenRestaurant.py file and run it on terminal.
my terminal show this after start the python file: [
Bottle v0.12.13 server starting up (using WSGIRefServer())...
Listening on http://localhost:8090/
But when i try to aceess to localhost:8090, it shown: [
Error: 404 Not Found
Sorry, the requested URL 'http://localhost:8090/' caused an error:
Not found: '/'
did i do anything wrong? any comment is greatly appreciated
i stuck at here and cant proceed further
There is indeed an extra comma at the end of the JSON file, but the simple fix for localhost is to simply replace the substring in the baseURL with the IP of your Mac
hi, i am new to this. you said "simple fix for localhost is to simply replace the substring in the baseURL with the IP of your Mac"
may i ask how to do this? where to find the substring in the baseURL?
I guess I found a solution:
Right-click on the OpenRestaurant icon - Choose Show package - Contents - Mac OS - Open Restaurant.
The server begins work for me.
I was stuck on it but your workaround solve my troubles. It works like a charm.
Thank you very much!
The app runs and pulls up the table views, but the categories are not displayed. I am getting this error message:
nw_socket_handle_socket_event [C1.1:2] Socket SO_ERROR [61: Connection refused]
nw_socket_handle_socket_event [C1.2:2] Socket SO_ERROR [61: Connection refused]
TIC TCP Conn Failed [1:0x283551bc0]: 1:61 Err(61)
Task <767BD871-B6DD-4CD8-87CA-84322344BF6B>.<1> HTTP load failed (error code: -1004 [1:61])
Task <767BD871-B6DD-4CD8-87CA-84322344BF6B>.<1> finished with error - code: -1004
I tried to run the file from the Reddit post, but it comes up with the same result. The server seems to be working, it doesn't look like it does exactly in the book, but going to the local server site shows: The restaurant is up and running! I think it may still blocking the HTTP even though I added the exception (and tried others) in info.plst.