The honest answer is, yes, ideally questions containing very little text and a hyperlink or 2 should ideally be rejected as well; unfortunately they are not.
Although I can't know what truly went through the OP's head, I suspect I can accurately guess what did.
The OP wrote their question, as it appears in revision 3, but actually put the text of the code, and error, in the body of the question as text (hopefully all in a code fence/block)
The OP attempted to submit the question, and received the following error:
"It looks like your post is mostly code; please add some more details.
This is because the ratio of characters within a code fence/block compared to those outside of the block was too high. The number of non-code characters required to code characters is described in this answer.
Instead of reading the error in full, the OP likely simply saw "Too much code", and thus to address this, they decided to remove the code.
To ensure that the code was still in the question, however, they posted it as an image. As they have 1 reputation this could not be inline images.
Initially this wasn't presented in the first revision because they removed the hyperlink for some reason (see original source).
As the new question ended up being a single sentence, with no code (and no images, though this wouldn't have impacted the acceptability) and passed the minimum character threshold, it was accepted and posted.
They then made two further attempts to make the images visible in the question.
Though the OP was informed that images of code isn't acceptable, they then made a claim that they were unable as they "dont know how to add more message [sic]"; I read this as they don't know how to use the edit feature, but this seems odd because they had indeed made 2 edits, thus did know how to add more to the content of the question.
So, firstly, the system did not actually allow the user to replace the code with images. Although the system likely would have allowed them to post it had they included the hyperlinks the original question posted was simply the following:
I just learn about API on 100 DAYS of bootcamp web development by
Dr. Angela Yu and i got this eror. Can anyone know how to fix this
[1]: https://i.sstatic.net/8ktHC.png
Though there is a hyperlink in there to an image, it's not actually shown in the body of the question.
Next, stopping such things; honestly, I feel that the minimum character requirements are too low nowadays. Questions like "How do I do a Square Root in Python?" were acceptable when Stack Overflow first came out, but such questions really aren't any more; they would get heavily downvoted due to a lack of research and likely closed as a duplicate.
I also agree that hyperlinks should not contribute to the minimum number of characters, however, this wouldn't have solved the problem here anyway as (as mentioned before), there was no hyperlink in the original revision.
Hopefully the Staging Ground will help address this; as questions such as this will be reviewed before getting posted (and being able to be answered) stopping such poor quality content ever getting to the "main site". If the Staging ground is a successful project is another question entirely; it heavily relies on reviewers or passionate curators. Only time will tell if enough users (volunteers) will put in the effort.