Apparently the integration does not work because of the message in the logs, however, when checking the integration if it worked, the data arrived and I could handle it correctly.
The error in the logs persisted. In the integration file, after handling the data, there was an error, which generated the 500 response from the server.
Fixed the integration the error disappeared and the integration continues to work correctly.