Token files aren't shared between Python and the other SDKs (access_exp vs accessExp)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go, java, python, typescript
調査の方向性
Start with python/src/bitpin_sdk/token_store.py and compare its JSON serialization with the TypeScript, Go, and Java token stores; inspect Java’s reader for its handling of both key spellings. Update Python’s written keys and ensure every reader accepts both spellings for one release. Add a cross-language test that reads files written by each SDK; done means all four formats can be read without forcing reauthentication.
索引モデルが issue の本文から書いたものです。
説明
FileTokenStore is meant to let bots in different languages on one host share tokens, so they stay under the authenticate limit of 3 requests per minute per IP. The JSON keys differ, though:
- Python writes
access_exp/refresh_exp(dataclasses.asdict(tokens)inpython/src/bitpin_sdk/token_store.py). - TypeScript, Go and Java write
accessExp/refreshExp.
The key id (PBKDF2) is the same everywhere, so every language finds the other's file. Python then fails to read a Go/TS/Java file and authenticates again, and Go and TS can't read a Python file. Java already reads both spellings.
Fix: pick accessExp (three of the four SDKs) and make Python write it. Every reader should accept both for one release, and a cross-language test should read a file written by each SDK.
- 主要言語
- Python
- スター
- 0
- フォーク
- 0
- 平均マージ
- 28分
- マージ済み PR(30日)
- 20
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitpin-dev/bitpin-sdk のほかの issue
-
documentation java release
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bitpin-dev/bitpin-sdk#32 ·
メンテナーはふだん 1 日以内に返信
-
docs help wanted i18n
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bitpin-dev/bitpin-sdk#8 ·
メンテナーはふだん 1 日以内に返信
-
enhancement go java websocket
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
bitpin-dev/bitpin-sdk#33 ·
メンテナーはふだん 1 日以内に返信
-
enhancement java
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
bitpin-dev/bitpin-sdk#31 ·
メンテナーはふだん 1 日以内に返信
-
release typescript
難易度 4/5 1〜2日 初心者へのやさしさ 15/100
bitpin-dev/bitpin-sdk#12 ·
メンテナーはふだん 1 日以内に返信
bitpin-dev/bitpin-sdk の issue をすべて見る
似ている issue
-
PluginProvider.storeInstance races and clobbers the dedup cache for concurrent loads対応中かも @Wilson0511 が今日担当しました。 オープンneeds-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
-
community documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kagent-dev/kagent#3462 ·
メンテナーはふだん 1 日以内に返信