【发布时间】:2015-12-06 06:48:21
【问题描述】:
我正在关注这个示例应用程序:https://github.com/relayjs/relay-starter-kit
Relay.injectNetworkLayer(
new Relay.DefaultNetworkLayer('http://localhost:8080/graphql')
);
使用自定义网址我收到以下错误
选项http://localhost:8080/graphql
net::ERR_EMPTY_RESPONSEself.fetch @relay.js:21558Promise @
app.js:3335self.fetch@relay.js:21508sendTimedRequest@
relay.js:20131module.exports@relay.js:20186tryCallTwo@
relay.js:3762doResolve @relay.js:3879Promise @
relay.js:3782fetchWithRetries@relay.js:20122_sendQuery@
relay.js:13042(匿名函数)@relay.js:12976sendQueries @
relay.js:12975sendQueries@relay.js:3502processQueue@
relay.js:17591(匿名函数)@relay.js:17582tryCallOne @
relay.js:3754(匿名函数)@relay.js:3820flush@relay.js:9457
relay.js:21558 选项http://localhost:8080/graphql
net::ERR_EMPTY_RESPONSEself.fetch @relay.js:21558Promise @
app.js:3335self.fetch@relay.js:21508sendTimedRequest@
relay.js:20131 relay.js:21558 选项http://localhost:8080/graphql
net::ERR_EMPTY_RESPONSEself.fetch @relay.js:21558Promise @
app.js:3335self.fetch@relay.js:21508sendTimedRequest@
relay.js:20131 relay.js:7449 网络请求失败_markAsRejected @
relay.js:7449_handleSubtractedQueryFailure @relay.js:7430tryCallOne @
relay.js:3754(匿名函数)@relay.js:3820flush@relay.js:9457
【问题讨论】:
标签: relayjs