amalc / rubyzoho

Abstracting Zoho’s API into a set of Ruby classes, with reflection of Zoho’s fields using a more familiar ActiveRecord lifecycle, but without ActiveRecord. Works with Rails and Devise.
MIT License
62 stars 57 forks source link

RubyZoho: Web service call failed with 400 #74

Open MittalPatel-BTC opened 3 years ago

MittalPatel-BTC commented 3 years ago

@amalc: Facing issues while defining the Zoho configurations.

System version

  1. Rails: 4.2.8
  2. Ruby: 2.2.5
  3. Ubuntu: 18.04
  4. rubyzoho: 0.5.0

Currently, my application is running on the above version and when I try to set up the RubyZoho configurations it would not allow me to do so and give me the "Web service call failed with 400" error every time.

NOTE: Same code is working in Ubuntu 16 but not in the newer versions. Locally system + on Heroku-16 stack as well.

I have defined my configuration file like below Path: config/initializers/zoho.rb

require 'ruby_zoho'

RubyZoho.configure do |config|
  config.api_key = ZOHO_API_KEY
  config.crm_modules = ['Contacts']
end

Basically, I want to deploy my application to the Heroku stack (Heroku-20) but it would not allow me to do so due to this error. If I comment out the configuration file (zoho.rb) then my code is successfully deployed on the Heroku server but along with the Zoho configuration, I can't.

Team can you please help here it would be great to hear from you! Looking forward to your feedback.

zoho_issue

ronald commented 3 years ago

Sorry, can't help you with RubyZoho. (Lib and the API are quiet old.)

New API is using OAuth. Did you check out alternatives?