'Overleaf doesn't insert picture and shows empty rectangle [duplicate]
This is the code snippet. The image is in the same location as the main .tex file and all I get is a rectangle with the name of the image.
\begin{figure}[htp]
\centering
\includegraphics[width=4cm]{B7oiUtYdkK-rb-case-3.png}
\caption{Insertie cazul 3}
\end{figure}
Solution 1:[1]
This can happen when you have the document set to draft mode.
You may have set it as document class option like \documentclass[12pt,a4paper,draft]{article}, or maybe it is selected in the compiler options, as shown in this guide: https://www.overleaf.com/learn/how-to/Images_not_showing_up
The Fast [draft] mode skips some steps in order to speed-up compilation, and often doesn't show included images.
Solution 2:[2]
The 502 (Bad Gateway) status code indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request. if the service returns an invalid or malformed response, instead of returning that nonsensical information to the client.
Possible causes: taken from
- check protocol and port number during REST call
- The load balancer received a TCP RST from the target when attempting to establish a connection.
- The load balancer received an unexpected response from the target, such as "ICMP Destination unreachable (Host unreachable)", when attempting to establish a connection.
- The target response is malformed or contains HTTP headers that are not valid.
- The target closed the connection with a TCP RST or a TCP FIN while the load balancer had an outstanding request to the target.
you can enable cloudWatch log for further debugging.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | EdoCrippaOfficial |
| Solution 2 | MrOverflow |

