zalmoxisus / redux-remotedev

Redux DevTools for production (web and React Native) with a highly flexible API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type ACTION is not supported yet

Romanchuk opened this issue · comments

Hello, i'm trying to use redux-remotedev with local remotedev-server (latest versions) to send reports. redux-remotedev sends request with type ACTION but remotedev-server responses with an error "Type ACTION is not supported yet.". I've discovered remotedev-server source code and found that condition:

if (data.type !== 'ACTIONS' && data.type !== 'STATE') {
    return error('Type ' + data.type + ' is not supported yet.');
  }

Post request body:

payload:"{"state": .... "
type:"ACTION"
userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"

remotedev-server response:
error: "Type ACTION is not supported yet."

Here is my code:

import remotedev from 'redux-remotedev';

const enhancer = compose(
  applyMiddleware(
    thunkMiddleware
  ),
  remotedev({
    sendTo: 'http://localhost:8002',
    every: true
  })
);
const store = createStore(reducer, {}, enhancer);

also i'm starting latest "remotedev-server":
npx remotedev --hostname=localhost --port=8002

I see this repo had last update 2 years ago. Do you still support it?