我在服务器端渲染时遇到错误.
RENDERING ERROR: { [Error: Network error: request to https://api-dev.xyz.io/graphql failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: localhost. is not in the cert's altnames: DNS:*.xyz.io"]
graphQLErrors: null,
networkError:
{ [FetchError: request to https://api-dev.xyz.io/graphql failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: localhost. is not in the cert's altnames: DNS:*.xyz.io"]
name: 'FetchError',
message: 'request to https://api-dev.xyz.io/graphql failed, reason: Hostname/IP doesn\'t match certificate\'s altnames: "Host: localhost. is not in the cert\'s altnames: DNS:*.xyz.io"',
type: 'system',
errno: undefined,
code: undefined },
message: …Run Code Online (Sandbox Code Playgroud) 我使用 kafka 流减少功能,它创建了一些状态存储更改日志 kafka 内部主题(如 app-KSTREAM-REDUCE-STATE-STORE-0000000002-changelog )。
我想设置保留字节并将清理策略更改为删除以防止存储已满。所以我在 kafka 流代码中设置了以下配置:
Properties props = new Properties();
props.put(StreamsConfig.TOPIC_PREFIX + TopicConfig.RETENTION_BYTES_CONFIG, Constants.INTERNAL_TOPICS_RETENTION_BYTES);
props.put(StreamsConfig.TOPIC_PREFIX + TopicConfig.CLEANUP_POLICY_CONFIG, TopicConfig.CLEANUP_POLICY_DELETE);
KafkaStreams streams = new KafkaStreams(builder.build(), props);
Run Code Online (Sandbox Code Playgroud)
但是,当生成新主题时,仅将保留配置应用于新生成的内部主题,并且清理策略保持紧凑。
是否有任何遗漏的步骤?(或者是否可以将内部主题清理策略设置为删除?)
我使用 kafka 1.0.0版和 kafka-streams 1.0.0版
我想为一些OSRM API编写一个 swagger API 文档。有一个coordinates路径参数是:
格式为 {longitude},{latitude};{longitude},{latitude}[;{longitude},{latitude} ...] 的字符串。
例如:51.3462,32.5280;51.3452,32.5280;51.3619,32.5236
如何使 OpenAPI 3.0 中的这种格式不进行百分比编码?
允许使用分号(;),Query Parameters我们可以使用 allowReserved: true,但它在路径参数中不可用。
还有另一种选择是使用数组并利用序列化来使用style: matrix,但它有助于对象成为例如/point;x=20;y=30不是数组的对象。例如,它使数组/users/;id=3,4,5not /users/id=3;4;5。
有什么解决方案可以用分号而不是逗号来序列化数组吗?或者让类型为字符串并包含分号?
我知道不同的连接,但我想知道当我们运行这样的查询时使用了哪些连接:
select * from table1 t1, table2 t2
Run Code Online (Sandbox Code Playgroud)
例如,它是完全外连接还是自然连接?
另外,它在不同的数据库中是否具有独特的含义,或者都具有相同的含义?
更新:如果我们添加where子句怎么办?会一直这样吗inner join?
apache-kafka ×1
graphql ×1
node.js ×1
openapi ×1
postgresql ×1
react-apollo ×1
reactjs ×1
sql ×1
swagger ×1
swagger-ui ×1
url ×1