Getting a 400 validation error trying to POST an item to Webflow collection

  • I want to post an item that is generated text to a webflow collection so it will be posted.

Here is how I am defining the Webflow module:

Here is an example input:

I seem to be getting a 400 validation error. I suspect that my text has a ' value in it.

If I were to use replace with \' would this solve it? Make doesn’t give me enough insight into the error when using a pre-built Webflow module.

Is there a more generalized way to make out put from one module and make it more JSON.stringify() like so that the value for any given field doesn’t break the API when it is expecting formatting JSON?

It doesn’t look like you’re sending JSON.

Can you take a screenshot of the error message, and provide the output bundles of modules [3] and [7]?

Please provide the output bundles of the requested modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

2 Likes

Thanks @samliew . Here it is:

[
    {
        "fields": {
            "name": "How America Became So Stupid",
            "title": "tZwIaVnWQSP4RF5tuS5B",
            "episodeid": 58999118,
            "thumbnail": {
                "alt": "How America Became So Stupid",
                "url": "https://i.ytimg.com/vi/j_jTnN1i43o/sddefault.jpg"
            },
            "metadescription": "American society's core issues include a departure from Enlightenment ideals, social isolation due to diminished community spaces, and adverse changes in diet and urban design. Consumerism, political deceit, and educational decline contribute to moral decay. AI technology risks further societal harm without careful management. Addressing these challenges requires a return to truth, intellectual growth, and equitable tech progress. \n\nTags: Enlightenment, social media effects, consumerism, community decline, urban sprawl, diet issues, educational gaps, political cynicism, AI impact. (296 characters)",
            "human-compaction-text": "1. America's founding ideals have been distorted, leading to a society that appears increasingly disconnected from its Enlightenment roots.\n2. Social media, which influences American culture and poisons public discourse, is identified as a pillar of America's downfall.\n3. A harmful consumer culture, driven by corporate interests and advertisement, manipulates desire and contributes to widespread decadence.\n4. Shifts in community structure, including the decline of traditional meeting places like churches, have deepened social isolation.\n5. Changes in urban design to car-centric cities have distanced people from natural, communal settings.\n6. Deterioration in the American diet, fueled by processed foods and government-industry complicity, has led to widespread health issues.\n7. America faces educational challenges, with many citizens lacking fundamental historical knowledge and a large number of adults not reading books.\n8. The political sphere in America is marred by deceit and cynicism, diminishing trust in government.\n9. Advanced technology such as AI is set to exacerbate problems by potentially increasing unemployment and further dumbing down society.\n\nQuestions & Answers:\n\n- How has America's social media influenced its culture?\nSocial media has exacerbated divisions, propagated superficiality, and prioritized content that lacks moral substance, effectively shaping the consciousness of Americans toward a less informed and more divisive outlook.\n\n- What role does consumer culture play in America's problems?\nConsumer culture, driven by corporate advertising capitalizing on people's desires, has substituted meaningful aspirations with materialistic and narcissistic pursuits, leading to societal decay.\n\n- In what ways has the community structure changed in America?\nTraditional community centers like churches have diminished in importance, and work has become detached from community life, exacerbating feelings of isolation and weakening social bonds.\n\n- How has urban design contributed to America's societal issues?\nUrban design that prioritizes vehicles over pedestrians and generates uninspiring, cookie-cutter environments contributes to a sense of alienation and discourages community interaction.\n\n- What factors in America's diet are causing health issues?\nThe prevalence of processed foods high in sugar, fat, and harmful chemicals, coupled with government inaction and corruption, is causing widespread obesity and associated health problems.\n\n- What does the state of education reveal about American society?\nMany Americans lack basic knowledge about their own history and government, and the decline in reading among the population suggests a broader disengagement from intellectual development.\n\n- How are deceit and cynicism affecting American politics?\nPoliticians who lie and engage in unethical behavior contribute to a culture of mistrust and diminish the public's faith in their leaders and government institutions.\n\n- How is technology such as AI expected to impact American society?\nAI is likely to disrupt the job market significantly, leading to potential unemployment and further depriving younger generations of the need to develop discipline and rigor in education.\n\nCore Takeaway:\n\nThe core problem described is the intellectual and moral decline of American society, partly due to the distortion of foundational Enlightenment ideals. This decline is manifested in various aspects, including harmful consumer culture, social media influence, urban design failures, education system deficiencies, political deceit, and technological advancements that may harm rather than help.\n\nThe consequences of not understanding or solving these problems can lead to a further erosion of the fabric of society, leaving the population less informed, less healthy, and less connected to each other.\n\nTo address the problem, three key ideas are:\n1. A recommitment to truth and community values is necessary to counteract the isolation and superficiality promoted by current societal dynamics.\n2. Reform in education and a cultural shift toward valuing intellectual pursuit over material success is crucial for long-term societal health.\n3. A responsible approach to technological advancements like AI is needed to ensure they benefit society equitably and do not exacerbate existing problems.\n\nTags here: Enlightenment, social media, consumer culture, community, urban design, American diet, education, politics, AI technology"
        },
        "select": "list",
        "isDraft": false,
        "site_id": "65a6082f668416161d16b8c7",
        "isArchived": false,
        "collection_id": "65a60964ac1b80bd5af49233"
    }
]

Here is output:

[
    null
]

@samliew hi, just wanted to do a follow-up. Webflow said that because it is an array – but that is what Make.com sends.

That array (square brackets) is just depicting an array of bundles. The first item within it though, has no arrays.

If you have the Make DevTool Chrome extension installed, you should be able to view the request and response headers and body from each module when you manually run the scenario.

From the Help Center article about the Make DevTool:

Make DevTool allows you to debug your Make scenarios in a completely new way. It adds an extra pane to the Chrome Developer Tools. Using this new debugger pane, you’re able to check all the manual runs of your scenario, review all the performed operations and see the details of every API call performed. It also brings a whole bunch of new opportunities for Apps development. You’re able to check every call that your app has performed. Thanks to this extension, you can easily debug your scenario, see which module, operation, even which single response causes the error, and then get your scenario back on track. Try it out and let your scenarios shine!

For more information on how to install and use this, see https://www.make.com/en/help/scenarios/integromat-devtool

2 Likes