Send http request in jitsi prosody module

I am creating a custom lua module, I want to send and http request in the module so I am using net.http, but when I am sending the request I am getting the following error

attempt to concatenate local ‘conn_type’ (a nil value)

My code is:

http.request(“http://xxxxx”, { method = “GET”; } , function(result)
print(“Response:”, result);
end);

1 Like

When I update prosody to version 0.11.6 , it works fine

1 Like

Where can we change the version for prosody.

you can follow this https://www.linuxbabe.com/ubuntu/install-configure-prosody-xmpp-server-ubuntu-20-04, to install latest version of prosody

1 Like

thanks, but
running in prosoyd docker

I don’t use docker, I have jitsi self hosted on virutal machine (ubuntu os)

1 Like

where do you indicate your version prosody in ubuntu ?

you can use the following command to know the version:
prosodyctl about