Commit 6c8e742
committed
fix(eu-data-act): /list HTTP 404 'No files available' is cold-start, not rotation
Right after the user activates a continuous data request the portal
returns HTTP 404 with body 'No files available for this request.' on
the /list endpoint until the car has actually emitted a dataset (can
take 15 min to a few hours). The previous code blanket-treated any 404
as 'data-request rotated' and dropped the cached Identifier, which then
triggered a metadata refetch every minute — pointless thrashing while
the producer is just sleepy.
Now we match the body message and treat that specific 404 as a debug-
level no-content-yet event, leaving the Identifier intact. Other 404/400
errors (different body, /metadata endpoint) still trigger the rotation
path.1 parent 8132383 commit 6c8e742
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6897 | 6897 | | |
6898 | 6898 | | |
6899 | 6899 | | |
| 6900 | + | |
6900 | 6901 | | |
6901 | 6902 | | |
6902 | | - | |
6903 | | - | |
6904 | | - | |
6905 | | - | |
| 6903 | + | |
| 6904 | + | |
| 6905 | + | |
| 6906 | + | |
| 6907 | + | |
| 6908 | + | |
| 6909 | + | |
| 6910 | + | |
| 6911 | + | |
| 6912 | + | |
| 6913 | + | |
| 6914 | + | |
| 6915 | + | |
| 6916 | + | |
6906 | 6917 | | |
6907 | 6918 | | |
6908 | 6919 | | |
6909 | 6920 | | |
6910 | 6921 | | |
6911 | | - | |
| 6922 | + | |
6912 | 6923 | | |
6913 | 6924 | | |
6914 | 6925 | | |
| |||
0 commit comments