Use the rest.http module to request no resolver defined to resolve
, the error log prompts attempt to index local 'resp'
, and the code is as follows.
local resp, err = httpc:request_uri("http://xxx.com",{method = "GET",keepalive = false})
ngx.say( err)
Solution: add DNS
configuration, and add resolver
configuration in conf configuration file. As shown in the figure below
Read More:
- Lua: Error during loading: [string “/usr/share/wireshark/init.lua”]:45: dofile has been disabled
- [Solved] Failed to resolve: com.serenegiant:common:1.5.20
- [Solved] TDengine Error: Unable to resolve FQDN
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- [Solved] element-plus Error: Failed to resolve component
- [Solved] Warning: using directive refers to implicitly-defined namespace ‘std’
- [Solved] IDEA Error: Unable to resolve column XXXX
- The browser is compatible with IE11 “ReferenceError: ‘Promise’ is not defined” “ReferenceError: ‘Promise’ is not defined”
- How to Solve jQuery error: Uncaught ReferenceError: $ is not defined
- NPM Install Error: npm ERR! ERESOLVE unable to resolve dependency tree
- [Solved] Excel plug in installation failed: unable to resolve the value of property ‘type’
- [Solved] Visual studio 2022 error LNK2019: unable to resolve external symbol for
- Apache Altas Compile Error: [ERROR] Failed to execute goal on project atlas-testtools: Could not resolve
- Turn off eslint checksum and resolve formatting conflicts
- [Solved] Vscode error: Unable to resolve resource walkThrough://vscode_getting_started_page
- [Solved] Eval Error: Uncaught ReferenceError: False is not defined
- [How to Fix] Spring boot startup error: could not resolve placeholder
- if a proxy or similar is necessary `net.git-fetch-with-cli`, Rust Complete `Couldn‘t resolve host name (Coul
- [Solved] Error creating bean with name ‘braveHttpServerHandler‘ defined in class path
- AOP Error Cannot resolve reference to bean ‘txPointCut‘ while setting bean property ‘po