Steps being returned breaking json

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

Hi there,

As per my tweet a few minutes ago.

When looking at the response in my account (assemblies) I see valid json.

assembly_id REDACTED

However, I am grabbing the response from a retry and it always contains “steps” that breaks the validity and doesn’t allow me to decode the json.

I’ve tried uploading dozens of videos all with the same result.

Tim

However, I am grabbing the response from a retry and it always contains “steps” that breaks the validity and doesn’t allow me to decode the json.

I’m not sure if I follow. Can you paste the form data you receive before trying to parse any JSON in your app?

Search for “steps”.

If I use the json here: http://bulah.transloadit.com/assemblies/REDACTED my script works. There is a difference between the two, however.

{"ok":"ASSEMBLY_COMPLETED","message":"The assembly was successfully completed.","assembly_id":"REDACTED","assembly_url":"http://api2.bulah.transloadit.com/assemblies/REDACTED","bytes_received":887992,"bytes_expected":887992,"client_agent":"Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Ubuntu/11.10 Chromium/16.0.912.77 Chrome/16.0.912.77 Safari/535.7","client_ip":"2.138.255.55","client_referer":"http://cogent.zumohost.net/cms/videos/index/6/processing:true","start_date":"2012/02/17 13:19:33 GMT","upload_duration":12.505,"execution_duration":497.179,"notify_start":"2012/02/17 13:28:02 GMT","notify_duration":0.529,"fields":{"email":"***@gmail.com","development_id":"6"},"running_jobs":[],"uploads":[{"id":"REDACTED","name":"rollcall.avi","basename":"rollcall","ext":"avi","size":887254,"mime":"video/x-msvideo","type":"video","field":"my_file","original_id":"REDACTED","url":"http://tmp.transloadit.com.s3.amazonaws.com/REDACTED","meta":{"duration":8.066707,"width":160,"height":120,"framerate":15,"video_bitrate":696040,"video_codec":"ffcvid","audio_bitrate":176400,"audio_samplerate":22050,"audio_channels":1,"audio_codec":"pcm","seekable":true,"date_recorded":null,"date_file_created":null,"date_file_modified":"2012/02/17 13:19:45 GMT","device_vendor":null,"device_name":null,"device_software":null,"latitude":null,"longitude":null,"rotation":null}}],"results":{"extracted_thumbs":[{"id":"REDACTED","name":"rollcall.jpg","basename":"rollcall","ext":"jpg","size":10477,"mime":"image/jpeg","type":"image","field":"my_file","original_id":"REDACTED","url":"http://zumoflow.s3.amazonaws.com/cogentinvestments.com/c0/07db1d574ace1d3d6a5b6519bb698c/rollcall.jpg","meta":{"duration":8.107,"width":436,"height":270,"framerate":25,"video_bitrate":671416,"video_codec":"ffh264","audio_bitrate":80264,"audio_samplerate":48000,"audio_channels":1,"audio_codec":"ffaac","seekable":true,"date_recorded":null,"date_file_created":null,"date_file_modified":"2012/02/17 13:27:59 GMT","device_vendor":null,"device_name":null,"device_software":null,"latitude":null,"longitude":null,"rotation":0,"thumb_index":0,"thumb_offset":1.6214,"title":null,"description":null,"location":null,"city":null,"state":null,"country":null,"country_code":null,"keywords":null,"aperture":null,"exposure_compensation":null,"exposure_mode":null,"exposure_time":null,"flash":null,"focal_length":null,"f_number":null,"iso":null,"light_value":null,"metering_mode":null,"shutter_speed":null,"white_balance":null,"orientation":null,"frame_count":null}},{"id":"REDACTED","name":"rollcall.jpg","basename":"rollcall","ext":"jpg","size":9920,"mime":"image/jpeg","type":"image","field":"my_file","original_id":"REDACTED","url":"http://zumoflow.s3.amazonaws.com/cogentinvestments.com/64/67dfe0755dadcbf5d26172745e7047/rollcall.jpg","meta":{"duration":8.107,"width":436,"height":270,"framerate":25,"video_bitrate":671416,"video_codec":"ffh264","audio_bitrate":80264,"audio_samplerate":48000,"audio_channels":1,"audio_codec":"ffaac","seekable":true,"date_recorded":null,"date_file_created":null,"date_file_modified":"2012/02/17 13:27:59 GMT","device_vendor":null,"device_name":null,"device_software":null,"latitude":null,"longitude":null,"rotation":0,"thumb_index":1,"thumb_offset":3.2428,"title":null,"description":null,"location":null,"city":null,"state":null,"country":null,"country_code":null,"keywords":null,"aperture":null,"exposure_compensation":null,"exposure_mode":null,"exposure_time":null,"flash":null,"focal_length":null,"f_number":null,"iso":null,"light_value":null,"metering_mode":null,"shutter_speed":null,"white_balance":null,"orientation":null,"frame_count":null}},{"id":"REDACTED","name":"rollcall.jpg","basename":"rollcall","ext":"jpg","size":9137,"mime":"image/jpeg","type":"image","field":"my_file","original_id":"REDACTED","url":"http://zumoflow.s3.amazonaws.com/cogentinvestments.com/11/171596c79b75b95188eb015a6fd984/rollcall.jpg","meta":{"duration":8.107,"width":436,"height":270,"framerate":25,"video_bitrate":671416,"video_codec":"ffh264","audio_bitrate":80264,"audio_samplerate":48000,"audio_channels":1,"audio_codec":"ffaac","seekable":true,"date_recorded":null,"date_file_created":null,"date_file_modified":"2012/02/17 13:27:59 GMT","device_vendor":null,"device_name":null,"device_software":null,"latitude":null,"longitude":null,"rotation":0,"thumb_index":2,"thumb_offset":4.8642,"title":null,"description":null,"location":null,"city":null,"state":null,"country":null,"country_code":null,"keywords":null,"aperture":null,"exposure_compensation":null,"exposure_mode":null,"exposure_time":null,"flash":null,"focal_length":null,"f_number":null,"iso":null,"light_value":null,"metering_mode":null,"shutter_speed":null,"white_balance":null,"orientation":null,"frame_count":null}},{"id":"REDACTED","name":"rollcall.jpg","basename":"rollcall","ext":"jpg","size":10510,"mime":"image/jpeg","type":"image","field":"my_file","original_id":"REDACTED","url":"http://zumoflow.s3.amazonaws.com/cogentinvestments.com/36/8b964024a74ec39436ff0320db44c4/rollcall.jpg","meta":{"duration":8.107,"width":436,"height":270,"framerate":25,"video_bitrate":671416,"video_codec":"ffh264","audio_bitrate":80264,"audio_samplerate":48000,"audio_channels":1,"audio_codec":"ffaac","seekable":true,"date_recorded":null,"date_file_created":null,"date_file_modified":"2012/02/17 13:27:59 GMT","device_vendor":null,"device_name":null,"device_software":null,"latitude":null,"longitude":null,"rotation":0,"thumb_index":3,"thumb_offset":6.4856,"title":null,"description":null,"location":null,"city":null,"state":null,"country":null,"country_code":null,"keywords":null,"aperture":null,"exposure_compensation":null,"exposure_mode":null,"exposure_time":null,"flash":null,"focal_length":null,"f_number":null,"iso":null,"light_value":null,"metering_mode":null,"shutter_speed":null,"white_balance":null,"orientation":null,"frame_count":null}}],"mp4_encoding":[{"id":"REDACTED","name":"rollcall.mp4","basename":"rollcall","ext":"mp4","size":759651,"mime":"video/mp4","type":"video","field":"my_file","original_id":"REDACTED","url":"http://zumoflow.s3.amazonaws.com/cogentinvestments.com/ba/94ae2e7e39320d0bed8c943a8f7d7e/rollcall.mp4","meta":{"duration":8.107,"width":480,"height":270,"framerate":25,"video_bitrate":671416,"video_codec":"ffh264","audio_bitrate":80264,"audio_samplerate":48000,"audio_channels":1,"audio_codec":"ffaac","seekable":true,"date_recorded":null,"date_file_created":null,"date_file_modified":"2012/02/17 13:27:58 GMT","device_vendor":"Apple","device_name":null,"device_software":null,"latitude":null,"longitude":null,"rotation":0}}]}}

I don’t see "steps" in your paste below your comment. The JSON itself seems to be valid?

Closing this.

Feel free to reopen this when you see my reply.