24.04.2023, 09:20
I have a script running to enter data in an influx database. This script suddenly stopped working. I copied part of the script for testing and I have the impression there is something wrong with the socket.http library.
I reduced the script to the following:
This generates an error: attempt to index field 'http' (a nil value). This code is in the original script which has been running for years.
At the same time a third party software has started giving the error:
attempt to call field 'tcp' ( a nil value).
i have already rebooted the system.
What could be wrong here?
Thanks.
I reduced the script to the following:
Code:
require 'ltn12'
require('socket.http')
socket.http.TIMEOUT = 15
This generates an error: attempt to index field 'http' (a nil value). This code is in the original script which has been running for years.
At the same time a third party software has started giving the error:
attempt to call field 'tcp' ( a nil value).
i have already rebooted the system.
What could be wrong here?
Thanks.