Closed bnferguson closed 11 years ago
Here's the full error output in nginx's error log: https://gist.github.com/bnferguson/24f40f891b3e04501408
Sorry for late response, please try to add "local" ahead of mongol:
local mongo = require "resty.mongol"
conn = mongo:new()
Progress! I could have sworn I tried that but apparently I did not. Thanks so much! (now to pick my local Lua experts brain as to what I was missing)
This is marked as resolved but it's still broken for me (even by putting local). I've opened a new issue over at #15 but I was just wondering if there was anything I might have missed that this ticket was resolved by.
Running into this error even with the simplest code.
Get the "attempt to call method 'new' (a nil value)" error on line 2.
Running off of github clone. Basic Lua hello world is working in Openresty. Any clues?