Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type: Added missing properties #107

Merged
merged 1 commit into from
Apr 6, 2021
Merged

Conversation

chulanovskyi-bs
Copy link
Contributor

No description provided.

@lekevbot lekevbot added the sdks Integrations for Transloadit's API label Apr 6, 2021
@mifi
Copy link
Collaborator

mifi commented Apr 6, 2021

Which API returns stdout/stderr?

@chulanovskyi-bs
Copy link
Contributor Author

chulanovskyi-bs commented Apr 6, 2021

Which API returns stdout/stderr?

transloadit.getAssembly.

Example (cut):

{
  error: 'INTERNAL_COMMAND_ERROR',
  http_code: 500,
  exitCode: 22,
  exitSignal: null,
  stdout: '',
  stderr: 'curl: (22) The requested URL returned error: 403 Forbidden\n',
  cmd: 'curl --config -',
  reason: 'CurlCommand failed with exit code: 22: HTTP page not retrieved. The requested url was not found or returned another error with the HTTP error code being 400 or above. This return code only appears if -f/--fail is used. Tried to connect to host: https://api.kloudless.com/v1/accounts/482295918/storage/files/file_MXAyMkswYVhtQ2dQLTlyTjNRVlRKV3JMVklpM0pMcFhM/contents',
  config: [
    { request: 'GET' },
    { fail: true },
    { silent: true },
    { 'show-error': true },
    {
      url: 'https://api.kloudless.com/v1/accounts/482295918/storage/files/file_MXAyMkswYVhtQ2dQLTlyTjNRVlRKV3JMVklpM0pMcFhM/contents'
    },
    { header: 'Expect:' },
    { header: 'Authorization: Bearer SbeVJg6icGqGLm0ZExe4TmQAMV8AbM' },
    { insecure: true },
    { 'max-time': 1800 },
    {
      'dump-header': '/srv/shared/tmp/scratch/c430b603caee4acb93dc0e878997327e'
    },
    { globoff: true },
    { 'create-dirs': true },
    { retry: 6 },
    {
      output: '/srv/shared/tmp/download/56e9055aac2044afac29740e986cb5c0_4832a29678244b0e92a412ae756ddad9'
    },
    'location',
    { 'max-redirs': 5 },
    { 'max-filesize': 32212254720 }
  ],
  step: 'import',
  previousStep: ':original',
  worker: 'loures.transloadit.com',
  assembly_id: '56e9055aac2044afac29740e986cb5c0',
  parent_id: '77f7f8be5368466f990277115c90b444',
  account_id: '10a04440c5264fb0949a2ebea15a25ee',
  template_id: 'd390fcd89d1b4b2da524bb6a3aa337d6',
  instance: 'vakf.transloadit.com',
  assembly_url: 'http://api2.vakf.transloadit.com/assemblies/56e9055aac2044afac29740e986cb5c0',
  assembly_ssl_url: 'https://api2-vakf.transloadit.com/assemblies/56e9055aac2044afac29740e986cb5c0',
  uppyserver_url: 'https://api2-vakf.transloadit.com/companion/',
  companion_url: 'https://api2-vakf.transloadit.com/companion/',
  websocket_url: 'https://api2-vakf.transloadit.com/ws20208',
  tus_url: 'https://api2-vakf.transloadit.com/resumable/files/',
  bytes_received: 0,

...


Actually, there are a lot more fields which missing in the .d.ts, I didn't have much time to compare the actual and declared shape. But these one stderr and stdout we are going to use in this particular case

@mifi
Copy link
Collaborator

mifi commented Apr 6, 2021

Gotcha. Thanks!

@mifi mifi merged commit a30ddb6 into transloadit:master Apr 6, 2021
@kvz kvz assigned mifi May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sdks Integrations for Transloadit's API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants