Retry support for non 2xx/3xx

オープン
#172 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
php
領域
api

調査の方向性

まず issue #170 と PHP SDK の現在の request および retry の経路を読み、意図された実装の境界を理解してください。413 を含む、non-2xx および 3xx のレスポンスに対する動作を確認し、その際 SDK の best-effort 制約を維持してください。issue にはファイルやテストの指定はありません。

索引モデルが issue の本文から書いたものです。

説明

enhancement
Description

The PHP SDK does not retry if the API returns non-2xx and 3xx; 413 is also not an exception
This SDK only retries if there's no connection, timeouts, or network failures
The reason is that the PHP SDK is single-threaded and would slow down the hosting app if the API has outages, etc
For any of those cases, the SDK delivery is best effort and may have data loss

We can do this when we implement https://github.com/PostHog/posthog-php/issues/170

主要言語
PHP
スター
32
フォーク
36
平均マージ
1日 18時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PostHog/posthog-php のほかの issue

PostHog/posthog-php の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。