Hello, I get the same bug.
I understood that the app answer to localhost:8080/images/menu Id
When you get the imageURL, you get the string localhost:8080/images/.png
So I fix the problem by replacing ".png" by "" fetchImage
.....
let urlString = url.absoluteString.replacingOccurrences(of: ".png", with: "")
let newURL = URL(string: urlString)!
let task = URLSession.shared.dataTask(with: newURL, completionHandler: {
(data, response, error) in
.....
But I'm stuck now in a network error for retrieving the image
2022-10-08 11:30:00.679214+0200 OrderApp[18210:1105466] [connection] nw_socket_handle_socket_event [C3.1:2] Socket SO_ERROR [61: Connection refused]
I noticed that when I try http://localhost:8080/images/3 in Firefox (Safari doesn't accept http), it works only one time after a stop/start on the Open restaurant App
HTTP/5.0 200 OK
Connection: keep-alive
Content-Type: image/png
Content-Length: 129526
connection: keep-alive
date: Sat, 08 Oct 2022 09:09:48 GMT
‰PNG
I wish I could finish this lesson :) !