首页 > 解决方案 > 安装框架(问题 cURL 错误 6:无法解析主机:缓存代理)

问题描述

我尝试安装 api-platform:https ://api-platform.com/docs/distribution/

开始后,我在日志中看到“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 greeting),响应代码是 500 "hydra:description": "cURL error 6: Could not resolve host: cache-proxy (参见http://curl.haxx.se/libcurl/c/ libcurl-errors.html )", "trace": [

尽管如此,实体仍然被插入。

此外,我尝试了没有 docker(Apache)的 api 平台。我删除了 .env 文件中的 VARNISH_URL= http://cache-proxy行。然后返回码为 500,带有“cURL 错误 3:格式错误(参见http://curl.haxx.se/libcurl/c/libcurl-errors.html)”

你有什么主意吗?

亲切的问候卢迪

标签: api-platform.com

解决方案


从 api_platform.yaml 中删除清漆


推荐阅读