Skip to content

undefined method `bytesize' (Incompatible with latest Faraday version)

Created by: navidemad

Hi ✋🏻

With the last update: https://github.com/oauth-xx/oauth2/compare/v1.4.7...v1.4.8

NoMethodError at /auth/google_oauth2/callback

undefined method `bytesize' for {"client_id"=>"**********.apps.googleusercontent.com", "client_secret"=>"*********", "grant_type"=>"authorization_code", "code"=>"********", :redirect_uri=>"http://localhost:3000/auth/google_oauth2/callback"}:Hash
    self.content_length = body.bytesize
Screenshot 2022-02-18 at 13 28 52 Screenshot 2022-02-18 at 13 29 44