安装框架(问题 cURL 错误 6:无法解析主机:缓存代理) [英] Installing the Framework (Problem cURL error 6: Could not resolve host: cache-proxy)
问题描述
我尝试安装 api-platform:https://api-platform.com/docs/分布/
I tried to install api-platform: https://api-platform.com/docs/distribution/
启动后我在日志中看到api-platform-242_cache-proxy_1"
after starting I see in the log "api-platform-242_cache-proxy_1"
│ Error: │
│ Message from VCC-compiler: │
│ Expected return action name. │
│ ('/usr/local/etc/varnish/default.vcl' Line 67 Pos 13) │
│ return (miss); │
│ ------------####-- │
│ Running VCC-compiler failed, exited with 2 │
│ VCL compilation failed
如果我使用api(post问候语),响应码是500"hydra:description": "cURL 错误 6:无法解析主机:缓存代理(参见 http://curl.haxx.se/libcurl/c/libcurl-errors.html)",跟踪":[
If I use the api (post greeting), the response code is 500 "hydra:description": "cURL error 6: Could not resolve host: cache-proxy (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)", "trace": [
尽管如此,实体仍被插入.
Nevertheless the entity is still inserted.
此外,我尝试了没有 docker (Apache) 的 api 平台.我删除了 .env 文件中的 VARNISH_URL=http://cache-proxy 行.然后返回码是 500"cURL 错误 3:格式错误(参见 http://curl.haxx.se/libcurl/c/libcurl-errors.html)"
Furthermore I tried the api-platform without docker (Apache). I removed the line VARNISH_URL=http://cache-proxy in the .env file. Then the return code is 500 with "cURL error 3: malformed (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)"
你有什么想法吗?
亲切的问候鲁迪
推荐答案
从 api_platform.yaml 中移除 varnish
Remove varnish from api_platform.yaml
这篇关于安装框架(问题 cURL 错误 6:无法解析主机:缓存代理)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!