Skip to content

get_image_array image srcset fix#34

Open
jGRUBBS wants to merge 1 commit into
masterfrom
get_image_array-fix
Open

get_image_array image srcset fix#34
jGRUBBS wants to merge 1 commit into
masterfrom
get_image_array-fix

Conversation

@jGRUBBS
Copy link
Copy Markdown
Member

@jGRUBBS jGRUBBS commented Jul 24, 2024

ensure image srcset is always a string

{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse field [featured_image.image.srcset] of type [boolean] in document with id '81538'"}],"type":"mapper_parsing_exception","reason":"failed to parse field [featured_image.image.srcset] of type [boolean] in document with id '81538'","caused_by":{"type":"illegal_argument_exception","reason":"Failed to parse value [https://d1fxo6mb5umqsa.cloudfront.net/wp-content/uploads/2024/05/16110759/Hero-300x167.jpg 300w, https://d1fxo6mb5umqsa.cloudfront.net/wp-content/uploads/2024/05/16110759/Hero-1024x569.jpg 1024w, https://d1fxo6mb5umqsa.cloudfront.net/wp-content/uploads/2024/05/16110759/Hero-768x426.jpg 768w, https://d1fxo6mb5umqsa.cloudfront.net/wp-content/uploads/2024/05/16110759/Hero-1536x853.jpg 1536w, https://d1fxo6mb5umqsa.cloudfront.net/wp-content/uploads/2024/05/16110759/Hero-2048x1137.jpg 2048w] as only [true] or [false] are allowed."}},"status":400}

Before this fix, image srcset could be a boolean.

Addresses

  • kingandpartners/nemacolin#2480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant