Facing 400 Client Error: Bad Request for url: https://api.novu.co/v1/subscribers/bulk
I am trying to use bulk_create method, but facing this error:
14 Replies
Code i used:
@sumitsaurabh927 if you are free, pls consider helping me here
@Support Can you help here?
@okitsme_Parth the variable url should be
url = "https://api.novu.co/v1"
@okitsme_Parth
Did you try with api directly
because I see, it is working in nodejs
No that will not work as the method adds /v1/subscribers/bulk itself at the end of the url
@okitsme_Parth, you just advanced to level 3!
Not really, let me try and get back to you 🫡
@Pawan Jain it works
I think SDK has some issues
Yes
@Pawan Jain i did some digging and got this output is this sort of correct?
This is request or response?
Request
'locale': None is creating issue
similarly 'email': None
If possible can you send me the request body in any other language, whenever you are free
Sure. give me some time