Random 'Assembly not found' weirdness?

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

Are there any issues atm? I’m using a simple image/resize robot and, without any changes on my side as far as I can remember, things went belly up.

I’m getting varying results so it’s hard to put my finger on it. But the messages in firebug always seem to return a ‘ASSEMBLY_NOT_FOUND’ (while uploading), and it fails to redirect me to the URL I’ve set.

On the attached file you can see the responses for a single upload of 4 files. And although the jquery progress bar ended with ‘1 file uploaded’, everything seems fine under ‘assemblies’ in my account and I can open all 4 files.

This is the assembly id:

REDACTED

Sometimes the progress bar just doesn’t move at all and the browser wil alert an ‘ASSEMBLY_NOT_FOUND’. It never seems to both alert this message and tell me one file is uploaded.

hi, we updated the js plugin. can you clear cache and retry? if this works there is a problem in our cache policy which we will fix.

Hi Felix, thanks for the quick reply.

Your comment made me realize I had downloaded the js file and included it locally to save me some milliseconds from the roundtrip during development. Apart from one or two odd results (wrong amount of uploaded files in progress bar + failure to redirect), everything seems back to normal after reverting back to the old js loading method from the docs.

If I keep running into the issue I will try to provide more details.

Well, we made some changes to our load balancing. The way it works now is that the jQuery plugin asks for a free instance before it starts the upload, and then sends the upload + all progress queries to that particular instance.

So since you were running on an old version, you were randomly redirected to different machines, some of which of course were not the ones handling your upload.

Nevertheless we should have made it more clear that self-hosting the plugin is very much discouraged as we may rely on updates of it to propagate to all customers. I’ll make sure to update the docs accordingly.

Sorry for the inconvenience, pelase let me know if you hit any further issues.

(Not sure what you mean with wrong amount of uploaded files in progress bar / failure to redirect - those are not expected issues if you’re running the latest version of the plugin, so if you see those again please let me know!)

No worries, I knew the risk but simply forgot about it, you know how it goes.

About that other issue (wrong file count in progress bar and failure to redirect), I ran a few tests, too little to be conclusive, but it seems that a simple console.log was causing the issue when firebug was closed.

Maybe this sounds obvious to you? I’m not much of a javascript guru.

but it seems that a simple console.log was causing the issue when firebug was closed

Yes, if you are using a console.log() statement in your code, this will cause issues if you have Firebug closed or not installed. So make sure to only do that while you are debugging.

Let me know if that solves this!

Yep, seems that solved it :slight_smile:

Thanks a lot.