Amazon S3 PHP API not reading all objects in the bucket #2861
Unanswered
egamingpark
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running a website where electricity consumers can check their latest bill, and every time they check the bill, it's copy is stored in my Amazon S3 bucket named 'wapda'. I call it "Bill History" so that users can see their old bills any time. The bill is checked by a 14 digit reference number and it is stored in the Bucket in this format:
Now the problem is, when I retrieve old bills from S3 bucket, it works fine for some reference numbers but sometimes it doesn't. Here is the code:
The code above is implemented here. Here are two different reference numbers for the company 'GEPCO':
I checked both these reference numbers in the bucket and they exist with some object(s). But when I check the bill history, the first one shows results fine, but not the second.
Here are the direct links:
https://iescobill.pk/bill-history/?reference=14122460155800&disco=gepco
https://iescobill.pk/bill-history/?reference=14122460159602&disco=gepco
Here are screens of both objects in the S3 bucket:
https://drive.google.com/file/d/1IT-8_gYiAkb2EhacRd2z073xSv1GdcGT/view?usp=sharing
https://drive.google.com/file/d/1J--_HS7yUfnSUEAq8RvRcEZklJwbcLKn/view?usp=sharing
As you can see there are a few objects in first reference, and one object in the second, named '08 DEC 23'. The objects from first reference number are loading fine, but not for the second.
Please suggest what should I do. Is there anything wrong with the code, or cache problem or what.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions