You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V3 get_file has an optional parameter 'alt', with only one valid value 'media', which is used to download the file content.
Omitting 'alt' is supposed to download file metadata, but what occurs is first a Perl warning
Use of uninitialized value in string eq at ... /Simple/V3.pm line 1286
Then immediately after that
Can't call method "decoded_content" on unblessed reference at ... Simple/V3.pm line 1291.
Current code in sub get_file:
if ( $options->{'alt'} eq 'media' ) {
$info->{'return_http_response'} = 1;
}
my $response = $self->_handle_api_method( $info, $options );
return $response->decoded_content();
Proposed correction:
if ( exists $options->{'alt'} and $options->{'alt'} eq 'media' ) {
$info->{'return_http_response'} = 1;
}
my $response = $self->_handle_api_method( $info, $options );
return $response->decoded_content() if exists $options->{'alt'};
return $response;
The text was updated successfully, but these errors were encountered:
V3 get_file has an optional parameter 'alt', with only one valid value 'media', which is used to download the file content.
Omitting 'alt' is supposed to download file metadata, but what occurs is first a Perl warning
Use of uninitialized value in string eq at ... /Simple/V3.pm line 1286
Then immediately after that
Can't call method "decoded_content" on unblessed reference at ... Simple/V3.pm line 1291.
Current code in sub get_file:
Proposed correction:
The text was updated successfully, but these errors were encountered: