This may be a character encoding problem.
I had a similar problem when transferring some text fields between a MySQL database and DynamoDB. Some special characters, such as é , were invalid UTF-8 characters. And although they were replaced with a replacement character ( ), for some reason this generated a fatal error. As a result, I had to start checking all the fields before they were placed in the database, and convert the encoding to ASCII (which was the type in which all the other lines were set). Instead of , replacing unknown characters, was used ? , so it was not a “good” fix, but prevented the script from crashing.
This is my best guess, although all I need is an error similar to the one I received. And, seeing that this question was old, he thought that I would try to answer it if someone else met it like me.
user5240934
source share