Solvedmetamask extension Newer version of matamask throws errors when sending transaction.

I have two versions of metamask chrome extensions. 3.5.2 and 3.9.11.
I'm currently running private geth node Version: 1.6.7-stable

I can process transactions with older version of metamask, but when I switch to newer I get this error.
The message comes instantaneously, every time.

[ethjs-rpc] rpc error with payload {"id":7663982154336,"jsonrpc":"2.0","params":["0xf86b808504a817c800833d090094001a4039eed5a5099b2bd25085b48ef137902be38084be9a65558207f2a0aff9e56abb6bbeee508bf3fc3918176df97ae118b24bf78d90a9edb762900c1fa0649f391910b82dc97f3259f0d781dde56bf1ed710d5723eeea8fc63bb351a48d"],"method":"eth_sendRawTransaction"} Error: invalid sender

23 Answers

βœ”οΈAccepted Answer

You need to make sure you specify both networkId and chainId and they are the same values.

Using an older MetaMask works because we lacked the EIP155 security feature back then.

Other Answers:

I've had the same issue, but specifying config.eip155block and networkId that is equal to config.chainId actually helped, thanks @danfinlay!

I've created a repo containing a pre-initialized dev chain that works with MetaMask, just in case it would save someone time configuring this.

However, it seems that, for some reason, truffle-contract in my Dapp doesn't resolve promises of transactions when pointed to MetaMask's provider, even though MetaMask shows these transactions as completed and I can see them recorded to the blockchain. This reproduces both on my local dev net and on Ropsten test net. But this is a different issue, I guess (probably related to #2426).

Related Issues:

15
metamask extension Allow dapp to disconnect accounts
Great success! Pasting code here for others. What problem are you trying to solve? With the new upda...
11
metamask extension etimateGas failing 9/10 times when it should succeed
To understand this problem it's important to understand the difference between gasPrice and gasLimit...
6
metamask extension Newer version of matamask throws errors when sending transaction.
You need to make sure you specify both networkId and chainId and they are the same values ...
30
browser laptop IPFS Integration - Roadmap and discussion
Ohai everyone o/ Good news! Things have been progressing quite well and we now have a working versio...
15
brave browser IPFS Integration - Roadmap and discussion
Notes on bringing IPFS to Brave in 2019 I had a chat with @bbondy about ways we can deliver better I...
14
brave browser Spotify Web Player Unable to Play Content
So I encounter this issue and able to make it work Description When attempting to use spotify's web ...
12
brave browser Google-Translate-extention Pop-Up
@GraOrigin @psisavant @TCB13 @Numline1 The option to disable the popups is in the Language drop down...
12
browser laptop npm install fails on Ubuntu 14.04 with recent node/npm
Hi! this work for me: rm -rf node_modules/ && npm install && npm rebuild I'm using node 5.10 and npm...
8
brave browser PWA Support is broken (crashes)
It's happening because it links the website to the chrome_proxy.exe in the startup command line Chan...
5
brave browser Remove deep-freeze-node dependency: the project is no longer installable on mac arm
I also encountered the same issue Problem is that the path to the repository url is broken ...
4
browser laptop URL and tab bar do not hide in full screen mode
We're tracking issues for brave-core in the parent repo: https://github.com/brave/brave-browser Whil...
3
brave browser CSP (content security policy) breaks some sites when they are launched from an existing web page
Thanks! I got the upgrade a few minutes ago switched #brave-adblock-csp-rules back to default and no...
506
electron Requiring electron outside of main.js causes a TypeError
For anyone encountering this problem in the future and reading this thread Electron version: 1.3.5 O...
236
electron Error while importing electron in react | import { ipcRenderer } from 'electron'
@MarshallOfSound my mistake I found the solution in issue #7300 if it can help anyone Please note th...
229
electron Failed to load resource: net::ERR_FILE_NOT_FOUND file:///D:/css/app.css
If this occur when having <base href=/> in the index.html just replace it by <base href=./>. ...
204
electron Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
Try It should output a progress bar for the download πŸ‘ Electron version: latest (That Try) Operatin...
178
Addon Addon Unavailable on Google Chrome
Unfortunate but not unexpected move by Google Thanks for appealing this @KevinRoebert For new users ...
175
electron How do I open a url from <a> on default OS browser?
I found this code snippet on S.O.: Dropped it in my main index file it seems to be working as far as...
139
electron 9.0.0 does not display local images
A recap for anyone else who's having this issue: Make sure you've enabled webSecurity from your Brow...
103
electron The SUID sandbox helper binary was found, but is not configured correctly
CONFIG_USER_NS=y enables the user namespaces feature but they're still restricted to privileged user...
81
serverless chrome NSS_VersionCheck("3.26") failed
I have done to fix this in Ubuntu 16.04 by reinstalling libnss3 Hello I get the below at runtime whe...
74
YouTubeCenter Video doesn't start.
Quick fix is to change the way window.matchMedia is getting overridden I'm running one of the dev bu...
70
electron autoUpdater does not work when have authenticated proxy
I finally got everything working so I just wanted to report back here quickly while I'm waiting for ...
62
electron Can't install electron 1.7.6 in Ubuntu 16.04 environment
try sudo npm install -g electron --unsafe-perm=true --allow-root Electron version:1.7.6 (1.7.8(lates...
60
electron No Cut/Copy/Paste context menus on <input> fields
Adding context menus to all inputs/textarea's is simple: Just put that in render process somewhere ...
59
electron app.getVersion returns electron binary version instead of package.json field
In development the version returned by app.getVersion() depends on how you launched your app ...
57
electron Behind proxy, installation failed with 7.0.0, but works with 6.1.2
The workaround of specifying environment variables from castlabs/electron-releases#45 (comment) work...
56
electron Could not get code signature for running application
Building on @erynkyo I've found that you don't need to create a new key and can ad-hoc code sign by ...
51
electron mainWindow.webContents.openDevTools() throws error when loading new page
+1 happens after every reload but only if devtools is open I don't specify to open devtools from the...
49
electron Not allowed to load local resource
@isurendrasingh Add this configuration when you instantiate the BrowserWindow. Electron Version: 2.0...
44
electron Electron apps can't find libcurl.so.4
@loveencounterflow I had the same issue on Linux Mint 18 Cinnamon sudo apt-get install curl libcurl3...
37
electron Getting started ... or not?
@ZelphirKaltstahl do you have node_modules/.bin on your PATH? I think that is one assumption the ins...
36
electron systemPreferences.askForMediaAccess(mediaType) causes app to crash in macOS Mojave
@fgladisch The TCC log indicates that the entitlement is correctly set The app crashes regardless ...
34
electron How to catch errors occured in the main process?
To to catch errors that occure in the main process you can use: When you set a listener for uncaught...
34
electron BrowserWindow preload script not executed
This works for me: Hello I have downloaded the atom/electron-quick-start and changed the main.js to ...
34
electron Distinguishing "development" from "production"
For us it has always been easy to do with minimal code This solution works in both the main and rend...
31
electron [Discussion] Requiring Native Modules in the Renderer Process to be NAPI or Context Aware
Is there a way to suppress the deprecation warning? I am upgrading to electron 7.x and plan to updat...
29
electron electron.d.ts does not work with @types/node v13.1.0
Run npm install --save --save-exact @types/node@^12.12.6 It works afterward (even with Electron v8.2...
27
electron How do I change the name of the electron window?
The first answer isn't clear enough Here's the secret sauce πŸ‘ πŸ‘ At first tried changing just the m...
26
electron How to inject jquery into Browserwindow
Okay so disregard what I said above It doesn't appear you can inject jQuery like that in a webview p...
26
electron Disable zoom
If you are looking for a way how to prevent zoom from main process you can use: ...
25
electron Notification API do not work with Windows 10 16299.19 (fall creators update)
I think I found a fix! Calling app.setAppUserModelId(<my app id>) suddenly fixes my notifications ...
24
electron node Integration is set to false, but I need the renderer process and the main process communication
When you spawn your browser window set the preload option to a script you wish to preload: Then in t...
20
browser Extension does not load in Firefox Private Mode
Bitwarden relies on background page communication from the popup to function In Firefox private mode...
19
WebFundamentals ERROR: Failed to resolve: com.github.GoogleChrome.custom-tabs-client:customtabs:d08e93fce3
Okay.. sorry for referencing any of the contributors.. nothing is more frustrating than a failed bui...
18
electron Using electron and React
You actually posted few seconds before my response πŸ˜„ I will put it here anyway as an alternative ap...
18
electron Renderer Node fs API stops working on page reload when allowRendererProcessReuse is true
With the official release of v9.0.0 app.allowRendererProcessReuse is now set to true by default ...
17
electron Windows: Squirrel autoUpdater error when running app for the first time
Yes but when reading the autoUpdater docs or the electron-builder docs there is mention about this ...
16
electron Unable to install Electron version >=7: EPERM: operation not permitted
Workaround: start installer normally with npm install electron installation fails with EPERM error ...
15
electron Cannot find module '../screen'
Had the same problem using makeSingleInstance I solved it using app.exit() instead of app.quit() ...