Skip to content

Project export returns error - NoMethodError: undefined method `dig' for #<HTTParty::Response:0x00007f45d594b930>

https://sentry.gitlab.net/gitlab/gitlabcom/issues/723380/

NoMethodError: undefined method `dig' for #<HTTParty::Response:0x00007f45d594b930>
  httparty/response.rb:124:in `method_missing'
    super
  gitlab/import_export/after_export_strategies/web_upload_strategy.rb:33:in `handle_response_error'
    error_code = response.dig('Error', 'Code') || response.code
  gitlab/import_export/after_export_strategies/web_upload_strategy.rb:26:in `strategy_execute'
    handle_response_error(send_file)
  gitlab/import_export/after_export_strategies/base_after_export_strategy.rb:43:in `execute'
    strategy_execute
  projects/import_export/export_service.rb:18:in `execute_after_export_action'
    unless after_export_strategy.execute(current_user, project)
...
(49 additional frame(s) were not displayed)

NoMethodError: undefined method `dig' for #<HTTParty::Response:0x00007f45d594b930>