你在做什么?:
我想在阿波罗服务器上抛出一个错误并在客户端进行处理。
注意:,我在阿波罗客户端上使用阿波罗链接错误中间件.
服务器:
import { UserInputError } from "apollo-server";
Mutation: {
someMutation : {
try {
// here is some code which failed
} catch (error) {
// base Error class has message property by default
// res
使用C# Framework4.0,其中代理作为Windows7 32位上的服务运行,我在稳定版和开发版上都看到了以下错误。
2012-09-09 20:25:03,524 | WARN | Internal Server Error: org.apache.activemq.apollo.util.path.PathParser$PathException: Invalid destination: 'ID\cEros201-30171-634828191032886763-1\c0\c1', it does not match regex: [ a-zA-Z0-9\_\-
我在我的上使用GraphQL和阿波罗,我的查询运行得很好,但是当我尝试运行一个突变(在浏览器上使用完全相同的代码)时,我会得到以下错误:
Error: Network error: Response not successful: Received status code 400
at new ApolloError (bundle.umd.js:76)
at bundle.umd.js:952
at bundle.umd.js:1333
at Array.forEach (<anonymous>)
at bundle.umd.js:1332