Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type ACTION is not supported yet #7

Open
Romanchuk opened this issue Jul 10, 2018 · 0 comments
Open

Type ACTION is not supported yet #7

Romanchuk opened this issue Jul 10, 2018 · 0 comments

Comments

@Romanchuk
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant