api-platform.com - 安装框架(问题 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.yaml 中删除清漆
推荐阅读
- apache-spark - Py4JJavaError:作业因阶段失败而中止:阶段 460.0 中的任务 0 失败 4 次
- spring-batch - 对 CompositeItemWriter 的多个查询
- scala - 多个测试类的 MiniDFS 集群设置抛出 java.net.BindException: Address already in use
- flutter - flutter_bloc many Event to many BlocBuilder
- c# - 以 lambda 表达式作为输入参数的 xUnit 模拟方法
- design-patterns - 如何在使用 Point 绘制的路径上绘制以下图案
- go - 如何为某种场景创建结构
- git - 去使用 ssh 而不是 https(不在 github 上)
- vuejs2 - Vue - 使用 Vue.componet 或 Async 组件更改根组件
- flutter - How to use Visibility to hide some elements in Flutter