Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minetest.request_http_api() returns nil, despite the mod being trusted. #11

Open
LandonAConway opened this issue Aug 31, 2022 · 3 comments

Comments

@LandonAConway
Copy link

This mod does not run in MT 5.6.0 and above. I got the following error.

2022-08-30 19:47:03: ERROR[Main]: ModError: Failed to load and run script from /root/programs/minetest_lss/bin/../games/minetest_game/mods/discordmt/init.lua: 2022-08-30 19:47:03: ERROR[Main]: ...t_lss/bin/../games/minetest_game/mods/discordmt/init.lua:117: attempt to index upvalue 'http' (a nil value) 2022-08-30 19:47:03: ERROR[Main]: stack traceback: 2022-08-30 19:47:03: ERROR[Main]: ...t_lss/bin/../games/minetest_game/mods/discordmt/init.lua:117: in function 'send' 2022-08-30 19:47:03: ERROR[Main]: ...t_lss/bin/../games/minetest_game/mods/discordmt/init.lua:162: in main chunk

And to answer the question, yes... minetest's .conf file has [discordmt] listed as a trusted mod for http requests

@debagos
Copy link

debagos commented Nov 1, 2022

This mod does not run in MT 5.6.0 and above

It does.

discordmt/init.lua:162: in main chunk
Line 162 ?
The init.lua was never longer than 153 lines...
So you made changes and broke it yourself.

@archfan7411 You can close this issue.

@rinzler100
Copy link

Actually, I got the same error but on line 113 @debagos

@debagos
Copy link

debagos commented Oct 20, 2024

@rinzler100 Did you add the mod to the secure.http_mods setting like explained in the setup guide?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants