Lua Expat and location.capture error

33 views
Skip to first unread message

Nicolas Adrian

unread,
Oct 7, 2021, 11:59:02 AM10/7/21
to openre...@googlegroups.com
I'm attempting to fetch a ressource with location.capture from within a callback via LuaExpat ( https://matthewwild.co.uk/projects/luaexpat/manual.html#parser ), which is written in C with a lua api.
I get an error "attempt to yield across C-call boundary". Correct me if I'm wrong, Is this because location.capture tries to yield from a C context ?
Any workaround ?

李俊龙

unread,
Oct 9, 2021, 10:26:07 AM10/9/21
to openresty-en
Yes, you are right.
you can save the parse result in a table and then process in the lua context.

Nicolas Adrian

unread,
Oct 11, 2021, 6:12:18 AM10/11/21
to openresty-en

Alright thanks.
Reply all
Reply to author
Forward
0 new messages