question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Push Slice - Payload Too Large

See original GitHub issue

Version

  • Prismic CLI version (know it by running prismic --version): v3.8.7

Reproduction

  1. Run the Slice Builder with prismic sm --develop
  2. 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
perohcommented, Feb 14, 2021

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!

1reaction
lihbrcommented, Feb 14, 2021

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 with slice-machine-ui@0.0.44-alpha.6 (our current candidate for landing stable next week)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found