Opensea plugins code: 141 error: "socket hang up"

Mainnet or testnet, but if I connect with a non-owner wallet, fulfillorders returns the following error
opensea_fulfillOrder result.

  1. code: 141
  2. error: β€œsocket hang up”

payload

  1. network: β€œtestnet”

  2. order: {hash: β€œ0x21c4e4ee24ebda5e6b2e6fda817aa50e2f46b0414e5783eee083e65b3ac1fa38”,…}

  3. asset: {tokenId: β€œ3”, tokenAddress: β€œ0xfd76d290aef0ac92b6bb9fe229396e1b9670f5bc”,…}

  4. basePrice: β€œ111100000000000000”

  5. calldata: β€œ0xfb16a595000000000000000000000000412f55dfe3b77c9820b72c3ab78ed2f8552137570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd76d290aef0ac92b6bb9fe229396e1b9670f5bc0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000”

  6. cancelledOrFinalized: false

  7. createdTime: β€œ1651432517”

  8. currentBounty: β€œ1111000000000000”

  9. currentPrice: β€œ111100000000000000”

  10. exchange: β€œ0xdd54d660178b28f6033a953b0e55073cfa7e3744”

  11. expirationTime: β€œ1654110889”

  12. extra: β€œ0”

  13. feeMethod: 1

  14. feeRecipient: β€œ0x5b3256965e7c3cf26e11fcaf296dfc8807c01073”

  15. feeRecipientAccount: {user: 3282, profile_img_url: β€œhttps://storage.googleapis.com/opensea-static/opensea-profile/28.png”,…}

  16. hash: β€œ0x21c4e4ee24ebda5e6b2e6fda817aa50e2f46b0414e5783eee083e65b3ac1fa38”

  17. howToCall: 1

  18. listingTime: β€œ1651432407”

  19. maker: β€œ0x412f55dfe3b77c9820b72c3ab78ed2f855213757”

  20. makerAccount: {user: 36724, profile_img_url: β€œhttps://storage.googleapis.com/opensea-static/opensea-profile/4.png”,…}

  21. makerProtocolFee: β€œ0”

  22. makerReferrerFee: β€œ0”

  23. makerRelayerFee: β€œ250”

  24. markedInvalid: false

  25. metadata: {asset: {id: β€œ3”, address: β€œ0xfd76d290aef0ac92b6bb9fe229396e1b9670f5bc”}, schema: β€œERC721”}

  26. paymentToken: β€œ0x0000000000000000000000000000000000000000”

  27. paymentTokenContract: {name: null, symbol: β€œETH”, decimals: 18, address: β€œ0x0000000000000000000000000000000000000000”,…}

  28. quantity: β€œ1”

  29. r: β€œ0xf50b2ab447907f4a7f39f90ae57c66841f629473a68ff015aa7702f0e80ef691”

  30. replacementPattern: β€œ0x000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”

  31. s: β€œ0x2c713e5573acaaddcb3269142b01d19bb9234c04dfbd49adcbdd1b4bfa0058ea”

  32. saleKind: 0

  33. salt: β€œ6.7587927507202172313313377240564083842926693211494124942760244632854723270039e+76”

  34. side: 1

  35. staticExtradata: β€œ0x”

  36. staticTarget: β€œ0x0000000000000000000000000000000000000000”

  37. taker: β€œ0x0000000000000000000000000000000000000000”

  38. takerAccount: {user: 803, profile_img_url: β€œhttps://storage.googleapis.com/opensea-static/opensea-profile/1.png”,…}

  39. takerProtocolFee: β€œ0”

  40. takerRelayerFee: β€œ0”

  41. target: β€œ0x45b594792a5cdc008d0de1c1d69faa3d16b3ddc1”

  42. v: 28

  43. waitingForBestCounterOrder: false

  44. userAddress: β€œ0x5fd267c8ed0c299af4617bc203d11b9fb139d687”

  45. _ApplicationId: β€œ51PXU19jnsNBu6lNaJDYYczVYHVf2ondJKo4ScpK”

  46. _ClientVersion: β€œjs1.6.0”

  47. _InstallationId: β€œ162c489d-032d-4e00-900e-8e84c9f5adbf”

  48. _SessionToken: β€œr:a249f9345822319b267308135ad8a90a”"

main.js code

async function order(network, tokenAddress, tokenId, tokenType, amount,

  paymentTokenAddress) {

  console.log(nftaddress);

  orderlist = await Moralis.Plugins.opensea.getOrders({

    network: network,

    tokenAddress: tokenAddress,

    tokenId: tokenId,

    orderSide: 1,

    page: 1, // pagination shows 20 orders each page

  });

  data = (orderlist.orders[0]);

  console.log(data);

  buy(network,data);

}

async function buy(network, orderfirst) {

  console.log(nftaddress);

  await Moralis.Plugins.opensea.fulfillOrder({

    network: network,

    userAddress: nftaddress,

    order: orderfirst,

  });

}

Blockquote

Please help where the error may be.

It would be nice to have a detailed opensea plugins tutorial about the fulfillorder

Many THX

Hi, you can see here how to post code on forum:

it would make it easier to read it for anyone that tries to read this thread

How is solve your problem? i have a same problem

Hi!!

I couldn’t find a solution.
switching made web3 own smart contract

What do you mean by non-owner wallet? Can you post more info about what you’re doing in code e.g. addresses, parameters, token address/ID.

I tried same process. Moralis server get a same problem.



get order is work. Also, but not open metamask.

Moralis opensea buy full fill code is below
//order
function order(){
ordernow(β€œmainnet”, β€œ0xebc776125f4257b24e044992b7c6d2c285211c64”, β€œ1206”, β€œERC721”, β€œ0.0029”, β€œ0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2”)
}
async function ordernow(network, tokenAddress, tokenId, tokenType, amount, paymentTokenAddress) {
//console.log(nftaddress);
orderlist = await Moralis.Plugins.opensea.getOrders({
network: network,
tokenAddress: tokenAddress,
tokenId: tokenId,
orderSide: 1,
page: 1, // pagination shows 20 orders each page
});
console.log(orderlist);
data = (orderlist.orders[0]);
console.log(data);
buy(network,data);
}

async function buy(network, orderfirst) {
//console.log(nftaddress);
user = Moralis.User.current();
await Moralis.Plugins.opensea.fulfillOrder({
network: network,
userAddress: user.get(β€œethAddress”),
order: orderfirst,
});
}
//order

I added this now to our internal issues tracking