【问题标题】:Strapi GraphQL 413 Payload too large request errorStrapi GraphQL 413 Payload too large request 错误
【发布时间】:2021-12-25 00:53:08
【问题描述】:

我只有在 graphql 中有这个问题。我需要发布 base64 html,但我没有找到 graphql 的任何配置来覆盖 1mb 限制。 我已经设置了 middleware.js 并选择了上限值,但它仅适用于 REST API

【问题讨论】:

    标签: graphql apollo-server strapi koa body-parser


    【解决方案1】:

    这个github里面issue可以解决。暂时的,但它有效。

    更改config/plugins.js

    module.exports = {
       graphql: {
          endpoint: "/customendpoint"
       }
    };
    

    事实上,端点/graphql没有经过解析器中间件,所以请求不起作用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多