multiwoven-integrations 0.16.1 → 0.16.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87a9d42fe90c6a5588fb8843d4cf3ce0b2667b498337658fd1339f462678d9ed
4
- data.tar.gz: 6ee164cce6f372e010302ab66a95558533173bdcaaa5a3ab9b4ddeb8f7ce73f2
3
+ metadata.gz: b110db8b3c603525e09b967f773f5f7e3e8bc771c5204178b7058dac8f25bf9f
4
+ data.tar.gz: e29d8c55f595c6810a052b6e47d73958413ac4ae7d6dfc1904103059716f0c12
5
5
  SHA512:
6
- metadata.gz: cc87a1d9c5fc1252a1bc007fb597a5aea1e6a1f2860602fad3095a2586bcac1919b32bfb0b781500ec64639b0a2f3eaa3d6e68e837c79a0cc0c3b200f95ce8bb
7
- data.tar.gz: 4aec5ed6beefe6c3913b60ec8727d3e9c78c74efa4bfb8dcae7d36f277244c22550ec0bceb47b7f9e0939405244d4720af0bb1b2da71677e2e70060741729a30
6
+ metadata.gz: 0f25aaf49865562a122c28d54cb4c4ed6f6619aa6054d84e7616a8211d8e4887bb8b69665aac7702c92768149e78649de4a2fcf51c0a63dc5c398745e20c37fd
7
+ data.tar.gz: 8dbf1e05b6ec0154654653696f922ff7f1765179ca73909bfd3a55d923e6569ff2430c705d202ad5727cb73c8dc70f5d31090a5bae9507ea60d495a1f8d36081
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.16.1"
5
+ VERSION = "0.16.2"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -62,8 +62,12 @@ module Multiwoven::Integrations::Source
62
62
 
63
63
  def process_response(response)
64
64
  if success?(response)
65
- data = JSON.parse(response.body)
66
- [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
65
+ begin
66
+ data = JSON.parse(response.body)
67
+ [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
68
+ rescue JSON::ParserError
69
+ create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "parsing failed: please send a valid payload")
70
+ end
67
71
  else
68
72
  create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "request failed: #{response.body}")
69
73
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiwoven-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-20 00:00:00.000000000 Z
11
+ date: 2024-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport