ERROR with Download My Posts on v1.3.0.beta9

Hi,

I have the next error when trying to “Download My Posts”, I recently upgrade to the latest version v1.3.0.beta9

Job exception: undefined method `category' for nil:NilClass
a min ago
!	
Job exception: Wrapped NoMethodError: undefined method `category' for nil:NilClass
a min ago

The thing is some users are able to do it but not all of them, those who can not leave the above traces in the log

Is there any setting or config I am missing?

Thanks in advance

cc @techAPJ so he can look into his one :smile:

1 Like

I am unable to repro this issue here on meta or locally. Can you provide complete error log?

Specifically, the top of the backtrace tab.

Hi,

The requested logs are here:

This one is for the “Job exception: undefined method `category’ for nil:NilClass”

/fjord/discourse/app/jobs/regular/export_csv_file.rb:137:in `get_user_archive_fields'
/fjord/discourse/app/jobs/regular/export_csv_file.rb:47:in `block in user_archive_export'
/fjord/discourse/app/jobs/regular/export_csv_file.rb:46:in `map'
/fjord/discourse/app/jobs/regular/export_csv_file.rb:46:in `user_archive_export'
/fjord/discourse/app/jobs/regular/export_csv_file.rb:30:in `execute'
/fjord/discourse/app/jobs/base.rb:153:in `block (2 levels) in perform'

And this is for the trace “Job exception: Wrapped NoMethodError: undefined method `category’ for nil:NilClass”

/fjord/discourse/app/jobs/base.rb:178:in `perform'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:75:in `execute_job'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:52:in `block (2 levels) in process'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:127:in `call'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:127:in `block in invoke'
/fjord/discourse/lib/sidekiq/pausable.rb:81:in `call'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/retry_jobs.rb:74:in `call'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/logging.rb:24:in `with_context'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:132:in `call'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:132:in `invoke'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:51:in `block in process'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:98:in `stats'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:50:in `process'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
/fjord/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'

Please let me know if is there any further info needed

Thanks!

1 Like

I can repro this on my sites, which are both at b9. haven’t looked at the error logs yet but get an error in the PM when I try to export.

1 Like

Thanks for detailed logs @raul_pareja! Fixed via

https://github.com/discourse/discourse/pull/3466

3 Likes

Thanks @techAPJ and rest of the Discourse team, keep on with the good work! :thumbsup:

3 Likes