Bug: stitch count off by 1 between header (X-Stitch-Count) and actual file content #10

Closed
opened 2026-08-27 15:28:11 +00:00 by Mark · 0 comments
Owner

Summary

For the same digitize response, X-Stitch-Count header reports one value while the actual file content (parsed by pyembroidery) reports one more.

Reproduction

HTTP /v1/export response header: X-Stitch-Count: 139916
pyembroidery stitch count for the same PES: 139917

Likely cause

Off-by-one in the writer loop — possibly an END record counted as a stitch, or a coordinate boundary case. Cosmetic, but the header should be authoritative.

Severity

LOW

## Summary For the same digitize response, `X-Stitch-Count` header reports one value while the actual file content (parsed by pyembroidery) reports one more. ## Reproduction ``` HTTP /v1/export response header: X-Stitch-Count: 139916 pyembroidery stitch count for the same PES: 139917 ``` ## Likely cause Off-by-one in the writer loop — possibly an `END` record counted as a stitch, or a coordinate boundary case. Cosmetic, but the header should be authoritative. ## Severity LOW
Mark 2026-08-29 23:31:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/easystitch-service#10
No description provided.