400 websocket_error: ApiIdParam id exceeds 64 chars during iOS streaming
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
## Summary
When connected and streaming from an up-to-date iOS app, short commands triggered a 400 bad_request with a websocket_error. One command was simply `go`.
## Error
```
✗ Execution failed: CAPIError: 400 {"error":{"code":"bad_request","type":"websocket_error","message":"[ApiIdParam] [input[1].id] [string_above_max_length] Invalid 'input[1].id': string too long. Expected a string with maximum length 64, but got a string with length 380 instead."}} (Request ID: 00000-ef2d3e2a-2e1c-4bdd-b810-4006d9f709c7)
```
## Context
- Connected and streaming from the iOS app
- The app was up to date
- Commands were short
- One command was just `go`
## Expected
Commands should execute normally, or the client should validate the websocket id before sending it.
## Actual
The request failed with a 400 because `input[1].id` was 380 characters, above the 64-character limit.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Aucun fichier ni test n’est nommé. Commencez par suivre la construction de la requête de streaming websocket et la génération de input[1].id, puis reproduisez le problème avec une commande courte telle que `go`. C’est terminé lorsque la requête de streaming n’envoie plus d’id de plus de 64 caractères, ou lorsque le client signale l’échec de validation avant de l’envoyer.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- ios
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100