我正在跟踪这个示例应用程序:https://github.com/relayjs/relay-starter-kit
Relay.injectNetworkLayer(
new Relay.DefaultNetworkLayer('http://localhost:8080/graphql')
);使用自定义url,我得到以下错误
选项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 OPTIONS 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 OPTIONS 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网络请求failed_markAsRejected @ relay.js:7449_handleSubtractedQueryFailure @ relay.js:7430tryCallOne Relay.js:3754(匿名函数)@ relay.js:3820flush @ relay.js:9457
发布于 2015-09-10 17:42:24
https://stackoverflow.com/questions/32494136
复制相似问题