Connecting Pi to the Particle Cloud - error

Hello Particle Community,

I am trying to connect a Raspberry Pi Zero W v1.1 to the Particle cloud. It is connected to wifi. However, I get the following error:

/usr/lib/ruby/vendor_ruby/particle/device.rb:28:in ‘initialize’: undefined method 'key?’ for nil:NilClass (NoMethodError)

Others have encountered this issue before:

However, no solution was ever posted.

Thanks for any troubleshooting help you can offer!