Closed Greyoxide closed 1 year ago
Is this on 3.0.1? Can you perhaps put this in an app or script so there's a relevant backtrace? I'm only seeing unrelated lines
Testing to see if there's an issue with another gem and I discovered that the nice_hash gem was causing this undesired behavior. by commenting it out I was able to read the error message returned by the QB api. Where previously I was getting the above error.
Since this behavior seems to be with the nice_hash gem, I'm inclined to call this issue closed.
@Greyoxide No problem. Glad you found the issue.
I'm using rails 7.0.1 and ruby 3.0.2
Assuming I use the following example(token and realm redacted):
I get the following error:
/Users/user_name/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/irb-1.6.2/lib/irb.rb:663:in `to_s': can't convert Array to String (Array#to_str gives Array) (TypeError)
To test the array.to_s method I was able to run the following in the next line:
['test', 'array', 'goes', 'here'].to_s
which executed as expected.I'm only getting this error when I try to use the qbo_api gem, I've never seen this error otherwise. I'm able to get a token from Quickbooks Oauth api, and I'm able to create a session, but when I try to interact with any datasets I get this error.
Here's the full output of the error