0

I am trying to make use of smartsheet rubygem to connect to smartsheet account and fetch the sheet list.

I used following code

client = Smartsheet::Client.new(token: ACCESS_TOKEN)
sheets = client.sheets.list

On line 2, I am getting below error.

Smartsheet::RequestError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
        from app/models/smartsheet_client.rb:18:in `get_sheets'
        from (irb):5

I am executing this code from local, what I am missing? Any suggestions much appreciated. Thanks in advance!

Satishakumar Awati
  • 3,604
  • 1
  • 29
  • 50

1 Answers1

2

I'm no Ruby expert, but it seems like this error means that your code isn't able to verify that the SSL certificate of the site that you're connecting to is valid. I'd suspect that this issue is being caused by a problem with the config of your local dev environment, not a problem with the smartsheet rubygem.

The following posts specify several possible solutions to this problem:

I'd suggest that you review these posts and comment here if one of the proposed solutions works for you (for the benefit of others in the future).

Kim Brandl
  • 13,125
  • 2
  • 16
  • 21