Develop in Swift Open Restaurant program has issues

When using the image URL received from the Restaurant server, the url only leads to the error
Code Block
{"error":true,"reason":"The menu item with ID *.png does not exist."}
Am I doing something wrong?
The url it gives me is
Code Block
http://localhost:8080/images/*.png

When removing the .png from the end of the URL, it does redirect me to the image, but using this URL in my code for some reason leads to the dataTask closure never being run.

Am I doing something wrong?

Yes, you are doing something wrong.
You do not give useful information about your code ! Your post is really useless.

So please, provide the code that retrieves the url.
Same as in the material (Develop in Swift Data Collections):
Code Block
func fetchImage(url: URL, completion: @escaping (UIImage?) -> Void) {
    let task = URLSession.shared.dataTask(with: url) { (data, response, error) in
      if let data = data, let image = UIImage(data: data){
        completion(image)
      } else {
        completion(nil)
      }
    }
    task.resume()
  }

I tried modifying the URL with
Code Block
url.deletingPathExtension()

and the resulting URL returns the image in the browser, but it doesn't in my code.

OK, that's the exact same code as in book.

But there are a lot of other stuff that could be wrong.

Are you sure you followed exactly all the steps ?
Impossible to say with our seeing code.
Page 515 in the latest edition
Almost certain I did, but could be wrong. The main issue I have is with the server that gives an invalid link to the image, so someone should probably fix that. (Although, I don't know who that someone is)
The url is a url to the server on your Mac.

http://localhost:8080/images/*.png

have you configured your web server correctly ?

I do not see in their doc where they set the 8080 port on the web server.
This should direct to
Library/WebServer/Documents/ Directory
Did you install the provided server as described on page 447 ?

Run the Server
The Restaurant folder included with this project contains the binary file for the server, OpenRestaurant.app. Right-click OpenRestaurant and click Open in the dropdown. Depending on your Mac's security configuration, you may see a warning dialog. Click Open to indicate that you trust the app.

Check also if port is 8080 or 8090 (as written at top of page 448). I understand it should be 8080.
Yes, I did. I also set the port to 8080, as I think it says in the newest edition of the book. One thing to note is the rest of the server functionality is intact, the only thing that doesn't work is the images.
Have you looked at the images directory ? Are they effectively .png images ?

Have you checked also menuItems ?
add somewhere
Code Block
print("menuItems", menuItems)

There are images with the .png extension in the folder and I can open them. I can reach them in a browser if I exclude .png from the imageURL but in code this results in a request timed out error. In menuItems the imageURL property does include the extension, just as in the JSON returned from the server on a fetchMenuItems request.
I found a solution that, while not solving the problem, does let me continue on the project. It seems that older versions of the Open Restaurant app do not have this bug. I found someone who uploaded an older version in his old project files here. So while the problem persists, at least there's a workaround for those who need it now?

Still, the current version needs to be fixed, or have the guide changed. Can't find any contact information to the author, so I hope this is the right place for this?
Develop in Swift Open Restaurant program has issues
 
 
Q