diff --git a/rog/views.py b/rog/views.py index f5d3e94..71459b0 100755 --- a/rog/views.py +++ b/rog/views.py @@ -553,8 +553,6 @@ def LocationInBound(request): logger.debug(f"Number of locations found: {len(locs)}") - print(f"====== {len(locs)} check points is loaded.. ======") - if len(locs) > 200: return JsonResponse({"too_many_points": True}, safe=False, status=500) else: @@ -604,7 +602,6 @@ def LocationInBound2(request): logger.debug(f"Final query: {base_query.query}") locs = base_query logger.debug(f"Number of locations found: {len(locs)}") - print(f"====== {len(locs)} check points is loaded.. ======") if len(locs) > 200: return JsonResponse({"too_many_points": True}, safe=False, status=500) @@ -663,8 +660,6 @@ def LocationInBound_orig(request): logger.debug(f"Number of locations found: {len(locs)}") - - print(f"====== {len(locs)} check points is loaded.. ======") ''' if(cat): if is_rog: diff --git a/外部システムAPI仕様書.md b/外部システムAPI仕様書.md index 98b0586..fa251b7 100644 --- a/外部システムAPI仕様書.md +++ b/外部システムAPI仕様書.md @@ -1016,6 +1016,7 @@ curl -X PUT "/entry/123/update-status/" \ | 404 | リソースが見つからない | | 409 | 重複エラー | | 500 | サーバーエラー | +| 502 | Bad Gateway(プロキシサーバーエラー) | ## 共通エラーレスポンス @@ -1175,6 +1176,7 @@ curl -X PUT "/entry/123/update-status/" \ 5. **エラーハンドリング**: APIからのエラーレスポンスを適切に処理してください 6. **エントリー情報同期**: アプリ起動時は `/user/current-entry-info/` でエントリー情報を同期してください 7. **ステータス更新**: エントリーステータス更新API は後方互換性のため新旧フィールド名をサポートしています +8. **502エラー対策**: 一時的な502 Bad Gatewayエラーが発生した場合は、数秒待ってから再試行してください(特に大量データ取得時) ---