You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This query_card method (and other methods with export_format) does not seem to work by its definition.
Metabase API expects to receive data as a url encoded form and this gem sends this request body as a json.
The way to solve this would be (lib/metabase/connection.rb:33):
encoded_body = params.delete(:encoded_body)
response = connection.public_send(method, path, params) do |request|
request.headers['X-Metabase-Session'] = @token if @token
headers&.each_pair { |k, v| request.headers[k] = v }
request.body = encoded_body if encoded_body
end
Want to get card data. Found one solution. But want to ask if there is a proper way?
AND
in
lib/metabase/connection.rb
comment one lineThe text was updated successfully, but these errors were encountered: