attempt to index field 'http' (a nil value)
xcw0754 opened this issue · 2 comments
xcw0754 commented
From this page: https://doc.dovecot.org/admin_manual/lua/#lua-api
I see this:
dovecot.http.client({timeout=milliseconds, max_attempts=number, debug=boolean})
Create a new http client object that can be used to submit requests to remote servers.
And http client code:
...
local http_client = dovecot.http.client {
timeout = 10000;
max_attempts = 3;
debug = true;
}
...
I got dovecot's log:
Apr 8 02:09:13 ubuntua dovecot: auth: Fatal: passdb-lua: initialization failed: lua_pcall(/etc/dovecot/auth.lua) failed: /etc/dovecot/auth.lua:14: attempt to index field 'http' (a nil value)
dovecot version: 2.3.18
The question is: Does dovecot contains http client in lua plugin?
cmouse commented
Hi!
This feature will be available in 2.3.19. Seems the documentation isn't clear enough about this.
xcw0754 commented
Hi!
This feature will be available in 2.3.19. Seems the documentation isn't clear enough about this.
OK, Thank you