DEV Community

Discussion on: Go Plugin Development on Kong

Collapse
 
ifree321 profile image
Karl Lu

Hi Simsek,
I have some problem when I use go plugin, can i ask for your help?
I hope to use kong.Response.GetStatus() or kong.ServiceResponse.Getxxx func then do some thing,bug i got error: 'function cannot be called in access phase (only in: header_filter, body_filter, log)'. Do you know how to fix it?

Collapse
 
_mertsimsek profile image
Mert Simsek

I'm not sure but there is an issue about this on Github repository. Perhaps, you could type this clarification about that.

github.com/Kong/kong/issues/4848