Archived from the Transloadit support forum. Originally posted on February 18, 2011; details may be outdated, see our docs for current behavior. Original thread
I’m having a little trouble getting the /http/import robot to work using the REST API. Can anybody spot the problem below?
Hi Adam, sorry but the gem is not quite ready yet. Anyway, are you sure you are getting “OK” back? Can you paste the full output?
Your JSON has multiple problems. Most importantly your http import step needs to be wrapped in a “steps” key, and your “expires” / “key” properties need to be wrapped in an “auth” key. I’m surprised if you wouldn’t get a more meaningful error message on this.
I reorganized my code and am getting a lot further…
{"error":"ASSEMBLY_STEP_INVALID","message":"One of your {steps: ...} parameters is a non-object value.","reason":"{\"url\":\"http://transloadit.com/img/robots/http-import.jpg\"}"}