模式生成命令上的 API 平台 OpenSSL 错误

问题描述

我在基于 Api 平台发行版 2.6.4 版(我也在 master 上复制)全新安装的架构生成方面遇到错误
我遵循了文档:https://api-platform.com/docs/schema-generator/getting-started/

api/config/schema.yaml

# api/config/schema.yaml
# The list of types and properties we want to use
types:
    # Parent class of Person
    Thing:
        properties:
            name: ~
    Person:
        properties:
            familyName: ~
            givenname: ~
            additionalName: ~
            address: ~
    PostalAddress:
        # disable the generation of the class hierarchy for this type
        parent: false
        properties:
            # Force the type of the addressCountry property to text
            addressCountry: { range: "Text" }
            addressLocality: ~
            addressRegion: ~
            postOfficeBoxNumber: ~
            postalCode: ~
            streetAddress: ~

日志:

/srv/api # vendor/bin/schema generate src/ config/schema.yaml
PHP Warning:  SimpleXMLElement::__construct(): SSL operation Failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify Failed in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157

Warning: SimpleXMLElement::__construct(): SSL operation Failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify Failed in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157
PHP Warning:  SimpleXMLElement::__construct(): Failed to enable crypto in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157

Warning: SimpleXMLElement::__construct(): Failed to enable crypto in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157
PHP Warning:  SimpleXMLElement::__construct(https://purl.org/goodrelations/v1.owl): Failed to open stream: operation Failed in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157

Warning: SimpleXMLElement::__construct(https://purl.org/goodrelations/v1.owl): Failed to open stream: operation Failed in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157
PHP Warning:  SimpleXMLElement::__construct(): I/O warning : Failed to load external entity "https://purl.org/goodrelations/v1.owl" in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157

Warning: SimpleXMLElement::__construct(): I/O warning : Failed to load external entity "https://purl.org/goodrelations/v1.owl" in /srv/api/vendor/api-platform/schema-generator/src/Command/GenerateCommand.PHP on line 157

In GenerateCommand.PHP line 157:
                                     
  String Could not be parsed as XML  
                                     

generate [<output> [<config>]]

这似乎是一个 SSL 问题,我不知道它是否链接到了 caddy 容器,因为 ssl 在导航器上没有按预期工作。 有什么想法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...