代码之家  ›  专栏  ›  技术社区  ›  Abdullah Umer

阿波罗例外:HTTP 500

  •  0
  • Abdullah Umer  · 技术社区  · 7 年前

    com.apollographql.apollo.exception.ApolloHttpException: HTTP 500 
    

    我在失眠症中也使用了同样的查询,而且效果很好。

    以下是问题:

    query FetchAds($afterPostDate: Int, $beforePostDate: Int, $beforeUpdateDate: Int, $afterUpdateDate: Int, $page: Int, $city: String, $onlyWithImage: Boolean, $near: String, $tag: String, $id: [Int]) {
      posts(afterPostDate:$afterPostDate, beforePostDate: $beforePostDate, beforeUpdateDate: $beforeUpdateDate, afterUpdateDate: $afterUpdateDate, page: $page, city: $city, onlyWithImage: $onlyWithImage, near: $near, tag: $tag, id: $id) {
        items {
          id
          title
          postDate
          updateDate
        }
        pageInfo {
          hasNextPage
        }
      }
    }
    

    我也在iOS应用程序中与apollo客户端使用相同的查询,它也运行良好。

    1 回复  |  直到 7 年前
        1
  •  0
  •   Calin    7 年前

    错误代码>500表示服务器问题 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Server_error_responses

    您可以尝试简化查询或运行其他查询来缩小问题的范围,并将更多信息发送给serer开发人员。

    推荐文章