-
-
Notifications
You must be signed in to change notification settings - Fork 475
Packagist API timestamp inconsistencies #1515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm getting There definitely might be a few seconds delay for cache purging to happen, so I'd say if you get a Last-Modified header older than changes.json timestamp it means the new file is not served yet, you should wait a sec and retry, but after a few retries (or if the expected timestamp is older than 60sec and file still not updated) then assume something is borked and skip that file/report it here. This should not take very long, and in your case per the Date header it looks like it did take over 10 hours, which isn't good. |
I've reported this upstream again, but I do wonder just to understand better what's going on, how come you fetched the file so long after the update time? Are you not syncing very often or was it just because it took time for you to notice the issue and get the response headers? |
We retry to get the packages periodically so I just took the last log I see |
Thats not a problem and it is understandable, it is why we retry periodically
Those cases are more problematic. But the version is not on the packages json yet (2025-03-11 10:07:58 GMT): https://repo.packagist.org/p2/phalcon/ide-stubs.json Headers for investigation (job checked the package at 07:44:10, but I have the same result now):
|
Could you perhaps log an error/warning and then retry from packagist.org instead of repo.packagist.org in case you get a failure? That should work around the issue without sending all traffic away from the repo subdomain.. From what I understand, the CDN provider is having random failures with the geo-replication of the data, and it might take a while until they figure this out, so it's probably best if you work around and I'll ping you once I hear something back from them. |
Sounds good to me, we will test it and get back to you with the results. |
retrying from packagist.org worked fine, thanks |
@gillarramendi you should be able to remove the workaround now and resume using repo.packagist.org fully, so I'll close this. |
perfect, thanks @Seldaek for the update 🙏 |
Following on #1508
We have noticed inconsistencies when validating timestamps on changes.json and package json Last-Modified header
Example package:
lightspeeddevelopment/lsx-health-plan~dev
changes.json -> 17415705850000 - Monday, 10 March 2025 01:36:25
Last-modified -> 17415705400000 - Monday, 10 March 2025 01:35:40
Last-modified is before changes.json timestamp, which is not expected as the API documentation
Is this the same as reported on #1508 or it is expected to have a delay between both timestamps?
The text was updated successfully, but these errors were encountered: