使用 buffalo 框架,在通过引导它之后 buffalo new <project_name>
我正在尝试运行buffalo dev
期望看到:
在端口 3000 上运行的项目
但我收到了这些错误消息
actions/app.go:4:2: missing go.sum entry for module providing package github.com/gobuffalo/buffalo (imported by sc_api/actions); to add:go get sc_api/actions
actions/app.go:13:2: missing go.sum entry for module providing package github.com/gobuffalo/mw-csrf (imported by sc_api/actions); to add: go get sc_api/actions
Run Code Online (Sandbox Code Playgroud)
actions/app.go 已由 buffalo 生成,但如果您想知道错误是否与此文件中的导入语句匹配。
// app.go
package actions
import (
"github.com/gobuffalo/buffalo" // 1rst line
"github.com/gobuffalo/envy"
forcessl "github.com/gobuffalo/mw-forcessl"
paramlogger "github.com/gobuffalo/mw-paramlogger"
"github.com/unrolled/secure"
"sc_api/models"
"github.com/gobuffalo/buffalo-pop/v2/pop/popmw"
csrf "github.com/gobuffalo/mw-csrf" // 2nd line
i18n "github.com/gobuffalo/mw-i18n"
"github.com/gobuffalo/packr/v2"
)
Run Code Online (Sandbox Code Playgroud)
这是什么意思 ?我如何解决它 …
我使用 ElasticSearch 8.1.2 和 Nest 17.7.1
var settings = new ConnectionSettings(new Uri("http://localhost:9200/"))
.CertificateFingerprint("A5:8B:07:2D:A9:E8:53:CE:GB:C0:15:CE:6E:DF:9C:65:89:A3:AC:D2:94:2C:46:BD:85:23:20:6B:F2:69:B3:88")
.BasicAuthentication("elastic", "-L-uXRg5=iOXGFgebP68")
.DeadTimeout(TimeSpan.FromSeconds(300))
.DefaultIndex("people");
var client = new ElasticClient(settings);
var person = new Person
{
Id = 1,
FirstName = "Martijn",
LastName = "Laarman"
};
var asyncIndexResponse = await client.IndexDocumentAsync(person);
return Task.CompletedTask;
Run Code Online (Sandbox Code Playgroud)
错误消息:消息 =“由于产品检查调用不成功,客户端无法验证服务器是否为 Elasticsearch。如果服务器运行不受支持的产品,某些功能可能不兼容。调用:状态代码未知,来自:GET /”
我正在通过以下 docker 文件在云服务器上构建 docker 映像:
# base image
FROM python:3
# add python file to working directory
ADD ./ /
# install and cache dependencies
RUN pip install --upgrade pip
RUN pip install RUST
RUN pip install transformers
RUN pip install torch
RUN pip install slack_sdk
RUN pip install slack_bolt
RUN pip install pandas
RUN pip install gensim
RUN pip install nltk
RUN pip install psycopg2
RUN pip install openpyxl
......
Run Code Online (Sandbox Code Playgroud)
安装transformers包时出现以下错误:
STEP 5: RUN pip install transformers
Collecting transformers …Run Code Online (Sandbox Code Playgroud) 现在可以禁用 ssl/https 但不能禁用 SecurityPlugin 本身吗?
以前,在 docker-compose 中,我只需禁用“ plugins.security.ssl.http.enabled=false”即可做到这一点。现在我使用helm安装,但不起作用。OpenSearch 想要一个始终证书。
几个小时以来我一直在尝试不同的选择。“ DISABLE_SECURITY_PLUGIN=true” - 完全禁用安全性对我来说不是一个选择。
我总是收到以下错误。
Likely root cause: OpenSearchException[plugins.security.ssl.transport.keystore_filepath or plugins.security.ssl.transport.server.pemcert_filepath and plugins.security.ssl.transport.client.pemcert_filepath must be set if transport ssl is requested.]
Run Code Online (Sandbox Code Playgroud)
我的
opensearch.yml: |
cluster.name: opensearch-cluster
network.host: 0.0.0.0
plugins:
security:
ssl:
transport:
enabled: false
enforce_hostname_verification: false
http:
enabled: false
allow_unsafe_democertificates: false
allow_default_init_securityindex: true
audit.type: internal_opensearch
enable_snapshot_restore_privilege: true
check_snapshot_restore_write_privileges: true
restapi:
roles_enabled: ["all_access", "security_rest_api_access"]
system_indices:
enabled: true
indices:
[
".opendistro-alerting-config",
".opendistro-alerting-alert*",
".opendistro-anomaly-results*",
".opendistro-anomaly-detector*",
".opendistro-anomaly-checkpoints",
".opendistro-anomaly-detection-state",
".opendistro-reports-*",
".opendistro-notifications-*",
".opendistro-notebooks",
".opendistro-asynchronous-search-response*", …Run Code Online (Sandbox Code Playgroud) 我正在docker 容器中针对我的 django 项目运行mypy版本。0.910使用这个命令:
mypy --install-types --non-interactive --config-file=../setup.cfg "$@"
Run Code Online (Sandbox Code Playgroud)
在过去的 6 个月左右的时间里,它一直运行良好,但有时会出现以下错误:
Traceback (most recent call last):
File "/usr/local/bin/mypy", line 11, in <module>
sys.exit(console_entry())
File "/usr/local/lib/python3.6/dist-packages/mypy/__main__.py", line 11, in console_entry
main(None, sys.stdout, sys.stderr)
File "mypy/main.py", line 96, in main
File "mypy/main.py", line 165, in run_build
File "mypy/build.py", line 179, in build
File "mypy/build.py", line 254, in _build
File "mypy/build.py", line 2697, in dispatch
File "mypy/build.py", line 3014, in process_graph
File "mypy/build.py", line 3089, in process_fresh_modules
File …Run Code Online (Sandbox Code Playgroud) 我在查询项目时收到上述错误:
{
"error": {
"root_cause": [],
"type": "reduce_search_phase_exception",
"reason": "[reduce] ",
"phase": "query",
"grouped": true,
"failed_shards": [],
"caused_by": {
"type": "class_cast_exception",
"reason": "java.lang.Float cannot be cast to java.lang.Double"
}
},
"status": 503
}
Run Code Online (Sandbox Code Playgroud)
我的查询是:
GET items/item/_search/
{
"query": {
"constant_score": {
"filter": {
"bool": {
"must": ....
}
}
}
},
"sort": [{"order": {"order": "desc", "missing": "_last"}}, {"popularity": {"order": "desc", "missing": "_last"}}],
"size": 1000,
"from": 0
}
Run Code Online (Sandbox Code Playgroud)
我有一个线索,这是因为“排序”中的“流行度”字段,删除它时不会出现错误。
我的映射是:
"popularity": {
"type": "double"
},
Run Code Online (Sandbox Code Playgroud)
我的问题实际上是如何修复引发此问题的无效文档?我怎样才能找到它?
python ×2
asp.net-core ×1
buffalo ×1
django ×1
docker ×1
go ×1
json ×1
mypy ×1
nest ×1
opensearch ×1