Failed to use Openapi SDK in Actix-web async handler
まだ誰も着手していません。
評価
調査の方向性
Start by reading the SDK client’s async methods and the Actix-web handler example in the issue. Reproduce the “future cannot be sent between threads safely” error with the shown get_user call, then identify which SDK future or value triggers it. Done means documenting or implementing a compatible integration and confirming the example compiles.
索引モデルが issue の本文から書いたものです。
説明
Description:
Trying to call the Openapi SDK client from an Actix-web async handler:
async fn get_user() -> impl Responder {
let client = openapi_sdk::Client::new("API_KEY");
let user = client.get_user(123).await.unwrap();
HttpResponse::Ok().json(user)
}
Getting: error: future cannot be sent between threads safely.
Probably related to Actix’s runtime. How should we properly integrate Openapi SDK async calls with Actix?
- 主要言語
- Rust
- スター
- 29
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openapi/openapi-rust-sdk のほかの issue
-
Propagating Openapi SDK errors in existing Result pipeline対応中かも @manish-raana が 158 日前に担当しました。 オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
openapi/openapi-rust-sdk#11 ·
-
documentation enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
openapi/openapi-rust-sdk#10 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
documentation good first issue
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
-
help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
openapi/openapi-rust-sdk の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
pop-os/cosmic-comp#2956 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
libp2p/rust-libp2p#6694 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
EmbarkStudios/cargo-deny#910 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
tursodatabase/turso#10054 ·
メンテナーはふだん 1 日以内に返信
-
build: Update rust version対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ibm-granite-community/granite-cli#229 ·
メンテナーはふだん 1 日以内に返信