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

no request object found? #60

Closed
dayongi opened this issue Mar 3, 2019 · 4 comments
Closed

no request object found? #60

dayongi opened this issue Mar 3, 2019 · 4 comments

Comments

@dayongi
Copy link

dayongi commented Mar 3, 2019

I used the openresty version 1.13.62, and I installed two openresty machines to do the test work. I followed the same test code in lua-resty-upstream-healthcheck, but the following error occurred, please help to answer, the first time I came into contact with openresty, thanks!

problem:
image

this is what I wrote in the init by lua block phase:
image

nginx.conf
image

image

@dayongi
Copy link
Author

dayongi commented Mar 3, 2019

I now know that the problem is that I wrote the wrong phase

@agentzh
Copy link
Member

agentzh commented Mar 3, 2019

@dayongi Yes, such error message is usually a clear indicator for the wrong execution context. Look at the documentation of this library for the correct usage.

@agentzh agentzh closed this as completed Mar 3, 2019
@dayongi
Copy link
Author

dayongi commented Mar 4, 2019

@agentzh I was really careless. Thank you for your reply

@dayongi
Copy link
Author

dayongi commented Mar 4, 2019 via email

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

2 participants