Programming problems.
THE COMMON CAUSES
Outdated methods removed in current versions A library that does not exist or is named wrongly Missing error handling Assumptions about your environment
WHAT TO DO
Give it the exact error message.
"Here is the code and the error it produced. What is wrong?"
FOR VERSION PROBLEMS
State your versions in the prompt.
"I am using [language version] and [library version]."
FOR MISSING LIBRARIES
Verify the library actually exists before installing it.
Models occasionally reference packages that do not, and attackers have registered those names.
WHAT TO CHECK BEFORE RUNNING ANYTHING
That you understand what it does That you have a backup That you are not running it against live data first
FOR DATABASE WORK
Run the SELECT equivalent before any UPDATE or DELETE.
THE UNDERLYING RULE
Generated code is a suggestion. You are responsible for what you run.