Мой стек react/redux/redux-observable/immutablejs. Клиент рендерится с помощью перьев.js с использованием рендеринга на стороне сервера. Я использую перо-клиент после получения 400 (запрос не проходит проверку). У меня есть ответ в формате .json. Но по некоторым причинам он конвертируется в HTML или строку.
Error: Order validation failed
at BadRequest.ExtendableBuiltin (bundle.js:106696)
at BadRequest.FeathersError (bundle.js:106771)
at new BadRequest (bundle.js:106812)
at convert (bundle.js:107040)
at toError (bundle.js:106043)
Любые идеи, как отключить его на клиенте?
import 'isomorphic-fetch';
import feathers from 'feathers-client';
import authentication from 'feathers-authentication-client';
import config from './config';
let storage = null;
if (!process.env.BROWSER && process.NODE_ENV !== 'test') {
require('localstorage-polyfill');
storage = global.localStorage;
}else{
storage = window.localStorage;
}
const port = process.env.PORT || config.port;
promise.polyfill();
const rest = feathers.rest(`http://localhost:${port}/api`);
const app = feathers()
.configure(feathers.hooks())
.configure(rest.fetch(require('isomorphic-fetch')))
.configure(authentication({ storage }));
export default app;