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

websocket connect error:'matched_ssl' (a nil value) #9962

Closed
wwwsky86 opened this issue Aug 3, 2023 · 4 comments
Closed

websocket connect error:'matched_ssl' (a nil value) #9962

wwwsky86 opened this issue Aug 3, 2023 · 4 comments

Comments

@wwwsky86
Copy link

wwwsky86 commented Aug 3, 2023

Description

Using the macOS chrome browser, the following error may occur

2023/08/03 15:26:33 [error] 49#49: 263477 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/init.lua:332: attempt to index local 'matched_ssl' (a nil value)
stack traceback:
coroutine 0:
/usr/local/apisix/apisix/init.lua: in function 'verify_https_client'
/usr/local/apisix/apisix/init.lua:560: in function 'http_access_phase'
access_by_lua(nginx.conf:408):2: in main chunk, client: 172.20.30.121, server: _, request: "GET /96d2d3a4caafa1fc41c66833ab95ed4d/18090/ HTTP/1.1", host: "abc.
.cn"

Use safari browser or linux curl command or window chrome , the return of apisix is OK (http code 200)

@Sn0rt
Copy link
Contributor

Sn0rt commented Aug 3, 2023

I can't help you with your description.

he key information is as follows

  1. Your router, upstram configuration information, etc.
  2. How does your client trigger this issue?
  3. APISIX version number
  4. Simplify the scene where the problem occurs as much as possible, and do not rely on non-essential components.

@wwwsky86
Copy link
Author

wwwsky86 commented Aug 3, 2023

路由route
{"key":"/apisix/routes/470401892212540063","value":{"id":"470401892212540063","host":"XX.XX.COM","methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE","PURGE"],"plugins":{"proxy-rewrite":{"regex_uri":["^/71785e9a41efdec8b79ddf4d4a8d4604/8888/(.)","/$1"],"scheme":"https"},"prometheus":{"_meta":{"disable":false}}},"name":"pre-001","update_time":1691040620,"enable_websocket":true,"create_time":1689910976,"upstream":{"keepalive_pool":{"requests":1000,"size":320,"idle_timeout":3600},"pass_host":"pass","type":"roundrobin","timeout":{"send":60,"connect":60,"read":3600},"nodes":[{"host":"172.20.30.186","port":8888,"weight":1}],"scheme":"http"},"uri":"/71785e9a41efdec8b79ddf4d4a8d4604/8888/","status":0},"modifiedIndex":1189,"createdIndex":70}

版本version
3.4.0

client trigger this issue
image

@wwwsky86
Copy link
Author

wwwsky86 commented Aug 7, 2023

Rollback to Apisix 3.3.0 solve the problem
image

@Revolyssup
Copy link
Contributor

@wwwsky86 you can close the issue then

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

3 participants