I am getting this error when creating a postcard, even though the Lob API was successfully created the postcard and returns a successful response as we can see by debugging the HTTP request/response shown below. After digging deeper, it looks like this gem does not parse the API response correctly.
D, [2025-05-19T00:32:17.387954 #31268] DEBUG -- : Calling API: PostcardsApi.postcard_create ...
D, [2025-05-19T00:32:17.388476 #31268] DEBUG -- : HTTP request body param ~BEGIN~
{"to":{"name":"Jane Doe","address_line1":"370 Water St","address_city":"Summerside","address_state":"Prince Edwards Island","address_zip":"C1N 1C4","address_country":"CA"},"from":{"name":"John Doe","address_line1":"210 King St","address_city":"San Francisco","address_state":"CA","address_zip":"94107","address_country":"US"},"size":"4x6","mail_type":"usps_first_class","merge_variables":{"message":"Hello, world!"},"front":"<!DOCTYPE html><html><head><title>Front</title></head><body></body></html>","back":"<!DOCTYPE html><html><head><title>Back</title></head><body>{{message}}</body></html>","use_type":"operational"}
~END~
D, [2025-05-19T00:32:18.883110 #31268] DEBUG -- : HTTP response body ~BEGIN~
{
"id": "psc_a358bd96d142ee46",
"description": null,
"metadata": {},
"to": {
"id": "adr_414cfab9f0ade582",
"description": null,
"name": "JANE DOE",
"company": null,
"phone": null,
"email": null,
"address_line1": "370 WATER ST",
"address_line2": null,
"address_city": "SUMMERSIDE",
"address_state": "PRINCE EDWARDS ISLAND",
"address_zip": "C1N 1C4",
"address_country": "CANADA",
"metadata": {},
"date_created": "2025-05-18T17:32:18.460Z",
"date_modified": "2025-05-18T17:32:18.460Z",
"deleted": true,
"object": "address"
},
"from": {
"id": "adr_401085d015091142",
"description": null,
"name": "JOHN DOE",
"company": null,
"phone": null,
"email": null,
"address_line1": "210 KING ST",
"address_line2": null,
"address_city": "SAN FRANCISCO",
"address_state": "CA",
"address_zip": "94107",
"address_country": "UNITED STATES",
"metadata": {},
"date_created": "2025-05-18T17:32:18.460Z",
"date_modified": "2025-05-18T17:32:18.460Z",
"deleted": true,
"object": "address"
},
"status": "processed",
"failure_reason": null,
"url": "https://lob-assets.com/postcards/psc_a358bd96d142ee46.pdf?version=v1&expires=1750181538&signature=SLEA3fskzUTQpHWjRQgXvH0_u0Soj_w0rNRNyuklqK7D0OA0kxgJZXZOWEQfaQPvlCE_FuB8wkSmsH12EfRODA",
"raw_url": "https://lob-assets.com/postcards/psc_a358bd96d142ee46_raw.pdf?version=v1&expires=1750181538&signature=5ZWj6UiR7kC94xit-Hbhf53lcxPpJ2UaD3Kc_sdMmD0azuVKCJdlEUffQ3DZPa4vqBTJ-BGVo0LZEPcrsIoQDw",
"front_template_id": null,
"back_template_id": null,
"front_template_version_id": null,
"back_template_version_id": null,
"campaign_id": null,
"carrier": "USPS",
"tracking_events": [],
"thumbnails": [
{
"small": "https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_small_1.png?version=v1&expires=1750181538&signature=oVCK-cMGvSWi1wIOJSihdNtd_c9kjQFQfgdDDVkEahuVWMMZionr-ElHotKIak_KnHU5ewnvJatkPdrMDFU2DQ",
"medium": "https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_medium_1.png?version=v1&expires=1750181538&signature=BkO2y95GRT_wSpIjwN4elVpvHP8ewJ3zfNHFKXhpsTu1mBqmT-Dm81iCiunBSYBf9NpbBBqvMpu0muox6G8cBA",
"large": "https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_large_1.png?version=v1&expires=1750181538&signature=iS7o3tRC5nzvLroFIawCLTPnWImy3CMuBnT2WMNMbvIOU5obtK46TT0wHnMFRYX3KYzrMdFT5LWPe2JOIiZ_Dg"
},
{
"small": "https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_small_2.png?version=v1&expires=1750181538&signature=Z6P5YmjwR9lav7t2zz1yxIjWXT145fZWaQJcbg5-2mtV_JeUpFDsKnWAOBA41IMI6mxLrxWoEGazmN05RkPoDg",
"medium": "https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_medium_2.png?version=v1&expires=1750181538&signature=tCWRiHTmflmaSiMAQa4rNhiLAWE1Byqqt-NyRFnllccMvPrBGcBXbKSIUIYQTquqylzZe8tg6QowIBc-klP7BA",
"large": "https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_large_2.png?version=v1&expires=1750181538&signature=a8_jZ_q0LF5TPHRGUuJ_eRCdKQ7QIfRVD5VqnCxemwF0TaYwzSOhIzfyvtzovAqdmnxEHNmqsssgas_cmgjoDA"
}
],
"merge_variables": {
"message": "Hello, world!"
},
"size": "4x6",
"mail_type": "usps_first_class",
"expected_delivery_date": "2025-05-29",
"date_created": "2025-05-18T17:32:18.575Z",
"date_modified": "2025-05-18T17:32:18.575Z",
"completed_at": null,
"send_date": "2025-05-18T17:32:18.485Z",
"to_be_expunged_date": "2025-08-16T17:32:18.485Z",
"use_type": "operational",
"qr_code": null,
"usps_campaign_id": null,
"is_creative_proof": false,
"fsc": false,
"lob_credits_funding_status": null,
"is_dashboard": false,
"object": "postcard"
}
~END~
D, [2025-05-19T00:32:18.901863 #31268] DEBUG -- : API called: PostcardsApi#postcard_create
Data: #<Lob::Postcard:0x0000000107827dc0 @carrier="USPS", @size="4x6", @object="postcard", @mail_type="usps_first_class", @id="psc_a358bd96d142ee46", @to=#<Lob::IntlAddress:0x0000000107827050 @object="address", @id="adr_414cfab9f0ade582", @description=nil, @name="JANE DOE", @company=nil, @phone=nil, @email=nil, @metadata={}, @address_line1="370 WATER ST", @address_line2=nil, @address_city="SUMMERSIDE", @address_state="PRINCE EDWARDS ISLAND", @address_zip="C1N 1C4", @address_country="CANADA", @date_created=2025-05-18 17:32:18.46 UTC, @date_modified=2025-05-18 17:32:18.46 UTC, @deleted=true, @recipient_moved=nil>, @from=#<Lob::AddressDomesticExpanded:0x000000011002b8e8 @address_line1="210 KING ST", @address_line2=nil, @address_city="SAN FRANCISCO", @address_state="CA", @address_zip="94107", @description=nil, @name="JOHN DOE", @company=nil, @phone=nil, @email=nil, @address_country="UNITED STATES", @metadata={}>, @thumbnails=[#<Lob::Thumbnail:0x000000011002a268 @small="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_small_1.png?version=v1&expires=1750181538&signature=oVCK-cMGvSWi1wIOJSihdNtd_c9kjQFQfgdDDVkEahuVWMMZionr-ElHotKIak_KnHU5ewnvJatkPdrMDFU2DQ", @medium="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_medium_1.png?version=v1&expires=1750181538&signature=BkO2y95GRT_wSpIjwN4elVpvHP8ewJ3zfNHFKXhpsTu1mBqmT-Dm81iCiunBSYBf9NpbBBqvMpu0muox6G8cBA", @large="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_large_1.png?version=v1&expires=1750181538&signature=iS7o3tRC5nzvLroFIawCLTPnWImy3CMuBnT2WMNMbvIOU5obtK46TT0wHnMFRYX3KYzrMdFT5LWPe2JOIiZ_Dg">, #<Lob::Thumbnail:0x00000001100299d0 @small="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_small_2.png?version=v1&expires=1750181538&signature=Z6P5YmjwR9lav7t2zz1yxIjWXT145fZWaQJcbg5-2mtV_JeUpFDsKnWAOBA41IMI6mxLrxWoEGazmN05RkPoDg", @medium="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_medium_2.png?version=v1&expires=1750181538&signature=tCWRiHTmflmaSiMAQa4rNhiLAWE1Byqqt-NyRFnllccMvPrBGcBXbKSIUIYQTquqylzZe8tg6QowIBc-klP7BA", @large="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_large_2.png?version=v1&expires=1750181538&signature=a8_jZ_q0LF5TPHRGUuJ_eRCdKQ7QIfRVD5VqnCxemwF0TaYwzSOhIzfyvtzovAqdmnxEHNmqsssgas_cmgjoDA">], @expected_delivery_date=#<Date: 2025-05-29 ((2460825j,0s,0n),+0s,2299161j)>, @date_created=2025-05-18 17:32:18.575 UTC, @date_modified=2025-05-18 17:32:18.575 UTC, @front_template_id=nil, @back_template_id=nil, @front_template_version_id=nil, @back_template_version_id=nil, @tracking_events=[], @url="https://lob-assets.com/postcards/psc_a358bd96d142ee46.pdf?version=v1&expires=1750181538&signature=SLEA3fskzUTQpHWjRQgXvH0_u0Soj_w0rNRNyuklqK7D0OA0kxgJZXZOWEQfaQPvlCE_FuB8wkSmsH12EfRODA", @description=nil, @metadata={}, @merge_variables={:message=>"Hello, world!"}, @send_date=2025-05-18 17:32:18.485 UTC, @use_type="operational">
Status code: 200
Headers: {"date"=>"Sun, 18 May 2025 17:32:18 GMT", "content-type"=>"application/json; charset=utf-8", "access-control-allow-credentials"=>"true", "access-control-expose-headers"=>"WWW-Authenticate,Server-Authorization", "cache-control"=>"no-cache", "vary"=>"origin,accept-encoding", "x-rate-limit-limit"=>"150", "x-rate-limit-remaining"=>"149", "x-rate-limit-reset"=>"1747589543", "cf-cache-status"=>"DYNAMIC", "expect-ct"=>"max-age=86400, enforce", "referrer-policy"=>"same-origin", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "set-cookie"=>"_cfuvid=6hqgTId9q2Z._XZknU5NRjz3Pc0tVNiF6IYEavC0UG4-1747589538792-0.0.1.1-604800000; path=/; domain=.lob.com; HttpOnly; Secure; SameSite=None", "server"=>"cloudflare", "cf-ray"=>"941d17d3db248210-SIN"}
#<Lob::Postcard:0x0000000107827dc0 @carrier="USPS", @size="4x6", @object="postcard", @mail_type="usps_first_class", @id="psc_a358bd96d142ee46", @to=#<Lob::IntlAddress:0x0000000107827050 @object="address", @id="adr_414cfab9f0ade582", @description=nil, @name="JANE DOE", @company=nil, @phone=nil, @email=nil, @metadata={}, @address_line1="370 WATER ST", @address_line2=nil, @address_city="SUMMERSIDE", @address_state="PRINCE EDWARDS ISLAND", @address_zip="C1N 1C4", @address_country="CANADA", @date_created=2025-05-18 17:32:18.46 UTC, @date_modified=2025-05-18 17:32:18.46 UTC, @deleted=true, @recipient_moved=nil>, @from=#<Lob::AddressDomesticExpanded:0x000000011002b8e8 @address_line1="210 KING ST", @address_line2=nil, @address_city="SAN FRANCISCO", @address_state="CA", @address_zip="94107", @description=nil, @name="JOHN DOE", @company=nil, @phone=nil, @email=nil, @address_country="UNITED STATES", @metadata={}>, @thumbnails=[#<Lob::Thumbnail:0x000000011002a268 @small="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_small_1.png?version=v1&expires=1750181538&signature=oVCK-cMGvSWi1wIOJSihdNtd_c9kjQFQfgdDDVkEahuVWMMZionr-ElHotKIak_KnHU5ewnvJatkPdrMDFU2DQ", @medium="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_medium_1.png?version=v1&expires=1750181538&signature=BkO2y95GRT_wSpIjwN4elVpvHP8ewJ3zfNHFKXhpsTu1mBqmT-Dm81iCiunBSYBf9NpbBBqvMpu0muox6G8cBA", @large="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_large_1.png?version=v1&expires=1750181538&signature=iS7o3tRC5nzvLroFIawCLTPnWImy3CMuBnT2WMNMbvIOU5obtK46TT0wHnMFRYX3KYzrMdFT5LWPe2JOIiZ_Dg">, #<Lob::Thumbnail:0x00000001100299d0 @small="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_small_2.png?version=v1&expires=1750181538&signature=Z6P5YmjwR9lav7t2zz1yxIjWXT145fZWaQJcbg5-2mtV_JeUpFDsKnWAOBA41IMI6mxLrxWoEGazmN05RkPoDg", @medium="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_medium_2.png?version=v1&expires=1750181538&signature=tCWRiHTmflmaSiMAQa4rNhiLAWE1Byqqt-NyRFnllccMvPrBGcBXbKSIUIYQTquqylzZe8tg6QowIBc-klP7BA", @large="https://lob-assets.com/postcards/psc_a358bd96d142ee46_thumb_large_2.png?version=v1&expires=1750181538&signature=a8_jZ_q0LF5TPHRGUuJ_eRCdKQ7QIfRVD5VqnCxemwF0TaYwzSOhIzfyvtzovAqdmnxEHNmqsssgas_cmgjoDA">], @expected_delivery_date=#<Date: 2025-05-29 ((2460825j,0s,0n),+0s,2299161j)>, @date_created=2025-05-18 17:32:18.575 UTC, @date_modified=2025-05-18 17:32:18.575 UTC, @front_template_id=nil, @back_template_id=nil, @front_template_version_id=nil, @back_template_version_id=nil, @tracking_events=[], @url="https://lob-assets.com/postcards/psc_a358bd96d142ee46.pdf?version=v1&expires=1750181538&signature=SLEA3fskzUTQpHWjRQgXvH0_u0Soj_w0rNRNyuklqK7D0OA0kxgJZXZOWEQfaQPvlCE_FuB8wkSmsH12EfRODA", @description=nil, @metadata={}, @merge_variables={:message=>"Hello, world!"}, @send_date=2025-05-18 17:32:18.485 UTC, @use_type="operational">
D, [2025-05-19T00:26:05.645429 #31035] DEBUG -- : Calling API: PostcardsApi.postcard_create ...
D, [2025-05-19T00:26:05.645974 #31035] DEBUG -- : HTTP request body param ~BEGIN~
{"to":{"name":"Jane Doe","address_line1":"370 Water St","address_city":"Summerside","address_state":"Prince Edwards Island","address_zip":"C1N 1C4","address_country":"CA"},"from":{"name":"John Doe","address_line1":"210 King St","address_city":"San Francisco","address_state":"CA","address_zip":"94107","address_country":"US"},"size":"4x6","mail_type":"usps_first_class","merge_variables":{"message":"Hello, world!"},"front":"<!DOCTYPE html><html><head><title>Front</title></head><body></body></html>","back":"<!DOCTYPE html><html><head><title>Back</title></head><body>{{message}}</body></html>","use_type":"operational"}
~END~
D, [2025-05-19T00:26:06.739239 #31035] DEBUG -- : HTTP response body ~BEGIN~
{
"id": "psc_ae1950ffc9e41bcf",
"description": null,
"metadata": {},
"to": {
"id": "adr_672b8e6ca5a0a91a",
"description": null,
"name": "JANE DOE",
"company": null,
"phone": null,
"email": null,
"address_line1": "370 WATER ST",
"address_line2": null,
"address_city": "SUMMERSIDE",
"address_state": "PRINCE EDWARDS ISLAND",
"address_zip": "C1N 1C4",
"address_country": "CANADA",
"metadata": {},
"date_created": "2025-05-18T17:26:06.589Z",
"date_modified": "2025-05-18T17:26:06.589Z",
"deleted": true,
"object": "address"
},
"from": {
"id": "adr_261100f522e52c64",
"description": null,
"name": "JOHN DOE",
"company": null,
"phone": null,
"email": null,
"address_line1": "210 KING ST",
"address_line2": null,
"address_city": "SAN FRANCISCO",
"address_state": "CA",
"address_zip": "94107",
"address_country": "UNITED STATES",
"metadata": {},
"date_created": "2025-05-18T17:26:06.589Z",
"date_modified": "2025-05-18T17:26:06.589Z",
"deleted": true,
"object": "address"
},
"status": "processed",
"failure_reason": null,
"url": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf.pdf?version=v1&expires=1750181166&signature=jS5I3ieNosnUn0Ieoj5vJNIQ-ws7-WJiFxFfVKeeMTqxGEugdJCAHIj3E82VTutZi_oE6TlhYpjUuZxgEhGQCw",
"raw_url": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf_raw.pdf?version=v1&expires=1750181166&signature=iBt3vxiFO2zEZQRKkgO24bATJhkMBz1BH-5bWpgZJnvM5LjS_kssYl9TF8z0RwFU8jk7yMlBlt8GRyR0nkd-Cw",
"front_template_id": null,
"back_template_id": null,
"front_template_version_id": null,
"back_template_version_id": null,
"campaign_id": null,
"carrier": "USPS",
"tracking_events": [],
"thumbnails": [
{
"small": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf_thumb_small_1.png?version=v1&expires=1750181166&signature=8Dv07MiF01QanPvpiamSYCQ24KJ4gGg-fKtXXrKNqn4eaaFK0vcBOu8SxkaHqZ6QArc9zDS35Xz9sCkQu1PqCQ",
"medium": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf_thumb_medium_1.png?version=v1&expires=1750181166&signature=SEIOCs_IfR3IG3qX5EawMRlhdYBcxdpkvmhpTknjogQ4rKFeNepAPaNhZwp_4hlrs445PEzd1Q1pEqNPSuIhCA",
"large": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf_thumb_large_1.png?version=v1&expires=1750181166&signature=hvMnzDRfvKdK1K8_z9pw_d6MaOmCVg3e9rInHk3qJm-v0XI4bl2Cs0Lx6b9KPEuuePRiKMc3PeE_k3_ZhGSqDQ"
},
{
"small": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf_thumb_small_2.png?version=v1&expires=1750181166&signature=BTNQvE6llwhv2hHTV3M83uU7i5fC3SX6NUJxhp0b8O96vqvQMCRlFI8oFbeUuMwCnaOoQ0NRdYpYXjd7VwnuBQ",
"medium": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf_thumb_medium_2.png?version=v1&expires=1750181166&signature=DPM14Vgn8p2HRmt1aD9Q3EN1VVNgcjUurVyOH6KrxebNeMgYsJgmQbWvNdXNTTd1epEGGCp8xwADrEl7WE3TCg",
"large": "https://lob-assets.com/postcards/psc_ae1950ffc9e41bcf_thumb_large_2.png?version=v1&expires=1750181166&signature=ldks_X_3MyjYsWEM2qXm6X9VWchW1AU-9ug_mOsZqpSiid2Vxy_bAsFwxPKAG7Ww9RGgguUFBKSMU7B6BqENDA"
}
],
"merge_variables": {
"message": "Hello, world!"
},
"size": "4x6",
"mail_type": "usps_first_class",
"expected_delivery_date": "2025-05-29",
"date_created": "2025-05-18T17:26:06.691Z",
"date_modified": "2025-05-18T17:26:06.691Z",
"completed_at": null,
"send_date": "2025-05-18T17:26:06.611Z",
"to_be_expunged_date": "2025-08-16T17:26:06.611Z",
"use_type": "operational",
"qr_code": null,
"usps_campaign_id": null,
"is_creative_proof": false,
"fsc": false,
"lob_credits_funding_status": null,
"is_dashboard": false,
"object": "postcard"
}
~END~
/Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/address.rb:422:in `address_state=': invalid value for "address_state", must conform to the pattern (?-mix:^[a-zA-Z]{2}$). (ArgumentError)
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/address.rb:518:in `block in build_from_hash'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/address.rb:500:in `each_pair'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/address.rb:500:in `build_from_hash'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/address.rb:491:in `build_from_hash'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/postcard.rb:604:in `_deserialize'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/postcard.rb:558:in `block in build_from_hash'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/postcard.rb:540:in `each_pair'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/postcard.rb:540:in `build_from_hash'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/models/postcard.rb:531:in `build_from_hash'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/api_client.rb:282:in `convert_to_type'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/api_client.rb:242:in `deserialize'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/api_client.rb:73:in `call_api'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/api/postcards_api.rb:90:in `postcard_create_with_http_info'
from /Users/hi/.local/share/mise/installs/ruby/3.0.7/lib/ruby/gems/3.0.0/gems/lob-6.0.9/lib/lob/api/postcards_api.rb:29:in `create'
from repro.rb:47:in `<main>'
I am getting this error when creating a postcard, even though the Lob API was successfully created the postcard and returns a successful response as we can see by debugging the HTTP request/response shown below. After digging deeper, it looks like this gem does not parse the API response correctly.
Expected
Actual