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
I uploaded a file for an email attachment and called check_import method to get its file ID.
However, although it seems that I am able to get a response, an error occurs during subsequent deserialization.
client=Hubspot::Client.new(access_token: access_token)response=client.files.files.files_api.import_from_url(import_from_url_input: {url: url,folderPath: '/email-attachments',access: 'PRIVATE'})task_id=response.id# NoMethodError: undefined method `build_from_hash' for File:Class# from .rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/hubspot-api-client-17.0.0/lib/hubspot/codegen/files/files/models/file_action_response.rb:309:in `_deserialize'status=client.files.files.files_api.check_import(task_id: task_id)
When I debugged the gem code, I found that it worked fine by modifying the following code in Hubspot::Files::Files::FileActionResponse.openapi_types.
- :'result' => :'File'
+ :'result' => :'Object'
The text was updated successfully, but these errors were encountered:
I uploaded a file for an email attachment and called
check_import
method to get its file ID.However, although it seems that I am able to get a response, an error occurs during subsequent deserialization.
When I debugged the gem code, I found that it worked fine by modifying the following code in
Hubspot::Files::Files::FileActionResponse.openapi_types
.The text was updated successfully, but these errors were encountered: