mongorover icon indicating copy to clipboard operation
mongorover copied to clipboard

Unknown yield error in lua 5.1

Open prabhakar-pal opened this issue 8 years ago • 3 comments

Whenever we invoke mongorover calls from lua 5.1, we are receiving "Unknown yield" error . This subsequently leads to the failure of the application using mondorover

prabhakar-pal avatar Dec 19 '16 13:12 prabhakar-pal

Can you give me more information?

Are you installing from source or from luarocks? What environment are you running on? What version of the C driver did you install? Can you run tests whatsover? Do you have a code snippet that can show me how and why this fails? Stacktraces would be nice too.

christopherjwang avatar Dec 20 '16 01:12 christopherjwang

Hello Chris,

I am using Luajit with Lua version 5.1. My intention was to integrate OpenResty-Kong with MongoDB. For this, I am using Mongorover.

To recreate this issue, all iI need to do is to import ("require") the mongorover module. After this, whenever I make any REST call to Kong, i get the "Unknown Yield" error message.

Regarding unit testing, after this change, I am able to make the mongodb database called (insert/find/remove) without any issues, via Mongorover.

regards, Prabhakar

On Tue, Dec 20, 2016 at 7:29 AM, Christopher Wang [email protected] wrote:

Can you give me more information?

Are you installing from source or from luarocks? What environment are you running on? What version of the C driver did you install? Can you run tests whatsover? Do you have a code snippet that can show me how and why this fails? Stacktraces would be nice too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mongodb-labs/mongorover/issues/77#issuecomment-268133054, or mute the thread https://github.com/notifications/unsubscribe-auth/AUATB3sngdDOpdsys20O64n674grDQHuks5rJzaJgaJpZM4LQt6g .

prabhakar-pal avatar Dec 20 '16 08:12 prabhakar-pal

Hello Chris,

I need to figure out a way to recreate the issue in a standalone manner. But please note that the change that I suggested is as per the Lua c-wrapper interface. I suspect the stack is corrupted if we don't follow the interface and this is manifesting in a weird manner in arbitrary locations.

regards, Prabhakar

On Tue, Dec 20, 2016 at 2:14 PM, Prabhakar Palanivel < [email protected]> wrote:

Hello Chris,

I am using Luajit with Lua version 5.1. My intention was to integrate OpenResty-Kong with MongoDB. For this, I am using Mongorover.

To recreate this issue, all iI need to do is to import ("require") the mongorover module. After this, whenever I make any REST call to Kong, i get the "Unknown Yield" error message.

Regarding unit testing, after this change, I am able to make the mongodb database called (insert/find/remove) without any issues, via Mongorover.

regards, Prabhakar

On Tue, Dec 20, 2016 at 7:29 AM, Christopher Wang < [email protected]> wrote:

Can you give me more information?

Are you installing from source or from luarocks? What environment are you running on? What version of the C driver did you install? Can you run tests whatsover? Do you have a code snippet that can show me how and why this fails? Stacktraces would be nice too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mongodb-labs/mongorover/issues/77#issuecomment-268133054, or mute the thread https://github.com/notifications/unsubscribe-auth/AUATB3sngdDOpdsys20O64n674grDQHuks5rJzaJgaJpZM4LQt6g .

prabhakar-pal avatar Dec 20 '16 11:12 prabhakar-pal