Errors when adding webinar

AI-generated summary

The discussion revolves around errors when adding webinars using the Discourse-Zoom plugin. oneflydown reports a TypeError in the logs related to nil into String when trying to parse webinar data, despite following instructions to enter the webinar ID. pmusaraj suggests checking API credentials, which oneflydown confirms are working. After updating the plugin, the issue is resolved. oneflydown then asks about the time used for calculating event start time, noting discrepancies between devices due to time zone differences. pmusaraj explains it uses new Date() from JavaScript, matching the observed differences. Finally, oneflydown asks if webinar chat can be displayed as a discussion thread.

Thanks for the plugin. I followed the same as what you have explained, but getting this error

And the logs return this:
Message (7 copies reported)

TypeError (no implicit conversion of nil into String)
/var/www/discourse/plugins/discourse-zoom/lib/client.rb:12:in `parse’

Backtrace

/var/www/discourse/plugins/discourse-zoom/lib/client.rb:12:in `parse'
/var/www/discourse/plugins/discourse-zoom/lib/client.rb:12:in `webinar'
/var/www/discourse/plugins/discourse-zoom/lib/webinars.rb:27:in `find'
/var/www/discourse/plugins/discourse-zoom/app/controllers/webinars_controller.rb:74:in `preview'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/base.rb:196:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:135:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:41:in `process_action'

Env

HTTP HOSTS: forum.laex.in

Edit: Webinar ID as 656-530-215 also gives the same error.

Looks like the API request to webinars/WEBINAR_ID is not returning nil for the start_time of the webinar from Zoom. You might want to test your API credentials outside of the plugin, using a tool like Postman, for example.

I did a test of API credentials and its fine. Then I did a quick update of the plugin and I am able to connect to the webinar.

  1. I am not sure, if it is for the update or, I tried to create a webinar topic, after the webinar was actually started/in progress.

  2. What time does the plugin use to calculate the Event begins in time? I have logged in from two devices at the same time, but the Event begins in show different times.

From laptop: (which has a time advance of 7 mins)

and from mobile

Thanks

It uses the time returned by javascript’s new Date(). The difference you see in your screenshots matches the 7-min advance on the laptop.

It works great. Btw, is there any possibility that I can show the chat in webinar as a discussion to the topic?