search assemblies by file that got uploaded to s3

Archived from the Transloadit support forum. Originally posted on August 29, 2013; details may be outdated, see our docs for current behavior. Original thread

i need to track down some reported upload failures (empty pdfs) however the only information i have, is the name of the s3 file itself. i do not know what is the name of the original file got uploaded however.

this is the name of the file that got uploaded:

https://coursera-uploads.s3.amazonaws.com/user-be6525dbe6e81fbf5764a083/970336/asst-4/970336-521595a7ea5648.85877125.pdf

could you help us track the assembly down?

any suggestions on better ways for us to track problems our users report, when all we have is the URL we gave them after uploading a file?

Hey eleith,

hm that will be very hard to track down to be honest. : /

Can you point me to your template and assembly id? That may help.

In the future, the easiest would be to include the ${assembly.id} variable in your s3 export path.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

template id: REDACTED

i don’t have an assembly id (that is what i’m looking for)

Hey eleith,

hm that is going to be hard, as the assembly status is saved on Amazon S3 and not in our database, so it’s not searchable at the moment. We’d like to support that in the future, though.

Do you know some of the parameters to make a search easier, like the courseId or the assignment?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

the params that were sent down for this particular file are

hashedUserId → be6525dbe6e81fbf5764a083
assignmentId → 4
courseId → 970336

Hey eleith,

hm that’s weird, unfortunately I cannot help much. The only thing I can offer is to write a script that goes through all your assemblies and fetches all of the assembly status from Amazon S3, then searches them to find the appropriate assembly. Unfortunately we cannot do this free of charge, as it’s probably a day’s worth of work. We can provide you some pointers, though, if you decide to develop this script in-house.

One suggestion I have for you regardless is to also include ${file.basename} just before “.${file.ext}” in your S3 export path, since we do save the names of uploaded files in the assembly mysql table, so they are searchable. Then we can at least help you find the proper assembly IDs in the future.

But for the one at hand only a custom script (or a lot of manual digging) can find the proper assembly id I am afraid.

Please let me know how we should proceed.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

i didn’t realize you could also search by time. i still wasn’t able to find the one i was looking for, but i did come across this:

https://transloadit.com/assemblies/view/REDACTED

btw, there is a bug in your search filter. since it allows for live updates, once you filter a search, the live updates keep coming in, even if the updates do not match the filter (so if i search for assemblies on aug 26, the search works, but then live assemblies from today start showing up)

i don’t think there is anything we can do right now for this report.

however, i do think it would be very helpful to include the form fields we push upstream to be included in the search. our applications don’t always have the flexibility of including a particular variable in the new names we want to give them, so being able to search on other unique parameters that we know exists gives us much more flexibility where we want them.

our team uses the search feature that transloadit provides heavily, and it helps us debug and narrow down problems very quickly.

in fact, we already had direct s3 upload / transcoding before using transloadit, but being able to search, debug and report problems to your team are the features that really make transloadit stand out and save our team time.

for now, i agree this report is at an end, and you should close this. we’ve since told the student to try re-uploading the file. i just wanted to debug it since we had three students report similar results (empty pdf file got stored on s3).

Hey eleith,

advice taken. We’ll make fields searchable. I cannot give you an ETA yet, though.

We’ll also fix the bug that lets realtime results come in that do not fit the search parameters.

Closing this for now.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

thanks tim. no EAT necessary, i’m sure you’ve got a large roadmap. =]

EAT → ETA.

haha

We’ll also fix the bug that lets realtime results come in that do not fit the search parameters.

This bug has been fixed.