Skip to content

Order API getting failed with status 400 incorrect signature  #556

@Rai6799

Description

@Rai6799

{ "name": "My", "version": "0.1.0", "homepage": ".", "private": true, "dependencies": { "@babel/core": "^7.20.5", "@emotion/react": "^11.9.0", "@emotion/styled": "^11.8.1", "@ethereumjs/common": "^2.4.0", "@ethereumjs/tx": "^3.3.0", "@fortawesome/fontawesome-svg-core": "^6.4.0", "@fortawesome/free-solid-svg-icons": "^6.4.0", "@fortawesome/react-fontawesome": "^0.2.0", "@mui/material": "^5.6.4", "@rarible/api-client": "^0.0.13-beta11", "@rarible/ethers-ethereum": "^0.12.78", "@rarible/protocol-ethereum-sdk": "^0.12.79", "@rarible/sdk-wallet": "^0.9.13-beta.imx.2", "@rarible/types": "^0.9.6", "@rarible/web3-ethereum": "^0.12.78", "@solana/web3.js": "^1.68.1", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.1.1", "@testing-library/user-event": "^13.5.0", "@truffle/hdwallet-provider": "^2.0.8", "@types/jest": "^28.1.1", "@types/node": "^17.0.42", "@types/react": "^18.0.12", "@types/react-dom": "^18.0.5", "autoprefixer": "10.4.5", "axios": "^0.27.2", "babel-preset-react-app": "^10.0.1", "bootstrap": "4.6.1", "country-state-city": "^3.1.4", "crypto": "^1.0.1", "depcheck": "^1.4.3", "eth-rpc-errors": "^4.0.3", "eth-sig-util": "3.0.1", "ethereumjs-util": "^7.1.0", "ethers": "^5.7.2", "http": "^0.0.1-security", "https": "^1.0.0", "install": "^0.13.0", "ipfs-http-client": "^50.1.2", "jquery": "^3.6.0", "lodash": "^4.17.21", "moment": "^2.29.3", "npm": "^9.7.1", "os": "^0.1.2", "postcss-preset-env": "^7.4.4", "prop-types": "^15.8.1", "react": "^18.1.0", "react-bootstrap": "^2.4.0", "react-copy-to-clipboard": "^5.1.0", "react-datepicker": "^4.8.0", "react-dom": "^18.1.0", "react-flash-message": "^1.0.8", "react-icons": "^4.3.1", "react-otp-input": "^2.4.0", "react-phone-number-input": "^3.2.11", "react-redux": "^8.0.1", "react-router-dom": "^6.3.0", "react-scripts": "4.0.3", "react-select": "^5.7.3", "react-share": "^4.4.0", "react-simple-image-viewer": "^1.2.2", "redux": "^4.2.0", "redux-devtools-extension": "^2.13.9", "redux-persist": "^6.0.0", "redux-thunk": "^2.4.1", "sass": "^1.51.0", "serve": "^13.0.2", "stream": "^0.0.2", "styled-components": "^5.3.5", "sweetalert": "^2.1.2", "tslib": "^2.4.0", "typescript": "^4.7.3", "util": "^0.12.4", "uuid": "^9.0.0", "web-vitals": "^2.1.4", "web3": "^1.7.5", "web3-eth-contract": "^1.7.5", "web3-utils": "^1.7.5", "web3modal": "^1.9.12", "yup": "^0.32.11" }, "scripts": { "start": "react-scripts --max_old_space_size=4096 start", "build": "react-scripts --max_old_space_size=4096 build", "test": "react-scripts test", "eject": "react-scripts eject" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "devDependencies": { "@rarible/sdk": "^0.13.56", "assert": "^2.0.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", "https-browserify": "^1.0.0", "os-browserify": "^0.3.0", "prettier": "^2.6.2", "process": "^0.11.10", "react-app-rewired": "^2.2.1", "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", "url": "^0.11.0" } }

Hey guys! I am using above package.json for my project.
I have made one changes that related to rarible sdk version earlier I was using rarible sdk version "^0.13.7" so it was working for my project only issue was coming on accept auction and NFT listing for sell and buy was working.
But since 27Oct my all functionality not working when I checked in console then I saw rarible order API is getting failed with 400 status.

And when I checked the payload then I saw like this
"status": 400,
"url": "https://testnet-ethereum-api.rarible.org/v0.1/order/orders",
"data": {
"code": "INCORRECT_SIGNATURE",
"message": "Maker's signature is not valid for V2 order",
"status": 400
},
"code": "ETHEREUM_NETWORK_ERR"
}

payload: {
"code": "INCORRECT_SIGNATURE",
"message": "Maker's signature is not valid for V2 order",
"status": 400
}

After that I shared my problem on discord they suggest to me upgrade sdk version ^0.13.7" to ^0.13.56"
After updating the rarible sdk version ^0.13.56" and while I am running the project then I am getting first warning that are as follows:
One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.

babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.

After some time getting error in terminal like this:

**Failed to compile.

./node_modules/@ethereumjs/util/node_modules/@noble/curves/abstract/weierstrass.js 1016:57
Module parse failed: Unexpected token (1016:57)
File was processed with these loaders:

./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| const u1 = modN(h * is); // u1 = hs^-1 mod n
| const u2 = modN(r * is); // u2 = rs^-1 mod n
const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P
| if (!R) return false;
| const v = modN(R.x);**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions