#can't make axios.post in production field

33 messages · Page 1 of 1 (latest)

jolly cloud
#

guys why can't I make any axios.post requests ? it's working on localhost but not at production field in heroku , get requests are working

trail plover
#

seem like your endpoint /api/likes/commentadd return 400 bad request

jolly cloud
#

im using heroku "

trail plover
jolly cloud
#

maybe related to mongo ?

trail plover
#

could be, need to see the code in api/likes/commentadd

jolly cloud
#

ok

#

it's working on my localhost we can keep that in mind 🙂

trail plover
#

when failed to save

jolly cloud
#

im just keep posting comments

trail plover
#

there is something wrong when you saving the comment

jolly cloud
#

yea but how

trail plover
jolly cloud
#

im using mongodb compass , now comments not added

jolly cloud
#

should i write like , localhost3000?

#

@trail plover

trail plover
#

what you mean?

#

you should use your domain name as url in production

jolly cloud
#

rly

#

lemme try

jolly cloud
#

still

#

@trail plover is this helpful ?