Error 401 when Trying to Get File after Converting PDF to PPTX in Ruby

Hello,

We’re using the aspose_slides_cloud ruby gem. When trying to convert from pdf to pptx to retrieve the file, it gives a 401. Example code:
#Use a PDF Document|Documentation

require 'aspose_slides_cloud'

configuration = AsposeSlidesCloud::Configuration.new

configuration.app_sid = "id"

configuration.app_key = "key"

slides_api = AsposeSlidesCloud::SlidesApi.new(configuration)

pdf_data = File.binread("company-risk.pdf")

options = AsposeSlidesCloud::PdfImportOptions.new

options.detect_tables = false

response = slides_api.import_from_pdf("company-risk.pptx", pdf_data, options, nil, "files", "ethos_pptx")

puts response.self_uri.href

=> "https://api.aspose.cloud/v3.0/slides/company-risk.pptx?folder=files"

Screenshot 2024-06-19 at 11.38.28 AM.png (102.8 KB)

Please help as a priority.
Screenshot 2024-06-19 at 11.38.28 AM.png (38.2 KB)

@Manish_Shah,
Thank you for contacting support. I am working on the issue and will get back to you soon.

@Manish_Shah,
Typically response objects contain their own URLs, and they don’t have much practical value. You can download the file like this:

file_data = slides_api.download_file("files\\company-risk.pptx")

# Save the file data to a local file.
File.binwrite("company-risk.pptx", file_data)