安装框架(问题cURL错误6:无法解析主机:cache-proxy) [英] Installing the Framework (Problem cURL error 6: Could not resolve host: cache-proxy)

查看:69
本文介绍了安装框架(问题cURL错误6:无法解析主机:cache-proxy)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装api平台: 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(问候语),则响应代码为500"hydra:description":"cURL错误6:无法解析主机:cache-proxy(请参阅

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中去除清漆

Remove varnish from api_platform.yaml

这篇关于安装框架(问题cURL错误6:无法解析主机:cache-proxy)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆