Maybe application/x-www-form-urlencoded is not correct but this request was automatically generated by createCollection, so it could be a bug in the SDK code for this case.
Hello!
It's an error is related to sending logs. Looks like something changed default headers in axios package. You can try to set :
axios.defaults.headers.post['Content-Type'] = 'application/json'
Hi Rarible SDK Team,
I am encountering an error when creating collection from a backend app (node/nest.js).
I can see the transaction was executed successfully on Ethereum Sepolia but the request fails with 400 bad request error.![Screenshot 2024-04-07 at 6 52 11 pm](https://github.com/rarible/sdk/assets/134186759/6e04c27d-0133-4c3f-8e9b-41fd581e1350)
The source code:
I intercepted the axios log:
Maybe
application/x-www-form-urlencoded
is not correct but this request was automatically generated bycreateCollection
, so it could be a bug in the SDK code for this case.I added form-data and node-fetch config as per https://docs.rarible.org/reference/sdk-on-backend but it makes no difference.
Rarible SDK version
Please let me know how we can make createCollection work. Thank you!