Error: API Error 400: Invalid request: {"protocol":["undefined is not a valid protocol"]}
Hi frined,
today my app started giving errors while performing the purchase of some nfts. I upgraded the version 3.0.4 to version 4.0.2. this time, all of them became inoperable, including the collections that were working in the past. The error I get in the getorder command is as follows.
const order = await seaport.api.getOrder({ side: 1, asset_contract_address: contract, token_id: tokenid})
Error: Error: API Error 400: Invalid request: {"protocol":["undefined is not a valid protocol"]}
+++ same problem. In 3.0.4 work fine? I wanna downgrade
i think its may be with build dependencies, i dont know how to solve this for windows
I downgraded. But 3.0.4 does not support the new collections released this week. For example, getorder cannot be assigned to lacosteundw3 collection.
I tried 6 hours, but not working code.
@WebScripti @ring0dev You need to set the protocol to seaport in the getOrders API call:
const { orders, count } = await openseaSDK.api.getOrders({
onlyEnglish:false,
limit:50,
side:"ask",
protocol: "seaport"
})
Do you have a telegram account?
сб, 18 июн. 2022 г., 17:00 WebScripti @.***>:
I downgraded. But 3.0.4 does not support the new collections released this week. For example, getorder cannot be assigned to lacosteundw3 collection.
I tried 6 hours, but not working code.
— Reply to this email directly, view it on GitHub https://github.com/ProjectOpenSea/opensea-js/issues/584#issuecomment-1159378966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMJCXMOMV3WVUQSNSX6ZNLVPVXZZANCNFSM5ZDWUGLA . You are receiving this because you commented.Message ID: @.***>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.