microsoftgraph / msgraph-sdk-ruby

Microsoft Graph Ruby client library for v1 APIs
https://graph.microsoft.com
MIT License
100 stars 68 forks source link

Can't Create Users Unless Using ADAL #68

Closed fribeiro1 closed 1 year ago

fribeiro1 commented 4 years ago

If you don't use ADAL, you get the following error when creating an user:

Traceback (most recent call last): 7: from /usr/bin/irb:11:in <main>' 6: from (irb):8 5: from /usr/local/share/gems/gems/microsoft_graph-0.1.3/lib/microsoft_graph/collection_association.rb:136:increate!' 4: from /usr/local/share/gems/gems/microsoft_graph-0.1.3/lib/microsoft_graph/collection_association.rb:136:in tap' 3: from /usr/local/share/gems/gems/microsoft_graph-0.1.3/lib/microsoft_graph/collection_association.rb:136:inblock in create!' 2: from /usr/local/share/gems/gems/microsoft_graph-0.1.3/lib/microsoft_graph/base_entity.rb:82:in save!' 1: from /usr/local/share/gems/gems/microsoft_graph-0.1.3/lib/microsoft_graph/base.rb:44:into_json' NoMethodError (undefined method `to_json' for #)

You can workaround it by adding "require 'json'" to your own code.

Similar to #67

baywet commented 1 year ago

Thanks for reporting this issue. That version of the SDK has been deprecated a number of years ago. We're now starting the work on a new generation of this SDK and you can learn all about it on the updated readme page.