Can't Push Slice - Payload Too Large
See original GitHub issueVersion
- Prismic CLI version (know it by running
prismic --version
): v3.8.7
Reproduction
- Run the Slice Builder with
prismic sm --develop
- Try pushing the below slice to prismic
What is expected?
The slice should get pushed to prismic.
What is actually happening?
I get the error:
413 (Payload Too Large)
Any additional information
I already had a slice and tried updating it. The fields I added were buttonText
and buttonColor
. This is the full slice that I am trying to push to prismic.
model.json
{
"id": "image_two_up_with_title",
"type": "SharedSlice",
"name": "ImageTwoUpWithTitle",
"description": "ImageTwoUpWithTitle",
"variations": [
{
"id": "default-slice",
"name": "Default slice",
"docURL": "...",
"version": "sktwi1xtmkfgx8626",
"description": "ImageTwoUpWithTitle",
"primary": {
"imageLeftTitle": {
"config": {
"label": "Left Image Title",
"placeholder": "",
"allowTargetBlank": true,
"single": "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,rtl"
},
"type": "StructuredText"
},
"imageLeftSubtitle": {
"config": {
"label": "Left Image Subtitle",
"placeholder": "",
"allowTargetBlank": true,
"single": "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,rtl"
},
"type": "StructuredText"
},
"imageLeft": {
"config": {
"label": "Left Image",
"constraint": {},
"thumbnails": []
},
"type": "Image"
},
"imageRightTitle": {
"config": {
"label": "Image Right Title",
"placeholder": "",
"allowTargetBlank": true,
"single": "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,rtl"
},
"type": "StructuredText"
},
"imageRightSubtitle": {
"config": {
"label": "Image Right Subtitle",
"placeholder": "",
"allowTargetBlank": true,
"single": "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,rtl"
},
"type": "StructuredText"
},
"imageRight": {
"config": {
"label": "Image Right",
"constraint": {},
"thumbnails": []
},
"type": "Image"
},
"marginTop": {
"config": {
"label": "Margin Top",
"placeholder": "e.g. 20px, 2rem"
},
"type": "Text"
},
"marginBottom": {
"config": {
"label": "Margin Bottom",
"placeholder": "e.g. 20px, 2rem"
},
"type": "Text"
},
"buttonText": {
"config": {
"label": "Button Text",
"placeholder": ""
},
"type": "Text"
},
"buttonColor": {
"config": {
"label": "Button Colour",
"placeholder": "",
"default_value": "",
"options": [
"white",
"black",
"teal"
]
},
"type": "Select"
}
},
"items": {}
}
]
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Driver push / push slice - how can I close the face without ...
More athletic, knees engaged stance, don't take the club back so far, instead point it at target and then drop into the swing...
Read more >FIXING YOUR PUSH SLICE - YouTube
This week Chris answers a comment via Youtube on how to correct a push slice with the dr... ... Your browser can't play...
Read more >Redux Dev Tools not working for large action payload
I'm working on a react/redux application and am having a problem using the time travel feature in redux dev tools chrome extension. When...
Read more >Massive Push Slices/Pull Hooks - Mainly Driver - The Sand Trap
The guy in the video is hitting a 'functional' pull. He aligns a bit right of target and comes over the top a...
Read more >The Golf Stance | How Getting Too Wide Can Impact Weight ...
Most golfers with stances that are too wide end up using all upper body in the golf swing because they can't move their...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That fixes it! Yes the issue did seem to be around the preview screenshot - the screenshot was what was causing the payload to be too large. Manually shrinking the preview got around the problem before the update. With
slice-machine-ui@0.0.44-alpha.6
to problem is resolved though. Thanks for the quick response!Thanks for the info, I’ll bring it up tomorrow in the daily. We did some minor updates to the preview screenshots since
0.0.38
, in the meantime, I’d suggest trying withslice-machine-ui@0.0.44-alpha.6
(our current candidate for landing stable next week)