Archived from the Transloadit support forum. Originally posted on September 8, 2010; details may be outdated, see our docs for current behavior. Original thread
I’ve created a template that does a simple resize and then an upload to S3 but it seems to fail returning an internal_tool_error: 1 (see screenshot).
i’ve tried the upload first, and then the resize (in the template steps) and that uploads the image but does not resize it. and when i turn it around (resize first, then upload) it never gets uploaded to S3 at all. Both return the same error.
I should probably mention i’m using the test upload tool in your admin panel…
Hey, it seems like you are only providing a width parameter, but not a height one, is that correct?
If so it seems like we are currently handling this wrong internally and it could be quickly fixed. Let me know if that’s the case!
--fg
ah that could be it yeah. i don’t need a max height, just a max width but i could just set the width to some large number i guess.
better error handling would be nice though 
Alright, a fix is ready I’ll deploy it later on and update this ticket. Meanwhile a question: How would you imagine the error handling to work?
Are you unhappy with the dialog displayed by the plugin? Or would you have liked to have more information (like the internal error that was produced by image magick)?
the dialog is fine, you would be likely to have your own interface for an end user anyway. but for testing the implementation the actual error imagemagick returns would be nice.
Couldn’t deploy yet, the machine is still working on two huge video that came in (we’ll soon be able to deploy while the system is running, but not yet).
Anyway, the reasons we don’t show the error details yet are:
- You should really not have to worry about the command line tools we execute. That’s our problem we try to solve flawlessly
- It could be a potential security issue to show certain messages that expose the inner workings of our system. (Of course, obfuscation is no real security, but it’s an additional door that is nice to keep locked)
In the future we’ll probably show the full error messages to customers who have a credit card on record, since we don’t have trust/security concerns with people who’s identity we are at least very likely to have confirmed. On that front another good news is that our new pricing will launch very soon and everything will be pay-as-you-go : ).
--fg
I’ll close this ticket when the deploy was done, probably a few hours later tonight as I’ll not be on the computer for a bit.
yeah that makes sense. perhaps there should be some sort of validator that checks input/templates before it’s sent to your backend that returns basic error messages about missing parameters and such leaving the process errors for your own logs?
yeah that makes sense. perhaps there should be some sort of validator that checks input/templates before it’s sent to your backend that returns basic error messages about missing parameters and such leaving the process errors for your own logs?
We have a few validation rules in place, but we’ll have to extend them. Templates are currently not checked against those rules - that’s planned as well.
Anyway, in this case we clearly overlooked a requirement : ). I just deployed the fix, if you get a chance to give it try (leave out either the width or height parameter), let me know how it goes!
--fg